/* /clash-story/player.css */
.player-page{width:100%;max-width:none;margin:auto;padding:24px 20px 32px;overflow-wrap:anywhere}.player-page h1{font-size:2rem;font-weight:800;margin:0 0 12px}.player-page h2{font-size:1.25rem;font-weight:700}.player-page p{margin:10px 0;line-height:1.6}.player-page a,.player-shortcuts a{color:#ff8b32;text-decoration:underline;text-underline-offset:4px}.player-panel{margin:16px 0;padding:20px;border:1px solid #ffffff24;border-radius:18px;background:#ffffff05;min-width:0}.player-panel summary{font-weight:700;cursor:pointer}.player-tabs,.player-shortcuts,.player-toolbar,.player-search{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}.player-tabs{position:sticky;top:0;background:var(--background,#171412);padding:10px 0;z-index:3}.player-tabs button[aria-current=page]{background:#ff7900;color:#15110e}.player-shortcuts a{border:1px solid #a95725;border-radius:12px;padding:12px 16px;flex:1;min-width:180px}.player-page button,.player-page input,.player-page select,.player-page textarea{font:inherit;border:1px solid #ffffff30;border-radius:10px;padding:10px 14px;max-width:100%;background:#171412;color:inherit}.player-page button{cursor:pointer;min-height:44px}.player-page button:disabled{opacity:.45;cursor:default}.player-page button:hover:enabled{border-color:#ff8b32}.player-page label{display:flex;flex-direction:column;gap:7px;margin:12px 0;min-width:0}.player-page textarea{width:100%;resize:vertical}.player-page .player-check{flex-direction:row;align-items:center}.player-check input{width:20px;height:20px;accent-color:#ff7900}.player-muted,.player-page small{opacity:.75}.player-page small{display:block;line-height:1.5;margin-top:6px}.player-status,.player-error{padding:12px;border:1px solid #a95725;border-radius:12px}.player-error{border-color:#ef6666}.player-table-wrap{overflow-x:auto;margin:16px 0}.player-page table{width:100%;border-collapse:collapse;text-align:left}.player-page th,.player-page td{padding:12px 8px;border-bottom:1px solid #ffffff20;vertical-align:middle}.player-page td:not(:first-child){white-space:nowrap}.player-page td button{margin:0 8px}.player-record{padding:16px 0;border-bottom:1px solid #ffffff20}.player-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin:20px 0}.player-card{border:1px solid #ffffff20;border-radius:12px;padding:12px;min-width:0}.player-card img{width:100%;height:250px;object-fit:contain;margin-bottom:12px}.player-card strong{display:block}.player-card details{margin:12px 0}.player-page :focus-visible{outline:3px solid #ff8b32;outline-offset:3px}@media(max-width:600px){.player-page{padding:18px 14px 28px}.player-panel{padding:14px}.player-tabs{gap:6px}.player-tabs button{flex:1;padding:9px;font-size:.9rem}.player-search input{width:100%}.player-toolbar>label{flex:1;min-width:130px}.player-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.player-card img{height:200px}.player-page td button{margin:0 4px;padding:8px 12px}.player-shortcuts{margin:16px 20px}.player-page .player-shortcuts{margin:16px 0}}@media(prefers-color-scheme:light){.player-page input,.player-page select,.player-page textarea{color:#f7f1ec}} 

.player-panel h3{font-size:1.1rem;font-weight:700;margin:18px 0 10px}.player-panel hr{border:0;border-top:1px solid #ffffff26;margin:24px 0}.player-panel form{margin:16px 0}.player-panel input[type=number]{width:110px}

/* /clash-story/clash-setup-flow.css */
.hub-clash-setup{min-width:0;padding-bottom:1rem}.hub-clash-overview{padding:1rem;border:1px solid #ff790055;border-radius:1rem;background:#ff790010}.hub-clash-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.hub-clash-steps button{display:flex;align-items:center;gap:.5rem;min-width:0;padding:.8rem .6rem;border:1px solid #87715c66;border-radius:.8rem;text-align:left;font-weight:700;font-size:.85rem}.hub-clash-steps button span{display:grid;place-items:center;border-radius:50%;width:1.5rem;height:1.5rem;background:#ffffff10;flex-shrink:0}.hub-clash-steps .is-active{background:#ff7900;color:#171512;border-color:#ff7900}.hub-clash-setup button:disabled{opacity:.4}.hub-clash-stage{display:grid;gap:1rem;min-width:0}.hub-clash-stage[hidden]{display:none!important}.hub-clash-step-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem}.hub-clash-step-actions button{min-height:44px;padding:.55rem .8rem;border:1px solid #87715c88;border-radius:.7rem}.hub-clash-technical,.hub-clash-settings{border:1px solid #87715c55;border-radius:1rem;padding:1rem}.hub-clash-technical>summary,.hub-clash-settings>summary{cursor:pointer;font-weight:700;min-height:32px}.hub-clash-technical[open]>summary,.hub-clash-settings[open]>summary{margin-bottom:1rem}.hub-clash-candidate-grid{display:grid;gap:.85rem}.hub-clash-setup article{min-width:0;overflow-wrap:anywhere}.hub-clash-setup article img{max-width:100%}.hub-clash-setup .flex{flex-wrap:wrap}.hub-clash-setup :is(input,select,textarea){max-width:100%}@media(min-width:768px){.hub-clash-steps{grid-template-columns:repeat(4,minmax(0,1fr))}.hub-clash-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1400px){.hub-clash-candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* /clash-story/navigation-fix.css */
/* The language bar is outside the application shell; subtract its measured height. */
.hub-shell{height:calc(100dvh - var(--hub-language-height,0px))!important;min-height:0!important}
@media(max-width:1023px){
 .hub-shell>nav{position:fixed!important;inset:auto 0 0!important;width:100%;max-width:none!important;z-index:50;padding-bottom:env(safe-area-inset-bottom,0px);background:hsl(var(--card));transform:none!important}
 .hub-shell>[data-hub-scroll]{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));min-height:0}
 .hub-privacy-link{bottom:calc(90px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:1024px){.hub-shell>nav{position:relative!important;inset:auto!important}}

.hub-admin-page,.hub-admin-page *{box-sizing:border-box}.hub-admin-page{overflow-wrap:anywhere;min-width:0}.hub-admin-page .flex{min-width:0}.hub-admin-page .flex>*,.hub-admin-page .grid>*{min-width:0}.hub-admin-page .flex.items-center.gap-2{flex-wrap:wrap}.hub-admin-page input,.hub-admin-page textarea,.hub-admin-page select{max-width:100%}.hub-admin-page button{white-space:normal;overflow-wrap:normal}.hub-admin-nav{display:grid;gap:.6rem;padding:1rem;border-radius:1rem;background:var(--card,#241f1a);font-weight:700}.hub-admin-nav select{width:100%;min-height:48px;padding:.7rem;border:1px solid #87715c;border-radius:.7rem;background:#171512;color:#fff;font:inherit}.hub-admin-list{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem;min-width:0}.hub-admin-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0}.hub-admin-pagination button{padding:.6rem .9rem;border:1px solid #87715c;border-radius:.7rem}.hub-admin-pagination button:disabled{opacity:.4}.hub-admin-pagination span{font-size:.8rem}@media(max-width:480px){.hub-admin-page .grid.grid-cols-3{gap:.5rem}.hub-admin-page .grid.grid-cols-3>div{padding:.7rem .3rem}.hub-admin-page .flex.items-center.gap-2>.flex-1{flex:1 1 140px}.hub-admin-page .text-\[9px\]{font-size:10px}}

/* /clash-story/privacy.css */
.hub-privacy{max-width:900px;margin:auto;padding:24px 20px 80px;line-height:1.7;color:hsl(var(--foreground))}.hub-privacy h1{font-size:30px;font-weight:800;margin:20px 0}.hub-privacy h2,.hub-privacy-admin h2{font-size:19px;font-weight:800;margin:18px 0 10px}.hub-privacy p,.hub-privacy-admin p{font-size:13px;margin:8px 0;white-space:pre-line;overflow-wrap:anywhere}.hub-privacy a,.hub-privacy-admin a{color:hsl(var(--primary));text-decoration:underline}.privacy-card,.hub-privacy-admin{padding:18px;border:1px solid hsl(var(--border));border-radius:16px;background:hsl(var(--card));margin:16px 0;min-width:0}.privacy-card form,.hub-privacy-admin form{display:grid;gap:12px;margin-top:12px}.privacy-card label,.hub-privacy-admin label{display:flex;flex-direction:column;gap:6px;font-size:13px}.privacy-card input:not([type=checkbox]),.privacy-card select,.privacy-card textarea,.hub-privacy-admin input:not([type=checkbox]),.hub-privacy-admin select,.hub-privacy-admin textarea{width:100%;min-width:0;padding:11px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));color:hsl(var(--foreground));min-height:44px}.privacy-card textarea,.hub-privacy-admin textarea{min-height:100px}.privacy-card button,.privacy-banner button,.hub-privacy-admin button{border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));color:hsl(var(--foreground));min-height:44px;padding:10px 14px;font-size:13px;font-weight:700}.privacy-card button:disabled,.privacy-banner button:disabled{opacity:.5}.privacy-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}.privacy-check.privacy-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin-top:12px;font-size:13px}.privacy-check input{width:20px;height:20px;flex-shrink:0}.privacy-banner{position:fixed;bottom:100px;right:16px;z-index:65;width:min(460px,calc(100vw - 32px));max-height:65dvh;overflow:auto;border:1px solid hsl(var(--primary));padding:18px;border-radius:16px;background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:0 10px 40px #0006}.privacy-banner h2{font-weight:800;font-size:16px}.privacy-banner p{font-size:12px;line-height:1.6;margin-top:8px}.privacy-banner a{font-size:12px;text-decoration:underline}.hub-privacy-link{position:fixed;right:12px;bottom:87px;z-index:40;border-radius:20px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));font-size:11px;padding:5px 10px;text-decoration:underline}.hub-privacy-admin summary,.privacy-card summary{cursor:pointer;min-height:44px;font-weight:700;overflow-wrap:anywhere}.hub-privacy-admin ol{padding-left:20px;list-style:decimal}.hub-privacy-admin li{font-size:12px;line-height:1.7;margin:10px 0}.hub-privacy :is(button,input,select,textarea):focus-visible,.privacy-banner :is(button,input,a):focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}@media(min-width:1024px){.hub-privacy-link{bottom:15px}.privacy-banner{bottom:55px}}@media(max-width:420px){.hub-privacy{padding:16px 14px 90px}.privacy-card,.hub-privacy-admin{padding:12px}.privacy-banner{bottom:100px;padding:12px}.hub-privacy h1{font-size:25px}}

/* /clash-story/audience.css */
.hub-audience{padding:18px;border:1px solid hsl(var(--primary)/.3);border-radius:20px;background:hsl(var(--card));min-width:0;margin-bottom:20px}.hub-audience header{display:flex;justify-content:space-between;align-items:start;gap:12px}.hub-audience h2{font-weight:800;font-size:20px}.hub-audience h3{font-weight:800;font-size:15px;margin-bottom:10px}.hub-audience p{font-size:12px;color:hsl(var(--muted-foreground));line-height:1.6}.hub-audience section{margin:20px 0}.hub-audience button{border:1px solid hsl(var(--border));border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700;min-height:42px;background:hsl(var(--background))}.hub-audience button[aria-pressed=true]{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}.aud-periods{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}.aud-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-bottom:12px}.aud-kpis article{padding:14px;border-radius:12px;background:hsl(var(--muted)/.4);display:flex;flex-direction:column;gap:4px}.aud-kpis strong{font-size:26px;font-weight:800;color:hsl(var(--primary))}.aud-kpis span{font-size:11px;line-height:1.5}.aud-chart{display:flex;gap:5px;overflow-x:auto;padding:14px 0}.aud-chart>div{min-width:32px;flex:1;max-width:70px;text-align:center}.aud-bars{height:96px;display:flex;align-items:end;justify-content:center;gap:2px}.aud-bars i,.aud-bars b{width:10px;background:#f97316;border-radius:3px 3px 0 0}.aud-bars b{background:#3b82f6}.aud-chart small{font-size:9px;color:hsl(var(--muted-foreground))}.aud-module{display:flex;gap:10px;align-items:center;margin:10px 0;font-size:12px}.aud-module>span{width:100px}.aud-module>div{flex:1;height:8px;background:hsl(var(--muted));border-radius:8px;overflow:hidden}.aud-module i{display:block;height:100%;background:#f97316;border-radius:8px}.aud-module strong{min-width:28px;text-align:right}.hub-audience input[type=search]{border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));width:100%;padding:12px;min-height:44px;font-size:13px}.aud-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px}.aud-users{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;max-height:600px;overflow:auto;margin-top:12px}.aud-users article{border:1px solid hsl(var(--border));border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere;min-width:0}.aud-users span,.aud-users small{font-size:11px;color:hsl(var(--muted-foreground))}.hub-audience :is(button,input):focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}@media(max-width:420px){.hub-audience{padding:12px}.aud-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.aud-users{grid-template-columns:1fr}.hub-audience h2{font-size:18px}}

/* /clash-story/lorcana.css */
.lc-builder,.lc-deck{min-width:0;font-size:13px}.lc-builder form{display:grid;gap:12px}.lc-builder input:not([type=checkbox]),.lc-builder select,.lc-import textarea,.lc-deck select{width:100%;min-width:0;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));color:hsl(var(--foreground));padding:10px;min-height:44px}.lc-builder button,.lc-deck button,.lc-import button{min-height:40px;border-radius:10px;padding:8px 12px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--foreground))}.lc-builder button:focus-visible,.lc-builder summary:focus-visible,.lc-deck button:focus-visible,.lc-builder input:focus-visible,.lc-builder select:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}.lc-search-row{display:flex;gap:8px}.lc-search-row>input{flex:1;min-width:0}.lc-search-row>button,.lc-qty>button:last-child,.lc-import>button:last-child{background:hsl(var(--primary));color:hsl(var(--primary-foreground));font-weight:700}.lc-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lc-field{display:flex;flex-direction:column;gap:5px;font-size:12px}.lc-multi{border:1px solid hsl(var(--border));border-radius:10px;min-width:0;align-self:start}.lc-multi summary,.lc-advanced>summary{cursor:pointer;padding:12px;min-height:44px;font-weight:700}.lc-multi-content{max-height:240px;overflow:auto;padding:8px;border-top:1px solid hsl(var(--border))}.lc-multi-content>label,.lc-check{display:flex;gap:9px;align-items:center;min-height:42px;padding:6px 4px;overflow-wrap:anywhere}.lc-check input,.lc-multi-content input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:#f97316}.lc-advanced{border:1px solid hsl(var(--border));border-radius:12px;padding:0 10px 10px}.lc-advanced>div,.lc-advanced>.lc-field{margin-top:10px}.lc-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}.lc-range legend{font-size:12px;padding-bottom:5px}.lc-chips{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.lc-chips button{padding:5px 8px;min-height:32px;font-size:11px;background:hsl(var(--primary)/.1);border-color:hsl(var(--primary)/.3)}.lc-toolbar{display:flex;align-items:end;justify-content:space-between;gap:8px;margin:12px 0;flex-wrap:wrap}.lc-toolbar>.lc-field{flex:1;max-width:210px}.lc-results{display:grid;gap:12px}.lc-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.lc-card{border:1px solid hsl(var(--border));border-radius:14px;padding:10px;min-width:0;display:flex;flex-direction:column;gap:8px;background:hsl(var(--card))}.lc-card-info{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.lc-card-info>strong{font-size:12px;line-height:1.4}.lc-card-info details{font-size:11px}.lc-card-info summary{cursor:pointer;padding:6px 0}.lc-card-info details p{white-space:pre-line;margin-bottom:8px}.lc-card .lc-image,.lc-deck .lc-image{padding:0;border:0;background:none;display:block;flex-shrink:0}.lc-card .lc-image img{width:100%;height:auto;aspect-ratio:5/7;object-fit:contain;border-radius:8px}.lc-qty{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:auto}.lc-qty button{min-width:40px;font-size:19px}.lc-muted{font-size:11px;color:hsl(var(--muted-foreground));line-height:1.5}.lc-more{width:100%;margin:12px 0}.lc-list .lc-card{flex-direction:row;align-items:start}.lc-list .lc-image{width:68px}.lc-list .lc-card-info{flex:1}.lc-list .lc-qty{flex-wrap:wrap;margin:0;max-width:90px}.lc-overlay{position:fixed;inset:0;background:#000d;z-index:150;display:flex;align-items:center;justify-content:center;padding:20px}.lc-overlay>img{max-width:100%;max-height:90dvh;border-radius:14px}.lc-overlay>button{position:absolute;top:14px;right:14px;background:#222;color:white;border:1px solid #888;border-radius:100%;width:44px;height:44px;font-size:26px}.lc-stats{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.lc-stats span{background:hsl(var(--muted)/.5);border-radius:8px;padding:6px 8px;font-size:11px}.lc-curve{margin:12px 0;padding:10px;border:1px solid hsl(var(--border));border-radius:12px}.lc-curve figcaption{font-size:12px;font-weight:700;margin-bottom:8px}.lc-curve>div{display:flex;gap:5px;align-items:end;min-height:80px}.lc-curve>div>div{flex:1;display:flex;align-items:center;flex-direction:column;font-size:10px}.lc-curve i{display:block;width:100%;max-width:28px;background:#f97316;border-radius:3px}.lc-deck h3,.lc-deck h4{font-weight:800;margin:12px 0 8px}.lc-deck-cards{display:grid;gap:8px}.lc-deck-cards article{border:1px solid hsl(var(--border));border-radius:12px;padding:8px;display:flex;gap:8px;align-items:center;min-width:0}.lc-deck-cards .lc-image{width:48px}.lc-deck-cards img{width:100%;border-radius:5px}.lc-deck-cards article>div:not(.lc-qty){flex:1;min-width:0;overflow-wrap:anywhere}.lc-deck-cards strong{font-size:12px}.lc-deck-cards small{display:block;font-size:10px;color:hsl(var(--muted-foreground))}.lc-deck-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.lc-deck-grid article{flex-direction:column}.lc-deck-grid .lc-image{width:100%}.lc-deck-grid .lc-qty{margin:0}.lc-warning{font-size:12px;color:#d97706;margin:8px 0}.lc-import{width:min(600px,100%);max-height:90dvh;overflow:auto;border-radius:16px;padding:20px;background:hsl(var(--background));color:hsl(var(--foreground))}.lc-import textarea{min-height:220px;margin:12px 0}.lc-import button{margin:8px 8px 0 0}@media(max-width:420px){.lc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lc-card{padding:7px}.lc-deck-cards .lc-qty{gap:4px}.lc-deck-cards .lc-qty button{min-width:32px;padding:4px 8px}.lc-deck-cards .lc-image{width:40px}}

/* /clash-story/ux.css */
/* Shared usability improvements; colors follow the active site theme. */
.hub-shell{width:100%;max-width:640px;margin-inline:auto}
.hub-shell main,.hub-shell [data-hub-scroll]{min-width:0}
.hub-shell button:focus-visible,.hub-shell a:focus-visible,.hub-shell input:focus-visible,.hub-shell select:focus-visible{outline:3px solid hsl(var(--primary));outline-offset:3px}
.hub-home>section{margin-top:20px}.hub-home a p:last-child{font-size:12px;line-height:1.45}
.hub-primary-link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;padding:12px 16px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-radius:12px;font-weight:700;text-decoration:none}
.hub-clash-steps{list-style:decimal;padding:12px 0 12px 24px;font-size:14px;line-height:1.7}.hub-clash-steps li+li{margin-top:8px}
.hub-gallery-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:16px;padding:16px}
.hub-gallery-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;min-width:0}.hub-gallery-search{grid-column:1/-1}
.hub-gallery-filters input,.hub-gallery-filters select{width:100%;min-width:0;min-height:44px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));color:hsl(var(--foreground));padding:8px 10px;font-size:14px}
.hub-gallery-filters>button{align-self:end;min-height:44px;border:1px solid hsl(var(--border));border-radius:10px;font-size:13px;font-weight:600}
.hub-gallery-result{font-size:13px;margin:14px 0;color:hsl(var(--muted-foreground))}.hub-gallery-grid{display:grid;gap:12px}.hub-empty{padding:24px;text-align:center;line-height:1.65;color:hsl(var(--muted-foreground))}
.hub-deck-tile{height:100%;min-height:118px;cursor:pointer;transition:border-color .15s}.hub-deck-tile:hover{border-color:hsl(var(--primary))}.hub-deck-tile>div:nth-child(2)>div:first-child>p{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.hub-deck-cover{width:58px;height:82px;flex-shrink:0;overflow:hidden;border-radius:7px;background:hsl(var(--muted));display:grid;place-items:center;font-size:12px;font-weight:700}.hub-deck-cover img{width:100%;height:100%;object-fit:contain}
.hub-deck-tile .text-\[10px\]{font-size:12px}.hub-deck-count{display:block;width:100%;color:hsl(var(--foreground));font-weight:600;margin:3px 0}
.hub-deck-content{display:flex;flex-direction:column;gap:18px}.hub-deck-tools{display:flex;flex-direction:column;gap:12px}.hub-view-toggle{display:flex;gap:8px}.hub-view-toggle button,.hub-deck-shortcuts button{min-height:44px;padding:8px 14px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));font-size:13px}
.hub-view-toggle button[aria-pressed=true]{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}
.hub-deck-summary,.hub-deck-shortcuts{display:flex;flex-wrap:wrap;gap:8px}.hub-deck-summary span{font-size:12px;background:hsl(var(--muted));padding:6px 10px;border-radius:8px}
[data-hub-group]{scroll-margin-top:20px}.hub-card-collection{display:grid;gap:8px}.hub-card-meta{font-size:12px!important;line-height:1.6;color:hsl(var(--foreground)/.75)!important}.hub-card-name{line-height:1.4;overflow-wrap:anywhere}.hub-card-row .text-muted-foreground{opacity:1}.hub-card-row>div:first-child>div:last-child>span{color:hsl(var(--foreground))}
.hub-deck-content .text-\[9px\],.hub-deck-content .text-\[10px\]{font-size:12px}.hub-deck-grid .hub-card-collection{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-deck-grid .hub-card-row{min-width:0;padding:10px}.hub-deck-grid .hub-card-row>div:first-child{display:flex;flex-direction:column;align-items:stretch;gap:8px}.hub-deck-grid .hub-card-row>div:first-child>button{width:100%;height:auto;aspect-ratio:63/88}.hub-deck-grid .hub-card-row>div:first-child>span{display:none}.hub-deck-grid .hub-card-row>div:first-child>div{min-width:0}.hub-deck-grid .hub-card-row>div:first-child>div:last-child{margin-left:0;justify-content:center}.hub-deck-grid .hub-card-name{font-size:13px}.hub-deck-grid .hub-card-meta{gap:4px}
.hub-editor-panel{display:none}.hub-editor-workspace>*{min-width:0}
.radar .radar-intro{padding:18px;border-radius:20px}.radar h1{font-size:32px;margin:0 0 14px}.radar h1 span{display:inline}.radar .radar-host{gap:14px}.radar .radar-host img{width:54px;height:60px;transform:scale(1.2) rotate(-6deg)}.radar .radar-host p{font-size:13px;padding:10px 13px}.radar .radar-filters{flex-wrap:wrap;overflow:visible;padding:14px 0 8px;gap:8px}.radar .radar-filters button{padding:9px 13px}.radar .radar-toolbar{padding:10px 0;font-size:12px}.radar .radar-toolbar button{font-size:13px;min-height:44px;color:#e4d7ca}.radar .radar-empty{padding:24px 18px}
.hub-memory{max-width:1000px;margin:auto;padding:0 20px 24px;display:flex;flex-direction:column;gap:24px}.hub-memory h2{font-size:20px;font-weight:700}.hub-memory-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.hub-memory-toolbar>button,.hub-memory-reset{min-height:44px;padding:10px 16px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card))}.hub-memory-toolbar label{font-size:14px;display:flex;gap:8px;align-items:center;min-height:44px}.hub-memory-toolbar input{width:20px;height:20px;accent-color:hsl(var(--primary))}
.hub-memory-player{padding:20px;border:1px solid hsl(var(--border));border-radius:16px;background:hsl(var(--card))}.hub-memory-player h2{font-size:16px;margin-bottom:12px}.hub-memory-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.hub-memory-actions button{min-height:56px;border-radius:12px;background:hsl(var(--primary)/.1);font-size:24px;font-weight:700;color:hsl(var(--foreground));border:1px solid hsl(var(--primary)/.3)}.hub-memory-gauge{display:grid;gap:20px;padding:12px 0}.hub-memory-gauge output{font-size:30px;font-weight:800;text-align:center}.hub-memory-gauge input{width:100%;height:44px;accent-color:hsl(var(--primary));cursor:pointer}.hub-memory-ticks{display:flex;justify-content:space-between;font-size:12px;font-weight:600}.hub-opponent-rotated{transform:rotate(180deg)}
@media(min-width:768px){.hub-gallery-filters{grid-template-columns:2fr 1fr 1fr 1fr auto}.hub-gallery-search{grid-column:auto}.hub-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-deck-grid .hub-card-collection{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.hub-shell{max-width:1200px!important}.hub-shell>nav>div{max-width:1000px;margin:auto}.hub-home{display:grid;grid-template-columns:1fr 1fr;gap:24px}.hub-home>a{grid-column:1/-1}.hub-home>section{margin:0!important}.hub-home>a img{width:76px;max-height:106px}.hub-home>section button p:first-child{font-size:24px}.hub-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hub-deck-grid .hub-card-collection{grid-template-columns:repeat(5,minmax(0,1fr))}.hub-editor-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:16px 24px;align-items:start}.hub-editor-workspace>*{grid-column:1;margin:0!important}.hub-editor-panel{display:block!important;grid-column:2!important;grid-row:1 / span 5;position:sticky;top:12px;max-height:calc(100dvh - 130px);overflow:auto;padding:16px;border:1px solid hsl(var(--border));border-radius:16px;background:hsl(var(--card))}.hub-editor-panel>h2{font-size:18px;font-weight:700;margin-bottom:16px}.hub-mobile-deck-trigger{display:none!important}.hub-editor-panel .hub-deck-grid .hub-card-collection{grid-template-columns:repeat(2,minmax(0,1fr))}.radar .radar-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px}.radar h1{font-size:40px;margin:0}.radar .radar-host{max-width:510px}.hub-memory{padding:10px 32px 32px}.hub-memory-player{padding:24px}}
@media(prefers-reduced-motion:reduce){.hub-deck-tile{transition:none}}
.radar .radar-toolbar{color:hsl(var(--foreground))}.radar .radar-toolbar button{color:hsl(var(--foreground)/.75)}

/* Full desktop workspace; mobile keeps bottom navigation. */
@media(min-width:1024px){
 html,body,#root{width:100%;max-width:none;margin:0}
 .hub-shell{width:100%!important;max-width:none!important;margin:0!important;border:0!important;box-shadow:none!important;display:grid!important;grid-template-columns:200px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .hub-shell>[data-hub-scroll]{grid-column:2;grid-row:1;min-height:0;width:100%}
 .hub-shell>nav{grid-column:1;grid-row:1;display:flex;flex-direction:column;border-top:0;border-right:1px solid hsl(var(--border));padding:24px 12px;box-shadow:none;min-width:0;overflow-y:auto}
 .hub-shell>nav::before{content:"BRICKADO HUB";display:block;color:hsl(var(--primary));font-weight:800;letter-spacing:.04em;font-size:15px;padding:8px 12px 28px}
 .hub-shell>nav>div{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;width:100%;max-width:none;margin:0}
 .hub-shell>nav a{flex:none;flex-direction:row;justify-content:flex-start;gap:12px;padding:12px;border-radius:12px}
 .hub-shell>nav a[aria-current=page]{background:hsl(var(--primary)/.1)}
 .hub-shell>nav a>span.absolute{display:none}
 .hub-shell>nav a>span:last-child{font-size:14px}
 .hub-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
 .hub-deck-grid .hub-card-collection{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
 .hub-editor-workspace{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)}
 .hub-editor-panel .hub-deck-grid .hub-card-collection{grid-template-columns:repeat(2,minmax(0,1fr))}
 .radar{width:100%;max-width:none!important}
 .hub-memory{width:100%;max-width:none}
 .hub-home{gap:28px}
}

/* /clash-story/deck-feedback.css */
.hub-deck-feedback,.hub-deck-tournaments{padding:16px;border:1px solid hsl(var(--border));border-radius:18px;background:hsl(var(--card));min-width:0}.hub-deck-feedback h3,.hub-deck-tournaments h3{font-weight:800;font-size:15px;margin:0 0 12px}.hub-vote-buttons{display:flex;flex-wrap:wrap;gap:8px}.hub-vote-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid hsl(var(--border));background:hsl(var(--background));padding:10px 12px;border-radius:12px;min-height:44px;flex:1;font-size:13px;font-weight:700;white-space:nowrap}.hub-vote-button strong{font-variant-numeric:tabular-nums}.hub-vote-button.is-up.is-selected{background:#15803d;color:white;border-color:#22c55e}.hub-vote-button.is-down.is-selected{background:#b91c1c;color:white;border-color:#ef4444}.hub-vote-button:disabled:not(.is-selected){opacity:.55}.hub-vote-button:focus-visible,.hub-deck-feedback input:focus-visible,.hub-tournament-form input:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:3px}.hub-vote-caption{font-size:12px;line-height:1.5;color:hsl(var(--muted-foreground));margin-top:8px}.hub-vote-comment{margin-top:12px}.hub-vote-comment label,.hub-tournament-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}.hub-vote-comment input,.hub-tournament-form input{min-width:0;width:100%;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));padding:10px;border-radius:10px;min-height:42px}.hub-vote-comment button,.hub-tournament-form button{background:hsl(var(--primary));color:hsl(var(--primary-foreground));font-size:13px;font-weight:700;border-radius:10px;padding:10px 14px;margin-top:8px}.hub-vote-comment button:disabled{opacity:.5}.hub-deck-tournaments header,.hub-review-list article>div,.hub-deck-tournaments article>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.hub-deck-tournaments header button{color:hsl(var(--primary));font-size:12px;font-weight:800}.hub-deck-tournaments header h3{margin-bottom:0}.hub-tournament-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.hub-tournament-form label:first-child,.hub-tournament-form button{grid-column:1/-1}.hub-review-list article,.hub-deck-tournaments article{border-top:1px solid hsl(var(--border));padding-top:12px;margin-top:12px;font-size:13px;overflow-wrap:anywhere}.hub-review-list article p,.hub-deck-tournaments article p{color:hsl(var(--muted-foreground));font-size:12px;margin-top:6px}.hub-placement{color:hsl(var(--primary));font-weight:800}.hub-votes-compact{padding:10px 0 0;border:0;background:transparent}.hub-votes-compact .hub-vote-caption{margin-top:6px}.hub-daily-wrap{min-width:0}.hub-daily-wrap>a{display:flex}.hub-daily-wrap>.hub-deck-feedback{padding:12px 14px}.hub-vote-counts{display:inline-flex;gap:12px;font-size:12px}.hub-vote-counts>span{display:inline-flex;align-items:center;gap:4px}.hub-vote-counts svg{width:13px;height:13px}@media(max-width:420px){.hub-vote-button{gap:6px;padding:10px 8px;font-size:12px}.hub-deck-feedback,.hub-deck-tournaments{padding:12px}}

.hub-vote-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.hub-vote-button{flex-wrap:wrap;white-space:normal;min-width:0;min-height:66px;gap:4px}.hub-vote-button>span{order:2;flex-basis:100%;text-align:center;font-size:12px}.hub-vote-button.is-neutral.is-selected{background:#92400e;color:white;border-color:#f59e0b}@media(max-width:420px){.hub-vote-button{padding:8px 4px}.hub-vote-button>span{font-size:11px}}

/* /clash-story/dynamic.css */
/* Brickado: expressive surfaces, restrained motion, no extra data requests. */
.hub-shell{--hub-lift:0 12px 28px hsl(var(--foreground)/.08);--hub-edge:hsl(var(--primary)/.22)}
.hub-shell [data-hub-scroll]{background:radial-gradient(ellipse at 100% 0,hsl(var(--primary)/.065),transparent 52%),hsl(var(--background))}
.hub-shell .safe-area-top:has(h1){position:relative;margin:16px 20px 22px;padding:22px 20px!important;border:1px solid var(--hub-edge);border-radius:24px 24px 24px 8px;background:linear-gradient(115deg,hsl(var(--card)) 60%,hsl(var(--primary)/.09));isolation:isolate}
.hub-shell .safe-area-top:has(h1)::after{content:"";position:absolute;right:18px;top:18px;width:52px;height:8px;border-radius:8px;background:repeating-linear-gradient(110deg,hsl(var(--primary)/.6) 0 10px,transparent 10px 16px);pointer-events:none;z-index:-1}
.hub-shell .safe-area-top:has(h1)>div{padding-top:0}
.hub-shell h1{font-size:clamp(30px,3vw,44px);letter-spacing:.025em;line-height:1.1}
.hub-shell .safe-area-top h1{padding-right:12px;white-space:normal;overflow-wrap:anywhere}
.hub-shell .safe-area-top h1+p{max-width:65ch;line-height:1.6;margin-top:6px}
.hub-home{padding-bottom:24px}
.hub-home>a{position:relative;min-height:154px;padding:22px;border-radius:26px 26px 26px 8px;border-color:var(--hub-edge);background:linear-gradient(115deg,hsl(var(--primary)/.12),hsl(var(--card)) 65%);box-shadow:0 6px 22px hsl(var(--primary)/.05)}
.hub-home>a>img{width:76px;height:106px;transform:rotate(-5deg);box-shadow:5px 7px 0 hsl(var(--primary)/.12);transition:transform .22s ease}
.hub-home>a .font-heading{font-size:28px}
.hub-home>a>svg{width:30px;height:30px;padding:5px;border-radius:50%;background:hsl(var(--primary)/.12)}
.hub-home>section>div:first-child:has(>span),.hub-home>section>p:first-child{margin-bottom:14px;color:hsl(var(--foreground));letter-spacing:.12em}
.hub-home>section>button{position:relative;isolation:isolate;overflow:hidden;min-height:104px;padding:20px 22px;border-radius:22px 22px 22px 8px;box-shadow:0 4px 12px hsl(var(--foreground)/.08);border:1px solid #ffffff20}
.hub-home>section>button::after{content:"";position:absolute;right:-20px;top:-32px;width:130px;height:160px;border:20px solid #ffffff12;border-radius:38px;transform:rotate(28deg);pointer-events:none;z-index:-1}
.hub-home>section>button p:last-child{color:#fff;opacity:.88}
.hub-home>section>button+button{margin-top:12px}
.hub-home>section>div.grid{gap:12px}
.hub-home>section>div.grid>a{position:relative;padding:18px 14px;min-height:116px;gap:12px;border-radius:22px 22px 22px 8px;background:linear-gradient(150deg,hsl(var(--card)),hsl(var(--primary)/.035));border-color:hsl(var(--border));box-shadow:0 3px 12px hsl(var(--foreground)/.025)}
.hub-home>section>div.grid>a>div:first-child{width:38px;height:38px;border-radius:14px 14px 14px 5px}
.hub-home>section>div.grid>a p:first-child{font-size:14px;line-height:1.4}
.hub-home>section>div.grid>a p:last-child{font-size:12px;line-height:1.55}
.hub-home>section>div.grid>a[href='/clash']{border-color:hsl(var(--primary)/.4);background:linear-gradient(130deg,hsl(var(--primary)/.12),hsl(var(--card)))}
.hub-gallery-filters,.hub-editor-panel{border-radius:22px 22px 22px 8px;background:linear-gradient(145deg,hsl(var(--card)),hsl(var(--primary)/.025));box-shadow:0 4px 20px hsl(var(--foreground)/.035)}
.hub-deck-tile{border-radius:20px 20px 20px 7px;border-color:hsl(var(--border));box-shadow:0 3px 12px hsl(var(--foreground)/.035)}
.hub-deck-cover{border-radius:10px;box-shadow:3px 3px 0 hsl(var(--primary)/.1)}
.hub-shell :is(button,a){transition:transform .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.hub-shell :is(input,textarea,select){transition:border-color .18s ease,box-shadow .18s ease}
.hub-shell :is(input,textarea,select):focus-visible{box-shadow:0 0 0 4px hsl(var(--primary)/.12)}
.hub-shell button.bg-primary,.hub-primary-link{box-shadow:0 4px 12px hsl(var(--primary)/.18)}
.hub-shell>nav{background:hsl(var(--card)/.97)}
.hub-shell>nav a[aria-current=page]{background:hsl(var(--primary)/.09);border-radius:16px;color:hsl(var(--primary))}
.hub-shell>nav a[aria-current=page]>div{background:hsl(var(--primary)/.13);transform:translateY(-2px)}
.radar .radar-intro{border-radius:26px 26px 26px 8px;box-shadow:0 8px 28px hsl(var(--foreground)/.07)}
.radar .radar-host p{border-radius:22px 22px 22px 6px}
.radar .radar-empty{border-radius:24px 24px 24px 8px;background:linear-gradient(145deg,hsl(var(--primary)/.06),hsl(var(--card)))}
.radar .radar-filters button{transition:background .18s ease,transform .18s ease}
@media(hover:hover) and (pointer:fine){
 .hub-home>a:hover,.hub-home>section>button:hover,.hub-home>section>div.grid>a:hover,.hub-deck-tile:hover{transform:translateY(-3px);box-shadow:var(--hub-lift);border-color:hsl(var(--primary)/.55)}
 .hub-home>a:hover>img{transform:rotate(0deg)}
 .hub-shell>nav a:hover{background:hsl(var(--primary)/.08);transform:translateX(2px)}
}
@media(prefers-reduced-motion:no-preference){
 .hub-home>section{animation:hub-arrive .32s ease-out both}
 .hub-home>section:last-child{animation-delay:.055s}
 @keyframes hub-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
}
@media(max-width:480px){
 .hub-shell .safe-area-top:has(h1){margin:12px 16px 18px;padding:18px 16px!important}
 .hub-home{padding-inline:16px}
 .hub-home>a{padding:18px;min-height:138px}
 .hub-home>a>img{width:62px;height:88px}
 .hub-home>section>div.grid>a{flex-direction:column;padding:15px;min-height:150px}
 .hub-home>section>div.grid>a p:first-child{font-size:14px}
 .hub-shell>nav a{min-height:68px;padding-inline:2px}
 .hub-shell>nav a>span:last-child{font-size:10px;letter-spacing:0}
}
@media(min-width:1024px){
 .hub-shell>nav{padding:26px 14px;background:linear-gradient(180deg,hsl(var(--card)),hsl(var(--primary)/.035))}
 .hub-shell>nav::before{line-height:1.4;letter-spacing:.07em;border-bottom:1px solid var(--hub-edge);margin-bottom:20px;padding-bottom:22px}
 .hub-shell>nav a{border:1px solid transparent}
 .hub-shell>nav a[aria-current=page]{border-color:var(--hub-edge);box-shadow:inset 3px 0 hsl(var(--primary))}
 .hub-shell .safe-area-top:has(h1){margin:24px 28px 24px;padding:26px 24px!important}
 .hub-home{padding-inline:28px;gap:24px}
 .hub-home>section>div.grid>a{min-height:120px}
 .hub-home>a{min-height:170px}
}
@media(prefers-reduced-motion:reduce){.hub-shell :is(a,button,input,textarea,select),.hub-home>a>img{transition:none!important}.hub-home>section{animation:none!important}}

/* /clash-story/enhancements.css */
/* Visual enhancements use existing records only. Static mascot needs no D1. */
.hub-home>a{background:radial-gradient(ellipse at 4% 100%,hsl(var(--primary)/.2),transparent 65%),linear-gradient(120deg,hsl(var(--card)),hsl(var(--primary)/.06));overflow:hidden}
.hub-home>a>img{width:96px;height:134px;margin:4px 12px 4px 3px;box-shadow:7px 8px 0 hsl(var(--primary)/.16),0 12px 20px #0002}
.hub-home>a .font-heading{font-size:clamp(28px,3vw,40px)}
.hub-home>a>div>div:first-child{width:fit-content;background:hsl(var(--primary)/.1);border:1px solid hsl(var(--primary)/.18);padding:5px 9px;border-radius:30px}
.hub-deck-tile{position:relative;padding-top:19px;overflow:hidden;align-items:center;min-height:146px}
.hub-deck-colors{position:absolute;inset:0 0 auto;height:5px;display:flex;pointer-events:none;overflow:hidden}
.hub-deck-colors>i{flex:1;background:var(--deck-color);box-shadow:inset 0 -1px #0002}
.hub-deck-tile .hub-deck-cover{width:66px;height:92px;transform:rotate(-3deg);transition:transform .18s ease}
.hub-deck-tile>div.flex-1>div:first-child>p{font-size:16px;font-weight:800}
.hub-deck-tile .hub-deck-count{margin-block:6px;font-size:12px}
.hub-shell [data-hub-scroll]:has(.hub-home) .safe-area-top{padding-right:100px!important}
.hub-shell [data-hub-scroll]:has(.hub-home) .safe-area-top::before{content:"";position:absolute;right:18px;bottom:16px;width:64px;height:72px;background:url('/migrated-assets/b2bf7ff400d9e12e375a.png') center/contain no-repeat;transform:rotate(7deg);pointer-events:none}
.hub-empty::before,.radar-empty:not([role])::before,.hub-clash-empty::before{content:"";display:block;margin:0 auto 14px;width:72px;height:80px;background:url('/migrated-assets/b2bf7ff400d9e12e375a.png') center/contain no-repeat;transform:rotate(-7deg)}
.hub-clash-empty{position:relative;max-width:760px;margin-inline:auto;text-align:center;padding:28px!important;background:radial-gradient(ellipse at 50% 0,hsl(var(--primary)/.08),transparent 75%),hsl(var(--card));border-color:hsl(var(--primary)/.22);border-radius:26px 26px 26px 8px}
.hub-clash-empty .hub-clash-steps{text-align:left;max-width:490px;margin-inline:auto}
.hub-clash-feedback{padding:14px 16px 14px 66px!important;min-height:66px;position:relative;border:1px solid hsl(var(--primary)/.25);border-radius:18px;background:hsl(var(--primary)/.07);display:flex;align-items:center}
.hub-clash-feedback::before{content:"";position:absolute;left:14px;top:10px;width:40px;height:46px;background:url('/migrated-assets/b2bf7ff400d9e12e375a.png') center/contain no-repeat}
.hub-match-arena{isolation:isolate;background:linear-gradient(110deg,hsl(var(--primary)/.07),transparent 48%,hsl(var(--muted)/.6));border-block:1px solid hsl(var(--primary)/.1)}
.hub-match-side{border:1px solid hsl(var(--border)/.6);background:hsl(var(--card)/.75)}
.hub-match-vs{width:42px!important;height:42px!important;font-size:14px!important;font-style:italic;box-shadow:0 0 0 5px hsl(var(--background)/.85),0 5px 18px #0002;border-radius:14px 14px 14px 5px!important}
.hub-vote-progress{appearance:none;display:block;height:8px!important;border:0;border-radius:20px;overflow:hidden;background:hsl(var(--muted));width:100%}
.hub-vote-progress::-webkit-progress-bar{background:hsl(var(--muted));border-radius:20px}
.hub-vote-progress::-webkit-progress-value{background:linear-gradient(90deg,#f06500,#ff9c2b);border-radius:20px;transition:width .55s ease-out}
.hub-vote-progress::-moz-progress-bar{background:linear-gradient(90deg,#f06500,#ff9c2b);border-radius:20px}
.hub-loading{display:block;padding:20px!important;text-align:left!important;color:hsl(var(--muted-foreground));font-size:13px;min-height:210px}
.hub-loading::after{content:"";display:block;height:150px;margin-top:16px;border-radius:14px;background:linear-gradient(105deg,transparent 30%,hsl(var(--foreground)/.045) 48%,transparent 65%),repeating-linear-gradient(to bottom,hsl(var(--muted)) 0 42px,transparent 42px 54px);background-size:200% 100%,100% 100%}
.radar .radar-feature{border:1px solid #ff790080;border-radius:26px 26px 26px 8px;box-shadow:0 12px 30px #0002}
.radar .radar-feature .radar-card-body{display:flex;flex-direction:column;justify-content:center;padding:26px}
.radar .radar-feature h2{font-size:clamp(25px,3.5vw,38px);line-height:1.12}
.radar .radar-feature .radar-description{font-size:15px;line-height:1.7}
.radar .radar-feature .radar-cta{font-size:15px;border-radius:16px 16px 16px 5px;box-shadow:0 5px 18px #ff790020}
.radar .radar-feature .radar-badges span{font-size:10px;padding:8px 11px;box-shadow:0 2px 6px #0002}
.hub-shell [data-hub-scroll]:has(.hub-home) .safe-area-top::before,.hub-empty::before,.radar-empty:not([role])::before,.hub-clash-empty::before,.hub-clash-feedback::before{background-size:240% auto}
@media(max-width:1023px){
 .hub-shell>nav{border-top:1px solid hsl(var(--primary)/.15);box-shadow:0 -6px 24px hsl(var(--foreground)/.055);padding-top:5px}
 .hub-shell>nav a{border-radius:18px 18px 10px 10px;min-width:0}
 .hub-shell>nav a[aria-current=page]{background:linear-gradient(180deg,hsl(var(--primary)/.14),hsl(var(--primary)/.025))}
 .hub-shell>nav a[aria-current=page]>span.absolute{width:24px;height:3px;top:-3px}
 .hub-shell>nav a>div{transition:transform .2s ease,background .2s ease}
 .hub-shell>nav a:active>div{transform:translateY(-3px) scale(.94)}
}
@media(max-width:480px){.hub-home>a>img{width:78px;height:109px;margin-right:6px}.hub-home>a{gap:10px;padding:16px}.hub-home>a .font-heading{font-size:28px}.hub-home>a>svg{width:24px;height:24px}.hub-match-arena{gap:8px!important}.hub-match-vs{width:34px!important;height:34px!important;font-size:12px!important}.hub-deck-tile .hub-deck-cover{width:58px;height:81px}.radar .radar-feature .radar-card-body{padding:20px}}
@media(hover:hover) and (pointer:fine){.hub-deck-tile:hover .hub-deck-cover{transform:rotate(0)}.radar .radar-cta:hover{transform:translateY(-2px);box-shadow:0 8px 20px #ff790030}}
@media(prefers-reduced-motion:no-preference){.hub-loading::after{animation:hub-skeleton 1.8s ease-in-out infinite}.hub-clash-feedback{animation:hub-feedback .25s ease-out}.hub-vote-progress{animation:hub-feedback .35s ease-out}@keyframes hub-skeleton{to{background-position:-200% 0,0 0}}@keyframes hub-feedback{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.hub-vote-progress::-webkit-progress-value{transition:none}.hub-deck-tile .hub-deck-cover,.hub-shell>nav a>div{transition:none}}

/* /clash-story/profile.css */
/* Profile polish: existing profile data and controls, no new queries. */
.hub-shell [data-hub-scroll]:has(.hub-home) .safe-area-top{display:none}
.hub-home{padding-top:18px}
.hub-profile-content{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding-bottom:20px}
.hub-profile-content>*{margin-top:0!important;min-width:0}
.hub-profile-tabs{display:flex;gap:6px;padding:6px;background:hsl(var(--muted)/.7);border:1px solid hsl(var(--border));border-radius:18px}
.hub-profile-tabs button{min-height:46px;padding:10px 12px;border:1px solid transparent;font-size:12px;line-height:1.4;border-radius:13px}
.hub-profile-tabs button[aria-pressed=true]{background:hsl(var(--card));color:hsl(var(--primary));border-color:hsl(var(--primary)/.25);box-shadow:0 3px 8px #00000009}
.hub-profile-identity{position:relative;isolation:isolate;align-items:center;gap:18px;padding:24px 20px;border:1px solid hsl(var(--primary)/.3);border-radius:26px 26px 26px 8px;background:radial-gradient(ellipse at 0 0,hsl(var(--primary)/.15),transparent 65%),hsl(var(--card));box-shadow:0 8px 24px hsl(var(--foreground)/.04)}
.hub-profile-identity>div:first-child>button{width:80px;height:80px;border:3px solid hsl(var(--card));box-shadow:0 0 0 1px hsl(var(--primary)/.35),5px 6px 0 hsl(var(--primary)/.14);border-radius:24px 24px 24px 8px}
.hub-profile-identity>div.flex-1{min-width:0}
.hub-profile-identity>div.flex-1>div{align-items:center}
.hub-profile-identity h2{font-size:clamp(19px,2.5vw,28px);line-height:1.25;overflow-wrap:anywhere}
.hub-profile-identity p{overflow-wrap:anywhere;line-height:1.6;margin-top:6px}
.hub-profile-identity input{min-width:0;width:100%;font-size:16px}
.hub-profile-identity button{flex-shrink:0;min-width:40px;min-height:40px}
.hub-profile-feedback{display:flex;align-items:center;gap:10px;padding:16px 18px;border:1px solid hsl(var(--primary)/.3);border-radius:18px 18px 18px 6px;background:hsl(var(--primary)/.09);color:hsl(var(--foreground));font-size:13px;font-weight:800;letter-spacing:.025em}
.hub-profile-feedback>svg:last-child{margin-left:auto;color:hsl(var(--primary))}
.hub-profile-feedback>svg:first-child{color:hsl(var(--primary));flex-shrink:0}
.hub-profile-content>div:not(.hub-profile-tabs):not(.hub-profile-identity):not(.hub-profile-actions){border-radius:22px 22px 22px 8px;border-color:hsl(var(--border));background:linear-gradient(145deg,hsl(var(--card)),hsl(var(--primary)/.025));box-shadow:0 4px 16px hsl(var(--foreground)/.025);padding:20px}
.hub-profile-content>div:not(.hub-profile-identity) p.text-xs.font-bold{font-size:13px;line-height:1.5}
.hub-profile-content .text-\[11px\]{font-size:12px;line-height:1.65}
.hub-profile-content .text-\[10px\]{font-size:11px;line-height:1.5}
.hub-profile-content button{touch-action:manipulation}
.hub-profile-content button:not([role=checkbox]):not([role=switch]){min-height:40px}
.hub-profile-actions{display:flex;flex-direction:column;gap:10px;padding-top:8px;border-top:1px solid hsl(var(--border))}
.hub-profile-actions>*{margin-top:0!important}
.hub-profile-actions button{min-height:46px;border-radius:14px}
.hub-profile-actions>a button{background:hsl(var(--card));border-color:hsl(var(--primary)/.22)}
.hub-profile-actions>button{color:hsl(var(--destructive));border:1px solid hsl(var(--destructive)/.2);background:hsl(var(--destructive)/.04)}
.radar .radar-intro{min-height:0}
.radar .radar-intro h1{margin-bottom:0}
.radar .radar-empty p{color:hsl(var(--muted-foreground))}
.radar .radar-empty .radar-shortcuts a:not(:first-child),.radar .radar-empty button{color:hsl(var(--foreground));border-color:hsl(var(--border));background:hsl(var(--card))}
@media(min-width:1024px){.hub-profile-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding-inline:28px}.hub-profile-tabs,.hub-profile-identity,.hub-profile-feedback,.hub-profile-actions{grid-column:1/-1}.hub-profile-identity{padding:28px;gap:24px}.hub-profile-identity>div:first-child>button{width:96px;height:96px}.hub-home{padding-top:24px}}
@media(max-width:380px){.hub-profile-identity{padding:18px 14px;gap:12px}.hub-profile-identity>div:first-child>button{width:62px;height:62px}.hub-profile-content{padding-inline:16px}.hub-profile-identity h2{font-size:18px}.hub-profile-tabs button{padding-inline:8px;font-size:11px}}

/* /clash-story/story.css */
.clash-story-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 16px;border:1px solid #ff760078;border-radius:14px;background:linear-gradient(125deg,#ff76001c,#d92e7614);color:inherit;font:700 14px system-ui,sans-serif;cursor:pointer}.clash-story-button:hover{border-color:#ff7600}.clash-story-button:focus-visible,.clash-story-dialog button:focus-visible{outline:3px solid #ff7600;outline-offset:3px}.clash-story-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(94vw,520px);max-height:90dvh;padding:0;border:1px solid #6c4c32;border-radius:24px;background:#1d1916;color:#fff9f2;overflow:auto;box-shadow:0 24px 80px #0009;font:15px/1.5 system-ui,sans-serif}.clash-story-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}.clash-story-content{padding:22px}.clash-story-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.clash-story-header h2{font-size:21px;margin:0}.clash-story-close{background:transparent;color:#fff;border:1px solid #ffffff30;border-radius:50%;width:44px;height:44px;font-size:24px;cursor:pointer}.clash-story-preview{display:block;width:100%;max-width:250px;aspect-ratio:9/16;object-fit:contain;margin:18px auto;border-radius:14px;box-shadow:0 12px 40px #0008}.clash-story-preview[hidden]{display:none}.clash-story-status{color:#cfc1b5;font-size:14px}.clash-story-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.clash-story-actions button{min-height:48px;padding:10px;border-radius:12px;background:#302720;color:#fff9f2;border:1px solid #ffffff30;font:700 14px system-ui;cursor:pointer}.clash-story-actions button:first-child{background:#ff7600;border-color:#ff7600;color:#171311}.clash-story-actions button:disabled{opacity:.5;cursor:wait}.clash-story-copy{grid-column:1/-1}.clash-story-dialog ol{padding-left:22px;font-size:14px;color:#cfc1b5}.clash-story-dialog li{margin:8px 0}.clash-story-dialog input{box-sizing:border-box;width:100%;padding:12px;background:#100e0c;color:#eee;border:1px solid #ffffff30;border-radius:10px;font-size:12px}.clash-story-hint{font-size:12px;color:#a89b8f}.clash-story-error{color:#ffbca1}

.card-search form{display:grid;gap:16px}.card-search-basic,.card-search-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-search label{margin:0}.card-search-basic input,.card-search-basic select,.card-search-fields input,.card-search-fields select{width:100%;min-width:0}.card-search .player-check{margin:6px 0;align-items:center}.card-search .player-check input{flex:none;width:20px;height:20px}.card-search-levels{display:flex;flex-wrap:wrap;gap:12px;padding:12px;border:1px solid #ffffff24;border-radius:12px}.card-search-levels legend{padding:0 6px;font-size:.9rem}.card-search-range{display:flex;gap:8px;min-width:0;padding:10px;border:1px solid #ffffff24;border-radius:12px}.card-search-range input{width:50%;min-width:0}.card-search-advanced{padding:14px;border:1px solid #ffffff24;border-radius:12px}.card-search-advanced[open] summary{margin-bottom:16px}.card-search-actions{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:0;padding:10px 0;background:hsl(var(--background));z-index:2}.card-search-actions button:first-child{background:#ff7900;color:#17110d;font-weight:700;border-color:#ff7900;flex:1}.card-search-image{display:block;width:100%;padding:0!important;background:transparent!important;border:0!important}.card-search-image img{aspect-ratio:63/88}.card-search-overlay{position:fixed;inset:0;z-index:1000;background:#000e;display:flex;align-items:center;justify-content:center;padding:60px 20px}.card-search-overlay img{max-width:100%;max-height:85dvh;object-fit:contain}.card-search-overlay>button{position:absolute;right:20px;top:20px;font-size:28px;min-width:48px}@media(min-width:1000px){.card-search-basic{grid-template-columns:160px minmax(220px,2fr) 1fr 1fr}.card-search-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){.card-search-basic>label:nth-child(2){grid-column:1/-1;grid-row:1}.card-search-fields{grid-template-columns:1fr}.card-search-levels{gap:10px}.card-search-actions button{min-width:120px}}

/* Keep complete tab labels and form controls inside narrow screens. */
.player-page,.player-page *{box-sizing:border-box}
.player-page{min-width:0;max-width:100%}
.player-page .player-tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;max-width:100%}
.player-page .player-tabs button{flex:0 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal;padding:10px 14px;min-height:44px;line-height:1.4;font-size:.95rem}
.player-page input:not([type=checkbox]):not([type=radio]),.player-page select,.player-page textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.player-page .player-toolbar{min-width:0;max-width:100%}
.player-page .player-toolbar>label{flex:1 1 160px;min-width:0;max-width:100%}
@media(max-width:380px){.player-page .player-toolbar>label{flex-basis:100%}}

/* Compact search results share Digimon's thumbnail, information and quantity layout. */
.hub-result-views{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}
.hub-result-views button{min-height:44px;padding:8px 14px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));font-size:14px}
.hub-result-views button[aria-pressed=true]{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.pk-results{display:grid;gap:8px;margin-top:12px;min-width:0}.pk-list{grid-template-columns:minmax(0,1fr)}
.pk-results .pk-result{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;padding:12px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));align-items:start;min-width:0}
.pk-result .pk-image{padding:0!important;border:0!important;background:none!important;min-height:0;display:block;width:56px}
.pk-result .pk-image img{width:56px;height:78px;object-fit:contain;display:block;margin:0;border-radius:6px}
.pk-info{min-width:0}.pk-info .pk-name{display:block;text-align:left;font-size:14px;font-weight:700;line-height:1.4;padding:0;border:0;background:none;min-height:0;overflow-wrap:anywhere}
.pk-info small,.pk-qty small{display:block;font-size:10px;line-height:1.5;color:hsl(var(--muted-foreground));margin-top:4px}
.pk-qty{display:flex;flex-direction:column;gap:6px;align-items:end}.pk-qty>div{display:flex;gap:4px}.pk-qty button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid hsl(var(--border));border-radius:10px;font-size:20px}
.pk-qty button:last-child{background:hsl(var(--primary)/.1);color:hsl(var(--primary))}
.pk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pk-grid .pk-result{display:flex;flex-direction:column}.pk-grid .pk-image{width:100%}.pk-grid .pk-image img{width:100%;height:auto;aspect-ratio:63/88}.pk-grid .pk-qty{align-self:stretch;margin-top:auto}
.lc-builder .lc-list{grid-template-columns:minmax(0,1fr);gap:8px}
.lc-builder .lc-list .lc-card{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px;border-radius:12px}
.lc-builder .lc-list .lc-image{width:56px;min-height:0}.lc-builder .lc-list .lc-image img{width:56px;height:78px;object-fit:contain}
.lc-builder .lc-list .lc-card-info{min-width:0;gap:4px}.lc-builder .lc-list .lc-card-info>strong{font-size:14px}.lc-builder .lc-list .lc-muted{font-size:10px}
.lc-builder .lc-list .lc-card-info details{font-size:10px}.lc-builder .lc-list .lc-qty{display:grid;grid-template-columns:32px 32px;gap:4px;width:68px;max-width:none;align-items:start}
.lc-builder .lc-list .lc-qty .lc-deck-count{grid-column:1/-1;grid-row:1;text-align:right;font-size:10px;color:hsl(var(--muted-foreground));line-height:1.5;white-space:nowrap}
.lc-builder .lc-list .lc-qty button{min-width:32px;width:32px;height:32px;min-height:32px;padding:0;font-size:20px;border-radius:10px}
.lc-builder .lc-list .lc-qty button:last-child{background:hsl(var(--primary)/.1);color:hsl(var(--primary));grid-column:2}
@media(max-width:359px){.pk-results .pk-result,.lc-builder .lc-list .lc-card{grid-template-columns:44px minmax(0,1fr) auto;gap:8px;padding:10px}.pk-result .pk-image,.lc-builder .lc-list .lc-image{width:44px}.pk-result .pk-image img,.lc-builder .lc-list .lc-image img{width:44px;height:62px}}

/* Keep the featured deck and quick links together on desktop. */
@media (min-width:1024px){
 .hub-home{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;align-items:start;align-content:start;gap:24px;max-width:1500px;margin-inline:auto}
 .hub-home>:first-child{grid-column:1;grid-row:1;min-width:0;margin:0!important}
 .hub-home>section:first-of-type{grid-column:2;grid-row:1 / span 2;min-width:0}
 .hub-home>section:last-of-type{grid-column:1;grid-row:2;min-width:0}
 .hub-home>section>div.grid>a{min-height:92px;padding:16px;align-items:center}
}

.hub-desktop-links{display:none!important}
.hub-rules-games{display:none}
@media(min-width:1024px){
 .hub-shell{grid-template-columns:224px minmax(0,1fr)}
 .hub-shell>[data-hub-scroll]{min-width:0;scrollbar-gutter:stable;scroll-padding:24px 0 40px;outline:none}
 .hub-shell>[data-hub-scroll].no-scrollbar{scrollbar-width:thin}
 .hub-shell>[data-hub-scroll]::-webkit-scrollbar{display:block;width:8px}
 .hub-shell>[data-hub-scroll]::-webkit-scrollbar-thumb{background:hsl(var(--muted-foreground)/.35);border-radius:8px}
 .hub-shell>nav{padding:16px 12px;overscroll-behavior:contain;scrollbar-width:thin}
 .hub-shell>nav::before{padding:8px 12px 18px;margin-bottom:14px;flex-shrink:0}
 .hub-shell>nav>.hub-primary-nav{gap:4px}
 .hub-shell>nav .hub-primary-nav>a{min-height:48px;padding:8px 10px;gap:10px}
 .hub-shell>nav a[data-desktop-current=false]{background:transparent;border-color:transparent;box-shadow:none;color:hsl(var(--muted-foreground))}
 .hub-shell>nav a[data-desktop-current=false]>div{background:transparent;transform:none}
 .hub-shell>nav>.hub-desktop-links{display:flex!important;flex-direction:column;gap:3px;margin-top:18px;padding-top:14px;border-top:1px solid hsl(var(--border));align-items:stretch;max-width:none}
 .hub-desktop-nav-title{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground));padding:0 10px 8px}
 .hub-shell>nav .hub-desktop-links a{display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 10px;font-size:12px;font-weight:600;color:hsl(var(--muted-foreground));line-height:1.4}
 .hub-shell>nav .hub-desktop-links a>span:last-child{font-size:12px;letter-spacing:0}
 .hub-desktop-link-mark{width:24px;flex-shrink:0;text-align:center;font-size:16px;color:hsl(var(--primary))}
 .hub-shell>nav .hub-desktop-links a[aria-current=page]{color:hsl(var(--primary));background:hsl(var(--primary)/.1);border-color:var(--hub-edge);box-shadow:inset 3px 0 hsl(var(--primary))}
 .hub-desktop-admin{margin-top:10px;padding-top:8px;border-top:1px solid hsl(var(--border))}
 .hub-shell>nav .hub-desktop-skip{position:fixed;left:236px;top:-100px;z-index:1000;background:hsl(var(--card));border:2px solid hsl(var(--primary));color:hsl(var(--foreground));width:auto}
 .hub-shell>nav .hub-desktop-skip:focus{top:60px}
 .hub-shell :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid hsl(var(--primary));outline-offset:3px}
 .hub-shell .safe-area-top:has(h1){padding:20px 24px!important;margin-block:20px}
 .hub-shell .safe-area-top:has(h1)>div.mt-4{margin-top:8px}
 .hub-shell .player-shortcuts{padding-inline:28px;margin-block:12px;justify-content:flex-start}
 .hub-shell .player-shortcuts a{flex:0 1 auto;min-width:0;padding:10px 16px;text-decoration:none}
 .player-page{padding:24px 28px 48px;max-width:1440px}
 .player-tabs{justify-content:flex-start;gap:8px;background:hsl(var(--background));border-bottom:1px solid hsl(var(--border));margin:18px 0;padding:12px 0}
 .player-tabs button{flex:0 0 auto;white-space:nowrap;word-break:normal;padding:10px 20px}
 .player-page :is(input,select,textarea,button){background:hsl(var(--card));color:hsl(var(--foreground));border-color:hsl(var(--border))}
 .player-tabs button[aria-current=page]{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:hsl(var(--primary))}
 .card-search{padding:22px;border-color:hsl(var(--border));background:hsl(var(--card))}
 .card-search-basic{grid-template-columns:minmax(260px,2fr) minmax(160px,1fr) minmax(160px,1fr);align-items:end}
 .card-search-basic>label:first-child{grid-column:auto;grid-row:auto}
 .card-search-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 .card-search-actions{justify-content:flex-start;position:static;background:transparent;padding-top:8px}
 .card-search-actions button:first-child{flex:0 0 auto;min-width:180px}
 .card-search-actions button{min-width:130px}
 .card-search :is(fieldset,details){border-color:hsl(var(--border))}
 .hub-rules-page{max-width:1280px;margin-inline:auto}
 .hub-rules-content{padding-inline:28px!important}
 .hub-rules-games{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
 .hub-rules-games a{padding:10px 18px;border:1px solid hsl(var(--border));border-radius:10px;font-size:13px;font-weight:700}
 .hub-rules-games a[aria-current=page]{background:hsl(var(--primary)/.1);border-color:hsl(var(--primary));color:hsl(var(--primary))}
 .hub-rules-content>section:has(#rules-question){max-width:100%}
 .hub-rules-content>section:has(#rules-question) button{width:auto;min-width:200px;padding-inline:24px;min-height:44px}
 .hub-rules-content #rules-question{max-height:280px;resize:vertical}
 .hub-editor-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,36%);padding-inline:28px;gap:20px;min-width:0}
 .hub-editor-workspace>*{min-width:0}
 .hub-editor-panel{max-height:calc(100dvh - var(--hub-language-height,48px) - 40px);scrollbar-width:thin;overscroll-behavior:contain;top:20px}
 .hub-profile-content{max-width:1320px;margin-inline:auto}
 .hub-profile-actions{flex-direction:row;flex-wrap:wrap;align-items:center}
 .hub-profile-actions>*{flex:0 1 auto}
 .hub-admin-page{max-width:1600px;margin-inline:auto}
 .hub-admin-nav{grid-template-columns:auto minmax(240px,420px);align-items:center;justify-content:start}
 .hub-admin-page .hub-clash-steps{position:sticky;top:0;z-index:10;background:hsl(var(--background));padding-block:10px}
 .radar .radar-filters{gap:10px}
 .radar .radar-filters button{white-space:nowrap;min-height:42px}
 .hub-shell [role=dialog]{max-height:calc(100dvh - 64px);overflow-y:auto}
}
@media(min-width:1600px){
 .hub-shell{grid-template-columns:240px minmax(0,1fr)}
 .hub-editor-workspace{grid-template-columns:minmax(0,1fr) minmax(360px,34%)}
 .hub-editor-panel .hub-deck-grid .hub-card-collection{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hub-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
}

@media(min-width:1024px){.hub-trade-page{max-width:1480px;margin-inline:auto}.hub-trade-page>.space-y-4{padding-inline:28px}.hub-trade-page>.space-y-4>label:first-child{max-width:360px}.hub-trade-tabs,.hub-deck-tabs{width:fit-content;max-width:100%;flex-wrap:wrap}.hub-trade-tabs>button,.hub-deck-tabs>button{flex:0 1 auto;min-width:120px;padding:10px 18px;white-space:nowrap}.hub-gallery-filters{align-items:end}.hub-gallery-filters button{min-height:44px;padding-inline:14px;white-space:nowrap}}
.hub-avatar-portrait{display:grid;place-items:center;position:relative;width:100%;height:100%;isolation:isolate;overflow:hidden;border-radius:inherit;background:linear-gradient(145deg,#ffad54,#c84c16);color:white}
.hub-avatar-portrait::before{content:'';position:absolute;inset:4px;border:1px solid #ffffff45;border-radius:inherit;pointer-events:none;z-index:1}
.hub-avatar-portrait::after{content:attr(data-initials);position:absolute;inset:0;display:grid;place-items:center;font-size:28px;font-weight:800;pointer-events:none}
.hub-avatar-portrait img{width:100%;height:100%;object-fit:cover}
.hub-avatar-art{width:100%;height:100%;filter:drop-shadow(0 4px 2px #10203935)}
.hub-avatar-initials{font-size:32px;font-weight:800;text-shadow:0 2px 2px #762d2740;letter-spacing:.02em}
.hub-profile-identity{padding:32px 22px 24px;gap:20px;border-radius:24px;background:radial-gradient(ellipse at 0 0,hsl(var(--primary)/.2),transparent 65%),linear-gradient(130deg,hsl(var(--card)),hsl(var(--background)));overflow:hidden}
.hub-profile-identity::before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,hsl(var(--primary)),#ffb85c,transparent)}
.hub-profile-identity::after{content:'';position:absolute;width:180px;height:180px;right:-70px;top:-100px;border:22px solid hsl(var(--primary)/.05);border-radius:40px;transform:rotate(30deg);z-index:-1}
.hub-profile-identity>div:first-child>button{width:88px;height:88px;border-radius:26px;box-shadow:0 0 0 2px hsl(var(--primary)/.25),0 10px 24px hsl(var(--primary)/.16);border:3px solid hsl(var(--card));overflow:visible;background:transparent}
.hub-profile-identity .hub-avatar-portrait{border-radius:23px}
.hub-profile-identity .hub-avatar-edit{position:absolute;bottom:-5px;right:-5px;width:28px;height:28px;padding:6px;border-radius:10px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));border:2px solid hsl(var(--card))}
.hub-profile-identity h2{letter-spacing:-.025em;font-weight:800}
.hub-profile-identity p{font-size:12px;word-break:break-word}
.hub-profile-content>div:not(.hub-profile-tabs):not(.hub-profile-identity):not(.hub-profile-actions){border-radius:20px;box-shadow:0 4px 16px hsl(var(--foreground)/.025);background:hsl(var(--card));padding:22px}
.hub-profile-content>div:not(.hub-profile-identity) p.text-xs.font-bold{font-size:14px;letter-spacing:-.01em}
.hub-profile-tabs{border-radius:16px;padding:5px;gap:5px}
.hub-profile-tabs button{border-radius:12px;font-size:13px}
.hub-profile-feedback{border-radius:16px;padding:15px 18px;font-size:12px;box-shadow:none;background:hsl(var(--primary)/.055)}
.hub-profile-content :is(input,select){border-radius:12px}
.hub-profile-content button:focus-visible,.hub-avatar-picker button:focus-visible{outline:3px solid hsl(var(--primary));outline-offset:3px}
.hub-avatar-picker{width:calc(100% - 32px)!important;max-width:600px!important;max-height:88dvh;overflow-y:auto;border-radius:24px;padding:24px;background:hsl(var(--card))}
.hub-avatar-gallery{display:grid;gap:22px;max-height:65dvh;overflow-y:auto;padding:4px 4px 8px;scrollbar-width:thin}
.hub-avatar-gallery h3{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:hsl(var(--muted-foreground));margin:0 0 12px}
.hub-avatar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hub-avatar-option{position:relative;display:flex;flex-direction:column;gap:9px;padding:9px;border:1px solid hsl(var(--border));border-radius:18px;background:hsl(var(--background));min-width:0;transition:transform .15s,border-color .15s,box-shadow .15s}
.hub-avatar-option>.hub-avatar-portrait{aspect-ratio:1;height:auto;border-radius:12px}
.hub-avatar-option-name{font-size:11px;line-height:1.4;font-weight:700;text-align:center;width:100%}
.hub-avatar-option[aria-pressed=true]{border:2px solid hsl(var(--primary));padding:8px;background:hsl(var(--primary)/.07);box-shadow:0 0 0 3px hsl(var(--primary)/.09)}
.hub-avatar-selected{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:24px;height:24px;border:2px solid hsl(var(--card));border-radius:50%;background:hsl(var(--primary));color:hsl(var(--primary-foreground));font-size:13px;font-weight:800}
.hub-avatar-option:disabled{opacity:.55;cursor:wait}
.hub-avatar-error{color:hsl(var(--destructive));font-size:12px;padding:10px;border:1px solid hsl(var(--destructive)/.3);border-radius:10px}
.hub-public-profile-content{max-width:1240px;margin-inline:auto}
.hub-public-avatar{width:88px;height:88px;border-radius:24px;box-shadow:0 0 0 3px hsl(var(--card)),0 0 0 5px hsl(var(--primary)/.2);overflow:hidden}
@media(hover:hover){.hub-avatar-option:hover:enabled{transform:translateY(-3px);border-color:hsl(var(--primary));box-shadow:0 6px 16px hsl(var(--primary)/.1)}}
@media(min-width:1024px){.hub-profile-identity{padding:34px;gap:26px}.hub-profile-identity>div:first-child>button{width:112px;height:112px;border-radius:30px}.hub-profile-identity .hub-avatar-portrait{border-radius:27px}.hub-profile-tabs{width:fit-content;min-width:360px}.hub-profile-tabs button{padding-inline:24px}.hub-profile-feedback{grid-column:1/-1}.hub-profile-content{gap:20px}.hub-profile-actions{padding-top:18px}.hub-profile-actions button{min-width:170px}.hub-public-profile-content{padding-inline:28px}}
@media(max-width:400px){.hub-profile-identity{padding:26px 16px 22px;gap:14px}.hub-profile-identity>div:first-child>button{width:72px;height:72px;border-radius:22px}.hub-profile-identity .hub-avatar-portrait{border-radius:19px}.hub-profile-identity h2{font-size:19px}.hub-avatar-picker{padding:18px}.hub-avatar-options{gap:8px}.hub-avatar-option-name{font-size:10px}.hub-profile-tabs button{font-size:11px;padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.hub-avatar-option{transition:none}.hub-avatar-option:hover:enabled{transform:none}}

.hub-avatar-cartoon::before{display:none}
.hub-avatar-cartoon .hub-avatar-art{display:block;width:100%;height:100%;object-fit:cover;filter:none}
.hub-avatar-option>.hub-avatar-cartoon{overflow:hidden}

.gallery-refreshed{min-width:0}
.gallery-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.gallery-results-toolbar .hub-gallery-result{margin:0}
.gallery-results-toolbar label{display:flex;align-items:center;gap:9px;font-size:12px;color:hsl(var(--muted-foreground));min-width:0}
.gallery-results-toolbar select{min-height:42px;max-width:100%;padding:9px 30px 9px 12px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));color:hsl(var(--foreground));font:inherit}
.gallery-sort-note{font-size:11px;line-height:1.5;color:hsl(var(--muted-foreground));margin:-4px 0 14px}
.gallery-deck-card{position:relative;overflow:hidden;display:flex;flex-direction:column;min-width:0;border:1px solid hsl(var(--border));border-radius:22px;background:hsl(var(--card));box-shadow:0 3px 14px hsl(var(--foreground)/.035)}
.gallery-color-strip{display:flex;height:5px;flex-shrink:0;background:hsl(var(--muted))}
.gallery-color-strip span{flex:1}
.gallery-deck-open{display:flex;align-items:center;gap:16px;width:100%;min-width:0;flex:1;padding:18px 16px 14px;text-align:left;color:hsl(var(--foreground));background:transparent;cursor:pointer}
.gallery-deck-cover{display:grid;place-items:center;width:72px;min-width:72px;height:101px;border-radius:10px;overflow:hidden;background:hsl(var(--muted)/.4);font-size:12px;font-weight:800;color:hsl(var(--muted-foreground))}
.gallery-deck-cover img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-deck-info{display:flex;flex-direction:column;gap:9px;min-width:0;flex:1}
.gallery-deck-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:17px;line-height:1.3;font-weight:800;letter-spacing:-.025em}
.gallery-deck-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font-size:11px;line-height:1.4;min-width:0}
.gallery-game{font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:800;color:hsl(var(--primary))}
.gallery-archetype{padding:3px 7px;border-radius:6px;background:hsl(var(--muted)/.65);color:hsl(var(--muted-foreground));max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gallery-card-count{font-size:12px;color:hsl(var(--muted-foreground));line-height:1.4}
.gallery-color-dots{display:flex;gap:5px;align-items:center}
.gallery-color-dots i{display:block;width:10px;height:10px;border-radius:50%;border:1px solid hsl(var(--foreground)/.15)}
.gallery-open-arrow{font-size:24px;line-height:1;color:hsl(var(--muted-foreground));margin-left:auto}
.gallery-deck-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;padding:10px 16px;min-height:47px;border-top:1px solid hsl(var(--border)/.7)}
.gallery-author{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;color:hsl(var(--muted-foreground));font-size:11px;line-height:1.4;text-decoration:none}
.gallery-author-avatar{display:block;width:24px;height:24px;min-width:24px;border-radius:7px;overflow:hidden;flex-shrink:0}
.gallery-author-avatar .hub-avatar-initials{font:800 10px/1 sans-serif;text-shadow:none}
.gallery-author-avatar .hub-avatar-portrait::after{font-size:10px}
.gallery-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
.gallery-updated{font-size:10px;line-height:1.5;color:hsl(var(--muted-foreground));white-space:nowrap}
.gallery-deck-ratings{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 16px 11px;background:hsl(var(--background)/.35);color:hsl(var(--muted-foreground));font-size:11px}
.gallery-vote-counts{display:flex;gap:16px;align-items:center}
.gallery-vote-counts>span{display:inline-flex;align-items:center;gap:5px;min-width:28px}
.gallery-vote-counts b{font-weight:600;font-variant-numeric:tabular-nums}
.gallery-rating-total{font-size:10px;white-space:nowrap}
.gallery-refreshed :is(a,button,input,select):focus-visible{outline:2px solid hsl(var(--primary));outline-offset:-3px}
@media(hover:hover){.gallery-deck-card:hover{border-color:hsl(var(--primary)/.5);box-shadow:0 8px 22px hsl(var(--foreground)/.06)}.gallery-deck-open:hover .gallery-deck-name,.gallery-author[href]:hover{color:hsl(var(--primary))}}
@media(min-width:1024px){.gallery-refreshed .hub-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}.gallery-deck-name{min-height:44px}.gallery-deck-open{min-height:166px}.gallery-deck-footer{min-height:67px;align-content:center}.gallery-author-name{max-width:190px}}
@media(max-width:420px){.gallery-results-toolbar{align-items:flex-start;gap:10px}.gallery-results-toolbar label{width:100%;justify-content:space-between}.gallery-results-toolbar select{max-width:74%}.gallery-deck-open{padding:16px 13px 13px;gap:12px}.gallery-deck-name{font-size:16px}.gallery-deck-cover{width:66px;min-width:66px;height:93px}.gallery-deck-footer{padding-inline:13px}.gallery-deck-ratings{padding-inline:13px}.gallery-author-name{max-width:210px}}

.hub-daily-author{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}.hub-daily-author-person{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}.hub-daily-author-avatar{width:24px;height:24px;flex:0 0 24px;border-radius:50%;overflow:hidden;display:inline-flex}.hub-daily-author-avatar>*{width:100%!important;height:100%!important;min-width:0!important}.hub-daily-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.game-hub{max-width:1160px;margin:0 auto;padding:22px 24px 36px;color:hsl(var(--foreground))}.game-breadcrumb{display:flex;align-items:center;gap:10px;font-size:13px;color:hsl(var(--muted-foreground));margin-bottom:20px}.game-breadcrumb a:hover{color:var(--game-accent)}.game-hero{border:1px solid hsl(var(--border));border-top:4px solid var(--game-accent);background:linear-gradient(125deg,hsl(var(--card)),hsl(var(--background)));border-radius:24px;padding:clamp(24px,5vw,54px)}.game-eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--game-accent)}.game-hero h1{font-size:clamp(32px,5vw,56px);line-height:1.1;margin:15px 0 18px;font-weight:850;letter-spacing:-.035em}.game-hero p{max-width:660px;color:hsl(var(--muted-foreground));font-size:17px;line-height:1.75;margin-bottom:25px}.game-primary{display:inline-flex;align-items:center;gap:24px;min-height:48px;padding:12px 19px;background:#ff7900;color:#18130e;border-radius:13px;font-weight:800}.game-resource-section{margin-top:34px}.game-hub h2{font-size:22px;font-weight:800;letter-spacing:-.02em;margin-bottom:17px}.game-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.game-resource{position:relative;display:flex;flex-direction:column;align-items:flex-start;border:1px solid hsl(var(--border));border-radius:20px;background:hsl(var(--card));padding:25px;min-width:0;transition:border-color .15s,transform .15s}.game-resource:hover{border-color:var(--game-accent);transform:translateY(-2px)}.game-resource-number{color:var(--game-accent);font-size:12px;font-weight:800;letter-spacing:.1em;margin-bottom:16px}.game-resource h3{font-size:19px;font-weight:800;margin:0 0 10px}.game-resource p{font-size:15px;line-height:1.7;color:hsl(var(--muted-foreground));margin:0 0 22px}.game-resource-cta{margin-top:auto;font-size:14px;font-weight:750;color:#ff8b24}.game-clash{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:24px;margin-top:22px;border:1px solid #ff790055;border-radius:20px;background:#ff790009}.game-clash h2{margin-bottom:8px}.game-clash p{max-width:630px;color:hsl(var(--muted-foreground));line-height:1.7;font-size:15px}.game-clash>a{white-space:nowrap;font-weight:750;color:#ff8b24;min-height:44px;display:inline-flex;align-items:center}.game-community{margin:34px 0}.game-community p{color:hsl(var(--muted-foreground));line-height:1.8;max-width:780px;font-size:15px}.game-community>div{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.game-community a{min-height:44px;padding:10px 15px;border:1px solid hsl(var(--border));border-radius:12px;font-weight:650;font-size:14px}.hub-game-discovery{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.hub-game-discovery>span{font-size:12px;color:hsl(var(--muted-foreground));font-weight:700;margin-right:5px}.hub-game-discovery>a{display:inline-flex;gap:8px;align-items:center;min-height:44px;padding:8px 12px;border:1px solid hsl(var(--border));background:hsl(var(--card));border-radius:12px;font-size:14px;font-weight:650}.hub-game-discovery i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.game-hub a:focus-visible,.hub-game-discovery a:focus-visible{outline:2px solid #ff7900;outline-offset:4px}.game-hub a{overflow-wrap:anywhere}.gallery-deck-open{text-decoration:none;color:inherit}.hub-daily-wrap>a>img{aspect-ratio:64/90}.gallery-deck-cover img{aspect-ratio:5/7}.game-primary:hover{filter:brightness(1.08)}
@media(min-width:1024px){.hub-home>.hub-game-links-wrap{grid-column:1/-1;grid-row:3}}
@media(max-width:600px){.game-hub{padding:18px 16px 30px}.game-resources{grid-template-columns:1fr;gap:12px}.game-hero{border-radius:19px;padding:26px 21px}.game-hero p{font-size:16px}.game-resource{padding:22px}.game-clash{align-items:flex-start;flex-direction:column;gap:10px;padding:22px}.game-hub h2{font-size:21px}.game-community>div{flex-direction:column}.game-community a{text-align:center}.hub-game-discovery>span{flex-basis:100%;margin-bottom:3px}.hub-game-discovery>a{flex:1;justify-content:center;font-size:13px;padding-inline:8px}}
@media(prefers-reduced-motion:reduce){.game-resource{transition:none}.game-resource:hover{transform:none}}

/* Initials must fit the 24px author avatars, including broken-image fallback. */
.hub-avatar-initials{display:grid;place-items:center;line-height:1}
.hub-daily-author-avatar .hub-avatar-initials,
.gallery-author-avatar .hub-avatar-initials{font:800 12px/1 Arial,sans-serif;letter-spacing:0;text-shadow:none}
.hub-daily-author-avatar .hub-avatar-portrait::after,
.gallery-author-avatar .hub-avatar-portrait::after{font:800 12px/1 Arial,sans-serif;letter-spacing:0}

.hub-store-links{grid-column:1/-1;align-self:start;min-width:0;margin-top:12px;padding:24px;border:1px solid hsl(var(--border));border-radius:22px;background:hsl(var(--card));display:flex;gap:26px;align-items:center}.hub-store-intro{flex:1;min-width:0}.hub-store-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:800;color:#ff8b24}.hub-store-intro h2{font-size:21px;font-weight:800;margin:6px 0}.hub-store-intro p{font-size:13px;line-height:1.6;color:hsl(var(--muted-foreground));max-width:340px}.hub-store-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:2;min-width:0}.hub-store-actions a{display:flex;align-items:center;gap:10px;padding:14px 12px;min-height:70px;min-width:0;border:1px solid hsl(var(--border));border-radius:14px;color:hsl(var(--foreground));text-decoration:none;transition:background .15s,border-color .15s}.hub-store-actions a>svg{flex-shrink:0;color:#ff8b24}.hub-store-actions a>span:not(.hub-store-arrow){min-width:0}.hub-store-actions strong{display:block;font-size:13px;line-height:1.4;font-weight:750}.hub-store-actions small{display:block;font-size:11px;color:hsl(var(--muted-foreground));margin-top:4px;line-height:1.5;overflow-wrap:anywhere}.hub-store-arrow{margin-left:auto;color:hsl(var(--muted-foreground));font-size:15px}.hub-store-actions a:hover{background:#ff79000b;border-color:#ff790066}.hub-store-actions a:focus-visible{outline:2px solid #ff7900;outline-offset:4px}@media(max-width:1200px){.hub-store-links{flex-direction:column;align-items:stretch;gap:18px}.hub-store-intro p{max-width:none}}@media(max-width:600px){.hub-store-links{padding:20px;margin-top:8px;border-radius:18px}.hub-store-actions{grid-template-columns:1fr;gap:8px}.hub-store-actions a{min-height:64px;padding:12px 14px}.hub-store-actions strong{font-size:14px}.hub-store-actions small{font-size:12px}}@media(prefers-reduced-motion:reduce){.hub-store-actions a{transition:none}}

@media(min-width:1024px){.hub-home>.hub-store-links{grid-column:1/-1;grid-row:4}}

/* Compact home actions, shared by desktop and mobile. */
.hub-home>section>button{min-height:72px;padding:12px 16px;border-radius:16px 16px 16px 7px;box-shadow:0 2px 7px hsl(var(--foreground)/.06)}
.hub-home>section>button+button{margin-top:8px}
.hub-home>section>button p:first-child{font-size:20px;line-height:1.2}
.hub-home>section>button p:last-child{font-size:12px;line-height:1.5;margin-top:3px}
.hub-home>section>button::after{width:100px;height:120px;border-width:14px;top:-25px;right:-16px;border-radius:28px}
.hub-home>.hub-store-links{padding:18px 20px;gap:18px;margin-top:0;border-radius:18px}
.hub-store-links .hub-store-actions{gap:8px}
.hub-store-links .hub-store-actions a{min-height:54px;padding:9px 11px;gap:8px;border-radius:11px}
.hub-store-links .hub-store-actions a>svg{width:19px;height:19px}
.hub-store-links .hub-store-actions strong{font-size:12px;line-height:1.35}
.hub-store-links .hub-store-actions small{font-size:10px;line-height:1.4;margin-top:2px}
.hub-store-links .hub-store-intro h2{font-size:19px;margin:4px 0}
.hub-store-links .hub-store-intro p{font-size:12px;line-height:1.5}
@media(min-width:1024px){.hub-home>.hub-store-links{grid-row:3}}
@media(max-width:600px){.hub-home>section>button{min-height:68px;padding:11px 14px}.hub-home>section>button p:first-child{font-size:19px}.hub-home>.hub-store-links{padding:16px;gap:12px}.hub-store-links .hub-store-actions a{min-height:52px;padding:8px 11px}.hub-store-links .hub-store-actions strong{font-size:13px}.hub-store-links .hub-store-actions small{font-size:11px}}

/* Same compact game treatment for tools and quick-access rule links. */
.hub-home>section>button{min-height:60px;padding:9px 14px;border-radius:14px 14px 14px 6px}
.hub-home>section>button p:first-child{font-size:18px;line-height:1.2}
.hub-home>section>button p:last-child{font-size:11.5px;line-height:1.45;margin-top:2px}
.hub-home>section>button+button{margin-top:7px}
.hub-home>section>button::after{width:85px;height:100px;border-width:12px;top:-23px;right:-15px;border-radius:24px}
.hub-home>section>div.grid{grid-template-columns:minmax(0,1fr);gap:7px}
.hub-home>section>div.grid>a[href]{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:row;align-items:center;min-height:60px;padding:9px 14px;border:1px solid #ffffff20;border-radius:14px 14px 14px 6px;color:#fff;box-shadow:0 2px 7px hsl(var(--foreground)/.06);gap:0;transition:filter .15s,transform .15s}
.hub-home>section>div.grid>a[href='/juiz']{background:linear-gradient(110deg,#1d4ed8 0%,#2563eb 55%,#3b82f6 100%)}
.hub-home>section>div.grid>a[href='/lorcana-juiz']{background:linear-gradient(110deg,#7e22ce 0%,#a21caf 55%,#ec4899 100%)}
.hub-home>section>div.grid>a[href='/pokemon-juiz']{background:linear-gradient(110deg,#b91c1c 0%,#dc2626 55%,#ef4444 100%)}
.hub-home>section>div.grid>a[href]>div:first-child{display:none}
.hub-home>section>div.grid>a[href] p:first-child{font-family:'Bebas Neue',sans-serif;font-size:18px;font-weight:400;line-height:1.2;letter-spacing:.025em;color:#fff}
.hub-home>section>div.grid>a[href] p:last-child{font-size:11.5px;font-weight:400;line-height:1.45;margin-top:2px;color:#fff;opacity:.88}
.hub-home>section>div.grid>a[href]::after{content:'';position:absolute;right:-15px;top:-23px;width:85px;height:100px;border:12px solid #ffffff12;border-radius:24px;transform:rotate(28deg);pointer-events:none;z-index:-1}
.hub-home>section>div.grid>a[href]:hover{transform:none;filter:brightness(1.06);box-shadow:0 2px 7px hsl(var(--foreground)/.06)}
.hub-home>section>div.grid>a[href]:active{transform:scale(.99)}
.hub-home>section>div.grid>a[href]:focus-visible{outline:2px solid #ff7900;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.hub-home>section>div.grid>a[href]{transition:none}}

.hub-tools-heading{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:hsl(var(--muted-foreground));font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.hub-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hub-home .hub-tools-menu .hub-tool-action{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:0;min-width:0;min-height:64px;width:100%;margin:0;padding:10px 12px;border:1px solid #ffffff20;border-radius:14px 14px 14px 6px;text-align:left;color:white;text-decoration:none;box-shadow:0 2px 7px #0001}
.hub-home .hub-tools-menu .hub-tool-action p:first-child{font-family:'Bebas Neue',sans-serif;font-weight:400;font-size:18px;line-height:1.2;letter-spacing:.025em;color:white}
.hub-home .hub-tools-menu .hub-tool-action p:last-child{font-size:11px;line-height:1.4;margin-top:3px;color:white;opacity:.88}
.hub-home .hub-tools-menu a.hub-tool-action>div:first-child{display:none}
.hub-home .hub-tools-menu a[href='/juiz']{background:linear-gradient(110deg,#1d4ed8,#3b82f6)}
.hub-home .hub-tools-menu a[href='/lorcana-juiz']{background:linear-gradient(110deg,#7e22ce,#ec4899)}
.hub-home .hub-tools-menu a[href='/pokemon-juiz']{background:linear-gradient(110deg,#b91c1c,#ef4444)}
.hub-home .hub-tools-menu .hub-tool-action::after{content:'';position:absolute;right:-15px;top:-23px;width:85px;height:100px;border:12px solid #ffffff12;border-radius:24px;transform:rotate(28deg);pointer-events:none;z-index:-1}
.hub-home .hub-tools-menu .hub-tool-action:focus-visible{outline:2px solid #ff7900;outline-offset:3px}
@media(min-width:1024px){.hub-home>section.hub-tools-menu{grid-column:2;grid-row:1;align-self:start}.hub-home>.hub-store-links{grid-row:2}}
@media(max-width:600px){.hub-home .hub-tools-menu .hub-tool-action{padding:9px 10px;min-height:64px}.hub-home .hub-tools-menu .hub-tool-action p:first-child{font-size:17px}.hub-home .hub-tools-menu .hub-tool-action p:last-child{font-size:10.5px}}

/* Descriptions expand across the result area instead of a narrow card column. */
.card-search .player-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));align-items:start;gap:20px}
.card-search .player-card{align-self:start;padding:16px;overflow-wrap:break-word}
.card-search .player-card:has(>details[open]){grid-column:1/-1;display:grid;grid-template-columns:160px minmax(0,1fr);column-gap:24px;align-items:start}
.card-search .player-card:has(>details[open])>.card-search-image{grid-column:1;grid-row:1/4}
.card-search .player-card:has(>details[open])>:is(strong,small,details){grid-column:2}
.card-search .player-card>strong{font-size:17px;line-height:1.4}
.card-search .player-card>small{font-size:13px;line-height:1.6}
.card-search .player-card details{min-width:0}
.card-search .player-card summary{font-size:15px;line-height:1.5;padding:8px 0}
.card-search .player-card details p,.hub-builder-effects p,.lc-card details p{font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;max-width:85ch;margin:12px 0}
.hub-builder-result{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto;align-items:start;gap:12px!important;min-width:0}
.hub-builder-result>div:nth-child(2){cursor:default}
.hub-builder-result>div:nth-child(2)>div:nth-child(2){font-size:12px;line-height:1.6}
.hub-builder-result>div:nth-child(2)>div:first-child>p{font-size:15px;line-height:1.4;white-space:normal;overflow:visible}
.hub-builder-result.is-grid{grid-template-columns:minmax(0,1fr)}
.hub-builder-result.is-grid>div:first-child img{max-height:260px;object-fit:contain}
.hub-builder-effects{grid-column:1/-1;width:100%;min-width:0;border-top:1px solid hsl(var(--border));padding-top:8px}
.hub-builder-effects summary{font-size:14px;font-weight:600;line-height:1.5;cursor:pointer;padding:6px 0}
.hub-builder-effects h4{font-size:13px;font-weight:700;margin-top:14px}
.hub-builder-results:has(.hub-builder-effects[open])>.hub-builder-result:has(.hub-builder-effects[open]){grid-column:1/-1}
.lc-results .lc-card:has(details[open]){grid-column:1/-1;display:grid!important;grid-template-columns:64px minmax(0,1fr) auto;align-items:start}
.lc-card:has(details[open]) .lc-card-info{display:contents}
.lc-card:has(details[open]) .lc-card-info>:not(details){grid-column:2}
.lc-card:has(details[open]) .lc-image{grid-column:1;grid-row:1/6}
.lc-card:has(details[open]) .lc-qty{grid-column:3;grid-row:1/6}
.lc-card:has(details[open]) details{grid-column:1/-1;min-width:0}
.lc-card details summary{font-size:14px;line-height:1.5;padding:8px 0}
@media(max-width:600px){
 .card-search .player-card-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .card-search .player-card:has(>details[open]){grid-template-columns:80px minmax(0,1fr);column-gap:14px}
 .card-search .player-card:has(>details[open])>.card-search-image{grid-row:1/3}
 .card-search .player-card:has(>details[open])>details{grid-column:1/-1}
 .card-search .player-card img{height:180px}
 .card-search .player-card:has(>details[open]) img{height:auto;margin-bottom:0}
 .hub-builder-result{grid-template-columns:48px minmax(0,1fr) auto;gap:10px!important}
 .hub-builder-result>div:first-child img{max-width:48px}
 .hub-builder-result.is-grid>div:first-child img{max-width:100%}
 .hub-builder-result>div:nth-child(3)>span{font-size:11px;line-height:1.5}
}

/* Shared framed list and image-only grid, scoped to search results. */
.card-search .player-card-grid.hub-view-list{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.card-search .hub-view-list>.player-card,.card-search .hub-view-list>.player-card:has(>details[open]){display:grid;grid-template-columns:110px minmax(0,1fr);gap:4px 16px;padding:12px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));width:100%;box-sizing:border-box}
.card-search .hub-view-list>.player-card>.card-search-image,.card-search .hub-view-list>.player-card:has(>details[open])>.card-search-image{grid-column:1;grid-row:1/5;align-self:start}
.card-search .hub-view-list>.player-card>:is(strong,small,details){grid-column:2;margin:0}
.card-search .hub-view-list>.player-card img{width:100%;height:auto;margin:0;object-fit:contain;display:block}
.card-search .hub-view-list>.player-card summary{padding:6px 0;font-size:13px}
.card-search .hub-view-list>.player-card details p{margin:6px 0;font-size:14px;line-height:1.6;max-width:none}
.card-search .player-card-grid.hub-view-grid,.hub-builder-results.hub-view-grid,.hub-card-views:is(.lc-grid,.pk-grid){display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px;align-items:start}
.card-search .hub-view-grid>.player-card,.card-search .hub-view-grid>.player-card:has(>details[open]){display:block;grid-column:auto;padding:5px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card))}
.card-search .hub-view-grid>.player-card>:not(.card-search-image){display:none!important}
.card-search .hub-view-grid>.player-card img{display:block;width:100%;height:auto;margin:0;object-fit:contain}
.hub-builder-results.hub-view-list .hub-builder-result{grid-template-columns:90px minmax(0,1fr) auto;gap:6px 12px!important;padding:10px!important;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px}
.hub-builder-results.hub-view-list .hub-builder-result>div:first-child{grid-column:1;grid-row:1/3}
.hub-builder-results.hub-view-list .hub-builder-result>div:first-child img{width:90px;height:auto;max-width:100%;object-fit:contain}
.hub-builder-results.hub-view-list .hub-builder-effects{grid-column:2/4;padding-top:4px;margin:0}
.hub-builder-effects p{font-size:14px;line-height:1.6;margin:6px 0;max-width:none}
.hub-builder-effects h4{margin:8px 0 2px}
.hub-builder-results.hub-view-grid .hub-builder-result{display:block!important;position:relative;padding:5px!important;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));grid-column:auto!important}
.hub-builder-results.hub-view-grid .hub-builder-result>div:first-child img{display:block;width:100%;height:auto;max-height:none;max-width:100%;object-fit:contain}
.hub-builder-results.hub-view-grid .hub-builder-result>:is(div:nth-child(2),details){display:none!important}
.hub-builder-results.hub-view-grid .hub-builder-result>div:nth-child(3){position:absolute;right:7px;bottom:7px;padding:4px;border-radius:8px;background:hsl(var(--card)/.96);box-shadow:0 1px 6px #0004}
.hub-builder-results.hub-view-grid .hub-builder-result>div:nth-child(3)>span{display:none}
.hub-card-views.lc-list .lc-card,.hub-card-views.lc-list .lc-card:has(details[open]){display:grid!important;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;padding:10px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));align-items:start}
.hub-card-views.lc-list .lc-card .lc-card-info{display:block!important;grid-column:2;min-width:0}
.hub-card-views.lc-list .lc-card .lc-image{grid-column:1;grid-row:auto;width:90px}
.hub-card-views.lc-list .lc-card .lc-image img{width:100%;height:auto;max-height:none;margin:0}
.hub-card-views.lc-list .lc-card .lc-qty{grid-column:3;grid-row:auto}
.hub-card-views.lc-list .lc-card details p{font-size:14px;line-height:1.6;margin:6px 0;max-width:none}
.hub-card-views.lc-grid .lc-card,.hub-card-views.pk-grid .pk-result{display:block!important;position:relative;padding:5px;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));margin:0}
.hub-card-views.lc-grid .lc-card-info,.hub-card-views.pk-grid .pk-info{display:none!important}
.hub-card-views:is(.lc-grid,.pk-grid) :is(.lc-image,.pk-image){display:block;width:100%;padding:0;border:0;background:none}
.hub-card-views:is(.lc-grid,.pk-grid) :is(.lc-image,.pk-image) img{display:block;width:100%;height:auto;max-height:none;margin:0;object-fit:contain}
.hub-card-views:is(.lc-grid,.pk-grid) :is(.lc-qty,.pk-qty){position:absolute;right:7px;bottom:7px;background:hsl(var(--card)/.96);border-radius:8px;padding:4px}
.hub-card-views:is(.lc-grid,.pk-grid) :is(.lc-deck-count,.pk-qty>small){display:none}
.hub-card-views.pk-list .pk-result{grid-template-columns:90px minmax(0,1fr) auto;gap:12px;padding:10px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card))}
.hub-card-views.pk-list .pk-image{width:90px}
.hub-card-views.pk-list .pk-image img{width:100%;height:auto;margin:0}
.hub-pokemon-effect{font-size:14px;line-height:1.6;white-space:pre-wrap}
.hub-card-details-link{font-size:13px!important;padding:6px 0!important;border:0!important;background:none!important;text-align:left;text-decoration:underline}
@media(max-width:600px){
 .card-search .hub-view-list>.player-card,.card-search .hub-view-list>.player-card:has(>details[open]){grid-template-columns:72px minmax(0,1fr);gap:4px 10px;padding:10px}
 .card-search .hub-view-list>.player-card:has(>details[open])>details{grid-column:2}
 .card-search .player-card-grid.hub-view-grid,.hub-builder-results.hub-view-grid,.hub-card-views:is(.lc-grid,.pk-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .hub-builder-results.hub-view-list .hub-builder-result{grid-template-columns:64px minmax(0,1fr) auto;gap:6px 8px!important}
 .hub-builder-results.hub-view-list .hub-builder-result>div:first-child img{width:64px;max-width:100%}
 .hub-builder-results.hub-view-list .hub-builder-effects{grid-column:2/4}
 .hub-card-views.lc-list .lc-card,.hub-card-views.lc-list .lc-card:has(details[open]),.hub-card-views.pk-list .pk-result{grid-template-columns:64px minmax(0,1fr);gap:8px}
 .hub-card-views.lc-list .lc-card .lc-image,.hub-card-views.pk-list .pk-image{width:64px}
 .hub-card-views.lc-list .lc-card .lc-qty,.hub-card-views.pk-list .pk-qty{grid-column:2;position:static}
}

/* Visible card frames in both themes; snug image proportions instead of empty tall boxes. */
.card-search .player-card-grid>.player-card,
.hub-builder-results>.hub-builder-result,
.hub-card-views>.lc-card,
.hub-card-views>.pk-result{
 border:2px solid #b96625!important;
 border-radius:12px!important;
 background:hsl(var(--card))!important;
 box-shadow:0 2px 5px #0002;
 box-sizing:border-box;
 overflow:hidden;
}
.card-search .hub-view-grid>.player-card,
.hub-builder-results.hub-view-grid>.hub-builder-result,
.hub-card-views.lc-grid>.lc-card,
.hub-card-views.pk-grid>.pk-result{padding:4px!important}
.card-search .player-card-grid .card-search-image{border-radius:7px;overflow:hidden;min-height:0!important}
.card-search .player-card-grid .card-search-image img{width:100%;height:auto!important;aspect-ratio:63/88;object-fit:contain;margin:0!important;border-radius:6px}
.card-search .hub-view-list>.player-card>details,
.hub-builder-results.hub-view-list .hub-builder-effects,
.hub-card-views.lc-list .lc-card details{
 border:1px solid #b9662566!important;
 border-radius:8px;
 padding:8px 10px!important;
 background:#b966250a;
}
.card-search .hub-view-list>.player-card>details summary{padding:0;font-weight:600}
@media(max-width:600px){
 .card-search .hub-view-list>.player-card>details,
 .hub-builder-results.hub-view-list .hub-builder-effects,
 .hub-card-views.lc-list .lc-card details{padding:6px 8px!important}
}

/* Shared interaction primitives; game modules below provide only theme tokens/decorations. */
.hub-catalog{--hub-game-rgb:54,141,239;--hub-game-secondary:90,205,255;min-width:0;box-sizing:border-box}
.hub-catalog .hub-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;align-items:end}
.hub-catalog .hub-filter-field,.hub-catalog form label:not(.lc-check):not(.player-check){min-width:0}
.hub-catalog .hub-filter-field{display:flex;flex-direction:column;gap:7px;margin:0;font-size:14px;font-weight:500;line-height:1.5}
.hub-catalog form :is(input:not([type=checkbox]):not([type=radio]),select,button[role=combobox]),.hub-catalog-toolbar select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;font:inherit;font-size:14px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--background));color:hsl(var(--foreground))}
.hub-catalog input[type=checkbox]{accent-color:#ff7900;flex-shrink:0;width:18px;height:18px}
.hub-catalog :is(.hub-advanced,.lc-advanced,.card-search-advanced){border:1px solid hsl(var(--border));border-radius:12px;padding:12px;margin:12px 0;background:hsl(var(--muted)/.15)}
.hub-catalog :is(.hub-advanced,.lc-advanced,.card-search-advanced)>summary{font-size:14px;font-weight:600;line-height:1.5;cursor:pointer;min-height:24px}
.hub-catalog .hub-advanced[open]>.hub-filter-grid{margin-top:14px}
.hub-catalog :is(.lc-multi){border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--background));min-width:0}
.hub-catalog .lc-multi>summary{font-size:14px;font-weight:500;min-height:44px;padding:10px 12px;box-sizing:border-box}
.hub-catalog .lc-two{gap:12px}.hub-catalog .lc-field{font-size:14px;gap:7px}
.hub-catalog .lc-search-row input{flex:1}
.hub-search-actions,.hub-catalog .card-search-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px}
.hub-catalog .hub-search-actions>button,.hub-catalog .card-search-actions>button,.hub-catalog .hub-load-more,.hub-catalog .lc-more{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:10px 16px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer}
.hub-catalog .hub-search-submit,.hub-catalog .card-search-actions button[type=submit],.hub-catalog form button[type=submit]{background:#ff7900!important;border:1px solid #ff7900!important;color:#17110a!important;font-size:14px;font-weight:700;min-height:44px;padding:10px 16px;border-radius:12px}
.hub-catalog button:disabled{opacity:.45;cursor:not-allowed}
.hub-catalog :is(button,input,select,summary):focus-visible{outline:3px solid #ff8b32;outline-offset:3px}
.hub-catalog-toolbar,.hub-catalog .lc-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0 12px}
.hub-catalog-toolbar>.hub-filter-field{flex:1;min-width:160px;max-width:320px}
.hub-catalog .hub-result-views{display:flex;flex-direction:row;gap:6px;margin:0;align-items:center}
.hub-catalog .hub-result-views button{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:9px 16px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));color:hsl(var(--foreground))}
.hub-catalog .hub-result-views button[aria-pressed=true]{background:#ff7900;border-color:#ff7900;color:#17110a}
.hub-catalog :is(.lc-qty,.pk-qty)>div{display:flex;gap:6px}
.hub-catalog :is(.lc-qty,.pk-qty) button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid hsl(var(--border));border-radius:9px;font-size:18px;font-weight:700;background:hsl(var(--card));color:hsl(var(--foreground))}
.hub-catalog :is(.lc-qty,.pk-qty) button:last-child{background:#ff79001a;color:#e96b00;border-color:#ff79004d}
.hub-catalog :is(.lc-deck-count,.pk-qty>small){font-size:11px;line-height:1.5;margin:0 0 5px}
.hub-catalog .hub-filter-status{font-size:13px;line-height:1.5;color:hsl(var(--muted-foreground))}
.hub-catalog[data-game] :is(.player-card-grid>.player-card,.hub-builder-results>.hub-builder-result,.hub-card-views>.lc-card,.hub-card-views>.pk-result){border:2px solid rgb(var(--hub-game-rgb))!important;border-radius:12px!important;background:hsl(var(--card))!important;box-shadow:inset 0 3px 0 rgba(var(--hub-game-secondary),.65),0 2px 6px #0002;position:relative;overflow:hidden}
.hub-catalog[data-game] :is(.hub-view-list>.player-card>details,.hub-builder-results.hub-view-list .hub-builder-effects,.lc-list .lc-card details){border:1px solid rgba(var(--hub-game-rgb),.4)!important;background:rgba(var(--hub-game-rgb),.045);border-radius:8px}
.hub-card-overlay{position:fixed;inset:0;background:#000a;padding:24px;z-index:10000;overflow:auto;display:grid;place-items:center}
.hub-card-dialog{position:relative;display:grid;grid-template-columns:minmax(170px,300px) minmax(0,1fr);gap:24px;max-width:960px;width:100%;padding:24px;border:2px solid rgb(var(--hub-game-rgb));border-radius:18px;background:hsl(var(--card));color:hsl(var(--foreground));box-sizing:border-box;max-height:calc(100dvh - 48px);overflow:auto}
.hub-card-dialog>img{width:100%;height:auto;border-radius:10px}.hub-card-dialog h2{font-size:22px;line-height:1.4;padding-right:30px}.hub-card-dialog p{font-size:15px;line-height:1.7}
.hub-card-dialog .hub-dialog-close{position:absolute;right:10px;top:10px;width:36px;height:36px;border:1px solid hsl(var(--border));border-radius:50%;background:hsl(var(--card));font-size:24px}
@media(max-width:600px){.hub-catalog .hub-filter-grid{grid-template-columns:minmax(0,1fr);gap:10px}.hub-search-actions>button{flex:1}.hub-catalog-toolbar>.hub-filter-field{max-width:none}.hub-catalog .hub-result-views{width:100%}.hub-catalog .hub-result-views>button{flex:1}.hub-card-overlay{padding:12px}.hub-card-dialog{display:block;padding:18px;max-height:calc(100dvh - 24px)}.hub-card-dialog>img{display:block;width:min(70%,240px);margin:0 auto 16px}}
.hub-catalog[data-game] :is(.hub-pokemon-deck-row,.lc-deck-cards>article){border:2px solid rgb(var(--hub-game-rgb))!important;border-radius:12px;background:hsl(var(--card));box-shadow:inset 0 3px 0 rgba(var(--hub-game-secondary),.6);padding:10px;min-width:0;position:relative;box-sizing:border-box}
.hub-pokemon-deck-cards{display:grid;gap:10px;margin:12px 0}
.hub-pokemon-deck-cards.hub-deck-list{grid-template-columns:minmax(0,1fr)}
.hub-pokemon-deck-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:start}
.hub-pokemon-deck-row .pk-image{border:0;padding:0;background:none;width:64px;min-height:0}
.hub-pokemon-deck-row img{width:100%;height:auto;display:block}
.hub-pokemon-deck-row .hub-deck-info{min-width:0}.hub-pokemon-deck-row .hub-deck-info strong{display:block;line-height:1.4;font-size:15px}
.hub-pokemon-deck-row .hub-deck-info small{font-size:12px;line-height:1.5}
.hub-pokemon-deck-row details p{white-space:pre-wrap;font-size:14px;line-height:1.6}
.hub-pokemon-deck-row details summary{font-size:13px;cursor:pointer;margin-top:8px}
.hub-pokemon-deck-cards.hub-deck-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))}
.hub-deck-grid>.hub-pokemon-deck-row,.hub-catalog .lc-deck-grid>article{display:block;padding:4px!important}
.hub-deck-grid .hub-deck-info,.hub-catalog .lc-deck-grid>article>div:not(.lc-qty){display:none}
.hub-deck-grid .pk-image,.hub-catalog .lc-deck-grid .lc-image{width:100%;display:block}
.hub-catalog .lc-deck-grid .lc-image img{width:100%;height:auto;max-height:none}
.hub-deck-grid .pk-qty,.hub-catalog .lc-deck-grid .lc-qty{position:absolute;bottom:8px;right:8px;background:hsl(var(--card)/.96);padding:4px;border-radius:8px}
@media(max-width:600px){.hub-pokemon-deck-cards.hub-deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-pokemon-deck-row{grid-template-columns:48px minmax(0,1fr) auto;gap:8px}.hub-pokemon-deck-row .pk-image{width:48px}.hub-deck-grid .pk-image{width:100%}}

/* Digimon: blue digital frame, cyan edge and angular corner. */
.hub-catalog[data-game=digimon]{--hub-game-rgb:45,130,224;--hub-game-secondary:66,211,239}
.hub-catalog[data-game=digimon] :is(.player-card-grid>.player-card,.hub-builder-results>.hub-builder-result){border-radius:3px 14px 3px 14px!important;border-left-width:4px!important;box-shadow:inset 0 3px 0 #42d3ef80,0 2px 6px #0002}

/* Pokémon: red outline and yellow inset, rounded collectible-card frame. */
.hub-catalog[data-game=pokemon]{--hub-game-rgb:212,60,53;--hub-game-secondary:248,197,49}
.hub-catalog[data-game=pokemon] .pk-result{border-radius:14px!important;box-shadow:inset 0 0 0 2px #f8c53170,0 2px 6px #0002!important}
.hub-catalog[data-game=pokemon] .pk-info .pk-name{font-size:15px;line-height:1.4}
.hub-catalog[data-game=pokemon] .pk-info small{font-size:12px;line-height:1.5}

/* Lorcana: amethyst outline, golden ink detail and softly rounded corners. */
.hub-catalog[data-game=lorcana]{--hub-game-rgb:151,85,201;--hub-game-secondary:212,174,84}
.hub-catalog[data-game=lorcana] :is(.player-card-grid>.player-card,.lc-results>.lc-card){border-radius:16px 5px 16px 5px!important;box-shadow:inset 0 3px 0 #d4ae5480,inset 0 -1px 0 #d4ae5460,0 2px 6px #0002!important}

.hub-choice-filter{position:relative;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--background));min-width:0}
.hub-choice-filter>summary{padding:11px 12px;font-size:14px;line-height:1.5;cursor:pointer;min-height:44px;box-sizing:border-box;overflow-wrap:anywhere}
.hub-choice-options{max-height:270px;overflow:auto;padding:8px;border-top:1px solid hsl(var(--border));display:flex;flex-direction:column;gap:4px}
.hub-choice-options>button{display:flex;gap:8px;align-items:center;text-align:left;width:100%;font-size:14px;min-height:40px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:inherit}
.hub-choice-options>button[aria-checked=true]{background:#ff79001a;color:#de6700;font-weight:600}
.hub-latest-set{padding:10px 12px;border:1px solid rgba(var(--hub-game-rgb),.5);border-radius:10px;font-size:13px!important;line-height:1.5!important;background:rgba(var(--hub-game-rgb),.06);margin:12px 0!important}
.hub-active-filters{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.hub-active-filters>button{font-size:12px;padding:5px 10px;border:1px solid #ff79004d;border-radius:99px;background:#ff79001a;color:inherit;min-height:32px}

/* Desktop only: four tool actions, then three rule links. Mobile retains its original grid. */
@media (min-width:1024px){
 .hub-home{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:24px;align-items:start}
 .hub-home>.hub-daily-wrap{grid-column:1;grid-row:1;min-width:0}
 .hub-home>section.hub-tools-menu{grid-column:1;grid-row:2;min-width:0;margin:0}
 .hub-home>.hub-store-links{grid-column:1 / -1;grid-row:3}
 .hub-home .hub-tools-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}
 .hub-home .hub-tools-grid>button.hub-tool-action{grid-column:span 3}
 .hub-home .hub-tools-grid>a.hub-tool-action{grid-column:span 4}
 .hub-home .hub-tools-menu .hub-tool-action{min-height:88px;padding:12px 14px;height:100%;box-sizing:border-box}
 .hub-home .hub-tools-menu .hub-tool-action p:first-child{font-size:clamp(16px,1.35vw,21px);line-height:1.2;overflow-wrap:normal}
 .hub-home .hub-tools-menu .hub-tool-action p:last-child{font-size:11px;line-height:1.45}
}
@media (min-width:1280px){
 .hub-home{grid-template-columns:minmax(280px,.85fr) minmax(0,1.65fr);grid-template-rows:auto auto;gap:24px}
 .hub-home>section.hub-tools-menu{grid-column:2;grid-row:1}
 .hub-home>.hub-store-links{grid-row:2}
}
