:root{color:#eef3f7;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#101316;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#101316}body{min-width:320px;margin:0}button,input,select,textarea{font:inherit}#root{min-height:100vh}h1,h2,h3,p{margin:0}.app-shell{color:#eef3f7;background:radial-gradient(circle at 0 0,#2f6f8f38,#0000 34rem),linear-gradient(#11161a 0%,#101316 46%,#0d1012 100%);height:100dvh;min-height:100vh;overflow:hidden}.app-shell main{height:calc(100dvh - 63px);overflow:hidden}.app-shell.route-decks,.app-shell.route-decks main{height:auto;overflow:visible}.app-nav{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:50;background:#101316d1;border-bottom:1px solid #758b9a2e;align-items:center;gap:16px;padding:14px clamp(16px,4vw,40px);display:flex;position:sticky;top:0}.nav-tabs{flex-wrap:wrap;gap:4px;margin:0 auto;display:flex}.brand-button{color:#f5f7fa;text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:0;display:inline-flex}.brand-button:hover{background:0 0}.brand-logo{object-fit:contain;width:34px;height:34px;display:block}.brand-copy{flex-direction:column;gap:1px;line-height:1;display:flex}.brand-copy strong{font-size:14px}.home-hero-copy h1 span{color:#f7c948}.brand-copy small{color:#95a7b3;font-size:11px}.nav-tabs button{color:#aebbc4;background:0 0;border:0;border-radius:4px;padding:9px 16px;font-size:14px}.nav-tabs button:hover,.nav-tabs button.active{color:#f5f7fa;background:#ffffff14}button{cursor:pointer;color:#101316;background:#e8eef2;border:1px solid #0000;border-radius:4px;padding:9px 14px;font-weight:700;line-height:1.1;transition:background .16s,border-color .16s,color .16s,opacity .16s}button:hover{background:#fff}button:disabled{color:#83929d;cursor:not-allowed;background:#364047}input,select,textarea{color:#eef3f7;background:#0f1417;border:1px solid #758b9a47;border-radius:4px;padding:10px 11px}input:focus,select:focus,textarea:focus{border-color:#7ab8d0;outline:2px solid #7ab8d029}code{color:#d7dee5;background:#0f1417;border:1px solid #758b9a3d;border-radius:4px;padding:5px 7px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;display:inline-flex}label{color:#c7d2da;font-size:13px;font-weight:700}.secondary-button{color:#e8eef2;background:#1e282e;border-color:#758b9a42}.secondary-button:hover{color:#fff;background:#27343b}.container{padding:20px}.home-page,.tool-page{box-sizing:border-box;width:min(1180px,100%);height:100%;margin:0 auto;padding:clamp(14px,2.8vh,28px) clamp(16px,4vw,40px);overflow:hidden}.route-decks .tool-page{height:auto;overflow:visible}.home-hero-copy{z-index:1;align-self:center;position:relative}.home-hero-copy h1,.tool-header h1{color:#f5f7fa;letter-spacing:0;margin:8px 0 16px;font-size:clamp(32px,5.4vw,64px);line-height:.95}.home-hero-copy h1{white-space:nowrap}.home-hero-copy h1 .arena-red{color:#d63b3b}.home-hero-copy p,.tool-header p,.placeholder-panel p,.feature-band p{color:#a9b7c0;max-width:640px;line-height:1.58}.home-hero-copy p{max-width:520px;font-size:18px}.eyebrow,.feature-kicker{color:#d89a36;letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:800}.home-actions{flex-wrap:wrap;gap:10px;margin-top:22px;display:flex}.hero-art{justify-content:center;align-items:center;min-height:470px;display:flex;position:relative;overflow:visible}.hero-art:before{content:"";aspect-ratio:1;filter:blur(8px);background:radial-gradient(circle,#d89a362e,#0000 60%),radial-gradient(circle,#2f6f8f3d,#0000 68%);border-radius:999px;width:min(460px,82vw);position:absolute}.hero-art img{filter:drop-shadow(0 26px 38px #0000006b);width:min(590px,56vw);max-width:100%;height:auto;position:relative;transform:translateY(8px)}.community-card{background:#171d21c7;border:1px solid #758b9a2e;border-radius:6px;grid-template-rows:1fr 1fr;gap:12px;min-height:154px;padding:28px;display:grid;box-shadow:0 18px 46px #0000002e}.community-button{color:#eef3f7;box-shadow:none;background:0 0;border:0;border-radius:4px;flex-direction:column;grid-template-rows:auto auto;grid-template-columns:44px minmax(0,1fr);align-items:center;column-gap:12px;padding:8px 0;text-decoration:none;display:grid}.community-button:before{color:#fff;border-radius:8px;grid-row:1/span 2;justify-content:center;align-items:center;width:44px;height:44px;font-weight:900;display:inline-flex}.patreon-button:before{content:"P";background:#ff424d}.discord-button:before{content:"D";background:#5865f2}.community-button:hover{color:#fff;background:0 0}.community-button span{color:#d89a36;letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800}.community-button strong{font-size:16px}.discord-button{border-color:#7ab8d057}.discord-button span{color:#7ab8d0}.feature-band{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;display:grid}.feature-band article,.placeholder-panel,.setup-panel{background:#171d21c7;border:1px solid #758b9a2e;border-radius:6px;padding:28px;box-shadow:0 18px 46px #0000002e}.feature-band article{min-height:154px}.feature-band h2,.placeholder-panel h2,.setup-panel h2{color:#f5f7fa;margin:0 0 7px;font-size:18px}.account-panel,.deck-import-panel,.setup-panel{flex-direction:column;gap:12px;max-width:60%;margin:0 auto;display:flex}.route-account .tool-page,.waiting-page{flex-direction:column;display:flex}.route-account .account-panel{width:min(460px,100%);max-width:none;margin:40px auto auto}.account-settings{background:#171d21c7;border:1px solid #758b9a2e;border-radius:6px;flex-direction:column;gap:18px;width:min(760px,100%);margin:28px auto auto;padding:22px;display:flex}.profile-summary{align-items:center;gap:14px;display:flex}.profile-summary h2,.profile-summary p{margin:0}.profile-summary p{color:#a9b7c0}.image-avatar{object-fit:cover}.account-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.account-form-grid label{flex-direction:column;gap:7px;display:flex}.account-actions{justify-content:flex-end;gap:10px;display:flex}.nav-user-menu{position:relative}.nav-gear-button{color:#aebbc4;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:inline-flex}.nav-gear-button:hover{color:#f5f7fa;background:#ffffff14}.nav-user-dropdown{z-index:60;background:#101418f5;border:1px solid #758b9a38;border-radius:6px;flex-direction:column;gap:2px;min-width:160px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 32px #0000006b}.nav-user-dropdown button{text-align:left;color:#c7d2da;background:0 0;border:0;border-radius:4px;width:100%;padding:8px 12px;font-size:13px;font-weight:600}.nav-user-dropdown button:hover{color:#e8eef2;background:#758b9a24}.home-hero{grid-template-columns:minmax(320px,.78fr) minmax(360px,.82fr);align-items:start;gap:clamp(18px,4vw,48px);min-height:0;padding-top:clamp(20px,3.6vh,40px);display:grid}.profile-page{max-width:720px;margin:0 auto;padding-top:8px}.profile-hero{background:#171d21c7;border:1px solid #758b9a29;border-radius:8px;justify-content:space-between;align-items:center;gap:24px;margin-bottom:16px;padding:28px;display:flex}.profile-hero-left{align-items:center;gap:20px;display:flex}.profile-avatar-wrap{flex-shrink:0;position:relative}.profile-avatar-large{color:#f7c948;background:#f7c9481f;border:2px solid #f7c94859;border-radius:50%;justify-content:center;align-items:center;width:88px;height:88px;font-size:32px;font-weight:800;display:flex;overflow:hidden}.profile-avatar-large.image-avatar{object-fit:cover;border-radius:50%}.profile-tier-badge{background:#11181c;border:2px solid;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:13px;font-weight:800;display:flex;position:absolute;bottom:-4px;right:-4px}.profile-hero-info{flex-direction:column;gap:3px;display:flex}.profile-title{text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:700}.profile-name{color:#f5f7fa;font-size:26px;font-weight:800;line-height:1.2}.profile-since{color:#6d7f8a;margin-top:2px;font-size:12px}.profile-hero-right{flex-shrink:0}.profile-winrate-ring{width:110px;height:110px;position:relative}.profile-winrate-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.profile-winrate-text{pointer-events:none;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.profile-winrate-percent{color:#f5f7fa;font-size:22px;font-weight:800;line-height:1}.profile-winrate-label{color:#6d7f8a;text-transform:uppercase;letter-spacing:.06em;margin-top:2px;font-size:10px}.profile-stat-row{grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px;display:grid}.profile-stat-tile{background:#171d21a6;border:1px solid #758b9a24;border-radius:6px;flex-direction:column;align-items:center;gap:6px;padding:18px 12px;display:flex}.profile-stat-tile-value{color:#f5f7fa;font-size:28px;font-weight:800;line-height:1}.profile-stat-tile-label{color:#6d7f8a;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:600}.profile-mode-section{background:#171d21a6;border:1px solid #758b9a24;border-radius:6px;padding:20px}.profile-mode-section h3{color:#8fa0ab;text-transform:uppercase;letter-spacing:.06em;margin:0 0 16px;font-size:13px;font-weight:700}.profile-mode-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;display:grid}.profile-mode-card{background:#0f14188c;border:1px solid #758b9a1f;border-radius:5px;flex-direction:column;gap:10px;padding:16px;display:flex}.profile-mode-header{justify-content:space-between;align-items:center;display:flex}.profile-mode-name{color:#f5f7fa;font-size:14px;font-weight:700}.profile-mode-rate{font-size:18px;font-weight:800}.profile-mode-bar-bg{background:#758b9a1f;border-radius:3px;height:6px;overflow:hidden}.profile-mode-bar-fill{border-radius:3px;height:100%;transition:width .6s cubic-bezier(.4,0,.2,1)}.profile-mode-footer{color:#6d7f8a;justify-content:space-between;font-size:12px;display:flex}.profile-empty-state{text-align:center;color:#6d7f8a;padding:32px 20px;font-size:14px}.profile-empty-state p{margin:4px 0}.profile-guest{text-align:center;flex-direction:column;align-items:center;gap:14px;padding:48px 20px;display:flex}.profile-guest h2{color:#f5f7fa;margin:0;font-size:22px}.profile-guest p{color:#6d7f8a;margin:0;font-size:14px}.profile-loading{flex-direction:column;align-items:center;gap:16px;padding:48px 20px;display:flex}.profile-avatar-skeleton{background:#758b9a1f;border-radius:50%;width:88px;height:88px;animation:1.5s ease-in-out infinite pulse}.profile-name-skeleton{background:#758b9a1f;border-radius:4px;width:160px;height:20px;animation:1.5s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1}50%{opacity:.4}}@media (width<=560px){.profile-hero{flex-direction:column;align-items:flex-start;gap:20px}.profile-hero-right{align-self:center}.profile-stat-row,.profile-mode-grid{grid-template-columns:1fr}}.waiting-page .waiting-card{width:min(900px,100%);max-width:none;margin:auto}.route-account .tool-header h1{font-size:clamp(30px,4vw,48px)}.route-account .tool-header{margin-bottom:10px}.account-panel label,.deck-import-panel label,.setup-panel label{flex-direction:column;gap:7px;display:flex}.deck-import-panel textarea{resize:vertical;min-height:260px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}.deck-template-row{flex-wrap:wrap;gap:8px;display:flex}.deck-template-row button{flex:180px}.segmented-control{background:#10161a;border:1px solid #758b9a33;border-radius:6px;gap:6px;padding:4px;display:flex}.segmented-control button{color:#a9b7c0;background:0 0;flex:1}.segmented-control button.active{color:#101316;background:#e8eef2}.deck-workspace,.play-workspace{grid-template-columns:minmax(300px,460px) minmax(0,1fr);align-items:start;gap:16px;display:grid}.rooms-page-layout{flex-direction:column;align-items:stretch;gap:16px;height:calc(100% - 124px);display:flex;overflow:hidden}.rooms-list-panel,.quick-join-panel{background:#171d21c7;border:1px solid #758b9a2e;border-radius:6px;min-height:0;padding:18px}.rooms-list-panel{flex-direction:column;display:flex}.rooms-list-header{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.rooms-list-header h2,.rooms-list-header span{margin:0}.room-search{margin-bottom:8px}.room-filters{gap:8px;margin-bottom:12px;display:flex}.room-filters select{flex:1}.rooms-list-header span{color:#9aa8b2;font-size:12px}.rooms-list{flex-direction:column;gap:10px;display:flex;overflow:auto}.rooms-column-header{color:#8fa0ab;letter-spacing:.06em;text-transform:uppercase;grid-template-columns:24px minmax(160px,1.4fr) 120px 90px 90px;gap:12px;padding:0 12px 8px;font-size:11px;font-weight:800;display:grid}.room-row{text-align:left;color:#d7dee5;background:#10161a;border-color:#758b9a38;grid-template-columns:24px minmax(160px,1.4fr) 120px 90px 90px;align-items:center;gap:12px;width:100%;min-height:56px;padding:14px 12px;display:grid}.room-row:hover:not(:disabled){background:#142027;border-color:#f7c94875}.room-name-cell{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.room-leader-tag{color:#fff3f3;white-space:nowrap;background:#7f1d1dcc;border:1px solid #f87171b8;border-radius:4px;align-items:center;padding:3px 6px;font-size:10px;font-weight:800;line-height:1;display:inline-flex}.room-lock{border:2px solid #0000;border-radius:3px;width:14px;height:12px;display:inline-block;position:relative}.room-lock.locked{border-color:#f7c948}.room-lock.locked:before{content:"";border:2px solid #f7c948;border-bottom:0;border-radius:8px 8px 0 0;width:6px;height:8px;position:absolute;top:-9px;left:2px}.rooms-empty{color:#8fa0ab;text-align:center;border:1px dashed #758b9a47;border-radius:6px;padding:24px}.quick-join-panel{flex-direction:column;gap:12px;display:flex}.create-game-modal{width:min(520px,100vw - 32px);max-width:none;margin:0}.deck-builder-page{flex-direction:column;width:min(1480px,100%);height:calc(100vh - 88px);display:flex;overflow:hidden}.deck-builder-layout{grid-template:"search builder""search saved"/minmax(420px,.82fr) minmax(600px,1fr);align-items:start;gap:12px;min-height:0;display:grid;overflow:visible}.card-search-panel{grid-area:search;overflow:visible}.deck-import-panel{grid-area:auto}.deck-import-modal{width:min(640px,100vw - 32px);max-width:none;margin:0;padding:22px}.deck-saved-modal{width:min(680px,100vw - 32px);max-width:none;max-height:min(720px,100vh - 48px);margin:0;padding:22px;overflow:auto}.card-search-panel,.deck-builder-main{flex-direction:column;min-width:0;min-height:0;display:flex}.deck-builder-main{height:auto;overflow:visible}.deck-search-row{grid-template-columns:minmax(0,1fr) 96px;gap:6px;margin-bottom:8px;display:grid}.deck-search-input{background:#10161a;border:1px solid #658aa640;border-radius:5px;grid-template-columns:minmax(0,1fr) 32px;align-items:center;display:grid}.deck-search-input input{background:0 0;border:0}.deck-search-input span{color:#f4f7fa;text-align:center;font-size:24px;line-height:1}.card-filter-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:14px;display:grid}.card-filter-grid label:first-child,.card-filter-grid label:nth-child(2){grid-column:span 3}.card-filter-grid label:nth-child(3),.card-filter-grid label:nth-child(4){grid-column:span 2}.card-filter-grid label:nth-child(5),.card-filter-grid label:nth-child(6){grid-column:span 1}.card-filter-grid label{color:#9aa8b2;flex-direction:column;gap:4px;min-width:0;font-size:12px;display:flex}.domain-filter-toggle-control{align-self:end}.domain-filter-toggle-button{width:100%;min-height:34px;padding:7px 8px;font-size:12px}.domain-filter-toggle-button.active{color:#f7c948;background:#f7c94829;border-color:#f7c94885}.catalog-header{color:#c8d0d6;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:8px 0;font-size:14px;display:grid}.catalog-header span:last-child{color:#9aa8b2;text-overflow:ellipsis;white-space:nowrap;justify-self:end;overflow:hidden}.builder-toolbar{grid-template-columns:minmax(220px,1fr) repeat(5,minmax(110px,auto));align-items:end;gap:10px;margin-bottom:14px;display:grid}.builder-toolbar label,.card-search-controls{flex-direction:column;gap:7px;display:flex}.deck-section-tabs{background:#10161a;border:1px solid #758b9a33;border-radius:6px;gap:6px;margin-bottom:14px;padding:4px;display:flex}.deck-section-tabs button{color:#a9b7c0;background:0 0;flex:1}.deck-section-tabs button.active{color:#101316;background:#e8eef2}.deck-section-tabs span{color:#f7c948}.deck-section{background:#11181c;border:1px solid #758b9a33;border-radius:5px;margin-bottom:10px;padding:0;transition:border-color .2s;overflow:hidden}.deck-section-stack{min-height:0;padding-right:4px;overflow:visible}.deck-section-header{width:100%;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;margin:0;padding:10px 12px;display:flex}.deck-section-header h3{color:#eef3f7;margin:0;font-size:14px}.deck-section-header span{color:#8fa0ab;font-size:12px}.accordion-chevron{color:#8fa0ab;margin-left:auto;font-size:10px}.deck-section-body{grid-template-rows:1fr;transition:grid-template-rows .35s cubic-bezier(.4,0,.2,1);display:grid}.deck-section.collapsed .deck-section-body{grid-template-rows:0fr}.deck-card-strip{contain:layout paint;grid-template-columns:repeat(auto-fill,minmax(52px,64px));justify-content:start;gap:10px;min-height:100px;padding:0 12px 12px;display:grid}.deck-section:not(.compact) .deck-card-strip{min-height:230px}.deck-card-tile{background:#0f1417;border:1px solid #758b9a38;border-radius:4px;padding:0;position:relative;overflow:hidden}.deck-card-tile:hover{background:#00000059;border-color:#f7c94866}.catalog-card{background:0 0;border:0;border-radius:4px;padding:0;overflow:hidden}.catalog-card:hover{background:#0003}.deck-card-tile img{aspect-ratio:.68;object-fit:cover;width:100%;display:block}.card-catalog-grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:10px;min-height:420px;max-height:62vh;padding-right:4px;display:grid;overflow-y:auto}.catalog-card{color:#d7dee5;text-align:left;background:0 0;flex-direction:column;gap:6px;padding:0;display:flex}.catalog-card img{aspect-ratio:.68;object-fit:cover;background:#1b252a;border-radius:3px;width:100%}.catalog-card span{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:28px;font-size:11px;line-height:1.2;display:-webkit-box;overflow:hidden}.play-workspace{grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);align-items:stretch;gap:16px;height:calc(100% - 124px);overflow:hidden}.play-page{max-width:1180px}.play-page .tool-header{margin-bottom:14px}.play-page .tool-header h1{margin:4px 0 8px;font-size:clamp(34px,4.8vw,58px)}.play-page .setup-panel{max-width:none;margin:0}.play-card{min-height:0;padding:18px;overflow:hidden}.compact-heading{align-items:center}.compact-heading p{margin:0;font-size:13px}.room-options-grid{grid-template-columns:minmax(0,1fr) 92px;align-items:end;gap:10px;display:grid}.toggle-row{background:#0f1417;border:1px solid #758b9a47;border-radius:4px;align-items:center;min-height:42px;padding:0 10px;flex-direction:row!important;gap:8px!important;display:flex!important}.toggle-row input{width:auto}.game-type-control button{padding:9px 10px}.deck-list-panel{flex-direction:column;gap:12px;display:flex}.deck-list{gap:8px;display:grid}.deck-list button{text-align:left;color:#eef3f7;background:#11181c;border:1px solid #758b9a33;justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.deck-list button.active{background:#17303a;border-color:#7ab8d0b8}.deck-list small{color:#aeb7bf}.deck-detail{border-top:1px solid #758b9a2e;padding-top:12px}.deck-actions{flex-wrap:wrap;gap:8px;margin:10px 0;display:flex}.danger-button{background:#9b2c2c}.danger-button:hover{background:#7f1d1d}.validation{border:1px solid #758b9a3d;border-radius:4px;padding:10px}.validation.valid{background:#4caf501f;border-color:#4caf5073}.validation.invalid{background:#f443361f;border-color:#f4433673}.tool-header{margin-bottom:22px}.split-header{justify-content:space-between;align-items:center;gap:18px;display:flex}.panel-heading{align-items:flex-start;gap:12px;display:flex}.panel-index{color:#f1bf70;background:#d89a3629;border:1px solid #d89a3642;border-radius:4px;flex:none;justify-content:center;align-items:center;width:32px;height:32px;font-size:12px;font-weight:800;display:inline-flex}.primary-setup{border-color:#7ab8d047}.selected-deck-chip{color:#d7dee5;background:#10161a;border:1px solid #758b9a38;border-radius:4px;flex-direction:column;gap:4px;padding:10px 11px;font-size:13px;display:flex}.selected-deck-chip span,.room-code-block span,.waiting-grid span{color:#8fa0ab;font-size:12px}.selected-deck-chip strong{color:#eef3f7}.connection-panel code{width:100%;overflow-x:auto}.waiting-card{gap:18px}.room-code-block{background:#10161a;border:1px solid #758b9a33;border-radius:4px;flex-direction:column;gap:6px;margin-bottom:14px;padding:14px;display:flex}.room-code-block div{justify-content:space-between;align-items:center;gap:12px;display:flex}.room-code-block strong{color:#eef3f7;overflow-wrap:anywhere;font-size:clamp(24px,4vw,42px);line-height:1}.room-code-block button{flex:none}.waiting-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.waiting-grid div{background:#10161ab8;border:1px solid #758b9a2e;border-radius:4px;flex-direction:column;gap:5px;padding:12px;display:flex}.waiting-grid strong{color:#eef3f7}.waiting-room-layout{flex:1;grid-template-columns:minmax(320px,.8fr) minmax(360px,1fr);gap:16px;min-height:0;display:grid}.waiting-players-panel,.room-chat-panel{background:#171d21c7;border:1px solid #758b9a2e;border-radius:6px;min-height:0;padding:18px}.waiting-players-panel,.room-chat-panel,.room-chat-log{flex-direction:column;display:flex}.room-meta-row{color:#9aa8b2;justify-content:space-between;gap:12px;margin-bottom:14px;display:flex}.room-meta-row strong{color:#eef3f7}.room-deck-action{justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:18px;display:flex}.room-deck-action div{gap:4px;min-width:0;display:grid}.room-deck-action span{color:#8fa0ab;letter-spacing:.04em;text-transform:uppercase;font-size:12px;font-weight:700}.room-deck-action strong{color:#eef3f7;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.room-deck-icon-button{opacity:.9;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;width:54px;height:54px;padding:6px;transition:opacity .16s,background .16s;display:inline-flex}.room-deck-icon-button:hover:not(:disabled){opacity:.62;background:#ffffff0a}.room-deck-icon-button:focus-visible{outline-offset:2px;outline:2px solid #d89a36c2}.room-deck-icon-button:disabled{cursor:not-allowed;opacity:.38}.room-deck-icon-button img{object-fit:contain;width:100%;height:100%}.room-deck-modal{background:#182025;width:min(1120px,96vw)}.room-deck-modal-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.room-deck-modal-heading h2{margin:4px 0 6px}.room-deck-modal-heading p{color:#9aa8b2;margin:0}.room-deck-modal-section{gap:12px;margin-top:20px;display:grid}.room-deck-section-heading{border-bottom:1px solid #758b9a2e;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:8px;display:flex}.room-deck-section-heading h3{color:#eef3f7;margin:0}.room-deck-section-heading span,.room-deck-empty-section{color:#9aa8b2;font-size:13px}.room-deck-empty-section{text-align:center;border:1px dashed #758b9a47;border-radius:6px;margin:0;padding:20px}.room-deck-grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:14px;display:grid}.room-deck-tile{text-align:left;color:#eef3f7;background:linear-gradient(155deg,#1621272e,#4f776fb8),#1c252adb;border:1px solid #758b9a47;border-radius:8px;gap:12px;min-height:330px;padding:16px;transition:border-color .16s,background .16s,opacity .16s;display:grid;position:relative;overflow:hidden}.room-deck-tile:hover:not(:disabled){background:linear-gradient(155deg,#eef3f709,#4f776f57),#1c252ac7;border-color:#d89a367a}.room-deck-tile.selected{background:linear-gradient(155deg,#d89a3617,#4f776f6b),#1c252ad6;border-color:#d89a36cc}.room-deck-tile.selected:hover:not(:disabled){background:linear-gradient(155deg,#d89a361f,#4f776f5c),#1c252ac7;border-color:#d89a36db}.room-deck-tile:disabled{color:#eef3f7;background:linear-gradient(155deg,#1621271f,#4f776f3d),#1c252ab3}.room-deck-tile.disabled{opacity:.48;cursor:not-allowed}.room-deck-cover{height:190px;margin:0 6px;position:relative}.room-deck-preview-card{aspect-ratio:.686;object-fit:cover;transform-origin:50% 92%;border-radius:5px;width:112px;position:absolute;bottom:0;left:50%;box-shadow:0 12px 22px #00000070}.room-deck-preview-card.card-0{z-index:2;transform:translate(-50%)rotate(0)scale(1.06)}.room-deck-preview-card.card-1{z-index:1;transform:translate(-82%)rotate(-9deg)scale(.94)}.room-deck-preview-card.card-2{z-index:1;transform:translate(-18%)rotate(9deg)scale(.94)}.room-deck-empty-cover{color:#9aa8b2;border:1px dashed #eef3f73d;border-radius:6px;place-items:center;height:100%;display:grid}.room-deck-tile-body{align-self:end;gap:8px;display:grid}.room-deck-tile-body strong{font-size:22px;line-height:1.1}.room-deck-tile-body span{color:#edf4f2;font-size:14px}.room-deck-selected-badge,.room-deck-disabled-note{letter-spacing:.03em;text-transform:uppercase;border-radius:4px;padding:5px 8px;font-size:11px;font-weight:800;position:absolute;bottom:12px;right:12px}.room-deck-selected-badge{color:#11181c;background:#d89a36}.room-deck-disabled-note{color:#c8d2d7;background:#10161adb}.waiting-player-list{flex-direction:column;flex:1;gap:10px;display:flex}.waiting-player-row{background:#10161a;border:1px solid #758b9a2e;border-radius:6px;align-items:center;gap:10px;padding:10px;display:flex}.waiting-avatar{color:#fff;background:linear-gradient(135deg,#2f6f8f,#d89a36);border-radius:6px;justify-content:center;align-items:center;width:42px;height:42px;font-size:13px;font-weight:800;display:inline-flex}.waiting-player-row strong,.waiting-player-row span{display:block}.waiting-player-row span{color:#9aa8b2;font-size:12px}.waiting-ready-badge{color:#9aa8b2;margin-top:2px;font-size:12px}.waiting-ready-badge.ready{color:#7fe0ba}.room-chat-panel h2{margin:0 0 10px}.room-chat-log{color:#a9b7c0;background:#10161a;border:1px solid #758b9a2e;border-radius:6px;flex:1;gap:6px;padding:10px;overflow:auto}.room-chat-log .system-message{color:#d89a36;font-weight:700}.room-chat-compose{grid-template-columns:1fr auto;gap:8px;margin-top:10px;display:grid}.create-game-button,.start-duel-button,.ready-toggle-button,.leave-button{letter-spacing:.01em;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:11px 16px;transition:border-color .16s,background .16s,color .16s;display:inline-flex;position:relative;overflow:hidden}.create-game-button,.start-duel-button{color:#11181c;box-shadow:none;background:linear-gradient(135deg,#d89a36f5,#ac6324f0),#d89a36;border-color:#d89a3699}.ready-toggle-button{color:#e7f5ef;box-shadow:none;background:linear-gradient(135deg,#2e7a67f2,#185849eb),#2e7a67;border-color:#3a9c7a8c}.ready-toggle-button:hover:not(:disabled){background:linear-gradient(135deg,#3a9278fa,#1e6755f5),#2e7a67;border-color:#5ebe99ad}.create-game-button:hover:not(:disabled),.start-duel-button:hover:not(:disabled){background:linear-gradient(135deg,#e5ab48fa,#ba6f2bf5),#d89a36;border-color:#f7c948b8}.create-game-button:disabled,.start-duel-button:disabled,.ready-toggle-button:disabled,.leave-button:disabled{color:#83929d;box-shadow:none;background:#364047ad;border-color:#758b9a29;transform:none}.start-duel-button .button-icon{color:#11181c;background:#10181c29;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;font-size:13px;line-height:1;display:inline-flex}.header-actions{align-items:center;gap:8px;display:flex}.waiting-owner-note{color:#9aa8b2;font-size:12px}.leave-button,.header-actions .leave-button.danger{color:#f2b3a4;box-shadow:none;background:linear-gradient(135deg,#9b2c2c38,#9b2c2c14),#171d21a3;border-color:#e07a5f61}.leave-button:hover:not(:disabled),.header-actions .leave-button.danger:hover:not(:disabled){color:#ffd8cf;background:linear-gradient(135deg,#9b2c2c52,#9b2c2c1f),#171d21b8;border-color:#e07a5f9e}.compact-modal{width:min(420px,100vw - 32px)}.modal-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.modal-actions .danger{background:#9b2c2c}.profile-avatar{color:#fff;background:linear-gradient(135deg,#2f6f8f,#d89a36);border-radius:6px;justify-content:center;align-items:center;width:56px;height:56px;font-size:24px;font-weight:800;display:inline-flex}@media (width<=860px){.app-nav,.home-hero{grid-template-columns:1fr}.app-nav{flex-wrap:wrap;align-items:center}.nav-tabs{order:3;width:100%;margin:0}.nav-tabs button{flex:1}.nav-user-menu{margin-left:auto}.home-hero-copy h1,.tool-header h1{font-size:40px}.feature-band,.deck-workspace,.play-workspace,.deck-builder-layout,.waiting-grid{grid-template-columns:1fr}.deck-builder-layout{grid-template-areas:"search""builder""saved";height:auto;overflow:visible}.card-search-panel{height:auto}.card-catalog-grid{max-height:420px}.deck-builder-page,.deck-builder-main{height:auto;overflow:visible}.deck-section-stack{overflow:visible}.builder-toolbar,.card-search-controls{grid-template-columns:1fr}.split-header{flex-direction:column;align-items:flex-start}.home-hero{grid-template-columns:1fr;min-height:auto}.hero-art{order:-1;min-height:300px}.hero-art img{width:min(430px,92vw)}}.connection-status{background:#171d21cc;border:1px solid #758b9a38;border-radius:4px;align-items:center;gap:7px;padding:8px 11px;font-size:12px;font-weight:700;display:inline-flex}.connection-status.connected{color:#9ee5b6}.connection-status.disconnected{color:#ffb0a8}.status-dot{width:8px;height:8px;box-shadow:0 0 0 4px color-mix(in srgb, currentColor 16%, transparent);background:currentColor;border-radius:999px}.error{color:#ffd4cf;background:#f4433624;border:1px solid #f443366b;border-radius:4px;margin-bottom:10px;padding:10px 12px}.success{color:#dcffe0;background:#4caf5029;border:1px solid #4caf506b;border-radius:4px;margin-bottom:10px;padding:10px 12px}.toast{z-index:100;position:fixed;top:10px;right:10px}.toast-bottom-center{width:min(560px,100vw - 32px);inset:auto auto 20px 50%;transform:translate(-50%)}.duel-board>.toast{pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);max-width:min(360px,100vw - 32px);margin:0;top:92px;right:16px;box-shadow:0 18px 44px #00000061}.duel-ended-banner{z-index:120;color:#f5f7fa;background:#1b2f3a;border:1px solid #4aa3c7;border-radius:6px;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;display:flex;position:fixed;top:72px;left:50%;transform:translate(-50%);box-shadow:0 12px 30px #00000059}.duel-board{--zone-w:clamp(60px, min(5.8vw, 9.4vh), 102px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(19px, min(1.5vw, 2.85vh), 28px);--table-gap:clamp(5px, min(.6vw, .9vh), 10px);--zone-row-gap:var(--zone-gap);--board-max-w:min(100%, 1160px);box-sizing:border-box;grid-template-rows:minmax(0,1fr);gap:0;height:100dvh;min-height:0;padding:0;display:grid;overflow:hidden}.duel-board.domain-multiplayer-duel{--zone-w:clamp(48px, min(4.6vw, 7.2vh), 72px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(12px, min(1vw, 1.8vh), 18px);--table-gap:clamp(4px, min(.45vw, .72vh), 7px);--zone-row-gap:var(--zone-gap);--board-max-w:min(100%, 980px)}.header{z-index:80;background:0 0;border:0;border-radius:0;grid-template-columns:minmax(160px,1fr) minmax(180px,auto) minmax(340px,1fr);align-items:flex-start;gap:12px;min-height:46px;padding:8px 12px;display:grid;position:fixed;top:10px;left:12px;right:12px}.duel-title{align-items:baseline;gap:8px;min-width:0;padding-top:2px;display:flex}.duel-title h2{color:#f5f7fa;text-shadow:0 2px 10px #000000c7;margin:0;font-size:15px}.duel-title span,.status-chip{color:#b7c0c8;font-size:12px}.status-chips{justify-content:center;gap:6px;display:flex}.status-chip{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0d1317c7;border:1px solid #758b9a40;border-radius:4px;padding:5px 8px}.status-chip.active-phase{color:#fff;background:#244253;border-color:#2f6f8f}.status-chip.turn-chip{color:#fff7f7;background:#7f1d1dad;border-color:#f87171b8}.phase-buttons{justify-content:flex-end;gap:4px;display:flex}.header-actions-game{flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:5px;min-width:0;display:flex}.opponent-hand-backs{pointer-events:none;justify-content:center;align-items:flex-start;gap:7px;min-height:74px;display:flex;overflow:visible;transform:translateY(clamp(-30px,-3vh,-22px))}.opponent-hand-back{background:url(/assets/back-card-CEd8c1to.jpg) 50%/cover no-repeat;border:0;border-radius:4px;width:50px;height:73px;box-shadow:0 8px 18px #0006}.domain-multiplayer-duel .header-actions-game{grid-column:2;justify-self:center;align-items:center}.domain-multiplayer-duel .opponent-hand-backs{display:none}.domain-multiplayer-duel .header{grid-template-columns:1fr auto 1fr}.domain-multiplayer-duel .header>div:first-child{display:none}.domain-multiplayer-duel .phase-buttons,.domain-multiplayer-duel .status-chips{justify-content:center;width:100%}.randomizer-controls{z-index:90;flex-direction:column;align-items:center;gap:10px;min-width:0;display:flex;position:fixed;top:50%;left:14px;transform:translateY(-50%)}.phase-buttons button,.randomizer-controls button{color:#d7dee5;background:#1e282ee6;border:1px solid #758b9a47;min-width:42px;padding:6px 8px}.randomizer-controls button{width:42px;min-width:0;height:38px;box-shadow:none;background:0 0;border:0;padding:0;font-size:0}.randomizer-controls button:before{content:"";background-position:50%;background-repeat:no-repeat;background-size:contain;width:36px;height:36px;margin:0 auto;display:block}.dice-button:before{background-image:url(/assets/dice-icon-D7EQoGVU.png)}.coin-button:before{background-image:url(/assets/coin-icon-ne77778t.png)}.phase-buttons button.current{color:#fff;background:#2f6f8f;border-color:#4aa3c7}.randomizer-result{white-space:nowrap;color:#f7c948;text-align:left;background:#0d1317c7;border:1px solid #758b9a47;border-radius:4px;min-width:118px;padding:8px 10px;font-size:12px;font-weight:900;position:absolute;top:50%;left:48px;transform:translateY(-50%)}.randomizer-result.rolling{animation:.52s both randomizer-pop}.table-ping{z-index:180;pointer-events:none;position:fixed;transform:translate(-50%,-50%)}.table-ping:before{content:"";border:3px solid #ef4444;border-radius:999px;width:22px;height:22px;animation:1.15s ease-out both table-ping-ring;display:block;box-shadow:0 0 0 1px #ffffff1f,0 0 26px #ef444485}.table-ping span{text-overflow:ellipsis;white-space:nowrap;color:#fff;background:#14181ceb;border:1px solid #ef444480;border-radius:4px;max-width:150px;padding:3px 6px;font-size:11px;font-weight:800;animation:1.15s ease-out both table-ping-label;position:absolute;top:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%)}.manual-chain-panel{z-index:170;pointer-events:auto;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:12px;width:clamp(250px,18vw,330px);min-height:430px;display:flex;position:fixed;top:50%;right:clamp(18px,2.5vw,46px);transform:translateY(-48%)}.manual-chain-stack{flex:1;min-height:340px;position:relative}.manual-chain-card{background:#0f1418f0;border:1px solid #ef444480;border-radius:8px;width:clamp(160px,13vw,230px);position:absolute;bottom:0;right:22px;box-shadow:0 26px 70px #0000008f}.manual-chain-card img,.chain-card-placeholder{aspect-ratio:.684;object-fit:cover;border-radius:7px;width:100%;display:block}.chain-card-placeholder{color:#e8eef2;text-align:center;background:linear-gradient(145deg,#26333a,#10161a);place-items:center;padding:12px;display:grid}.chain-link-badge{color:#fff;background:#ef4444;border:2px solid #ffffffdb;border-radius:999px;place-items:center;width:34px;height:34px;font-size:17px;font-weight:900;display:grid;position:absolute;top:-12px;left:-12px;box-shadow:0 10px 24px #0000006b}.manual-chain-caption{flex-direction:column;gap:2px;padding:8px 9px 9px;display:flex}.manual-chain-caption strong{color:#fff;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.15;overflow:hidden}.manual-chain-caption span{color:#a9b7c0;font-size:11px}.manual-chain-controls{background:#0f1418f5;border:1px solid #758b9a4d;border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:10px;display:grid;box-shadow:0 18px 44px #0000006b}.manual-chain-controls div{flex-direction:column;min-width:0;display:flex}.manual-chain-controls strong{color:#fff;font-size:12px}.manual-chain-controls span{color:#9aa8b2;font-size:11px}.manual-chain-controls button{color:#e8eef2;background:#1e282e;border-color:#7ab8d03d;min-width:0;padding:8px 9px;font-size:12px}.manual-chain-controls button:hover:not(:disabled){color:#fff;background:#7f1d1d;border-color:#ef444494}.chain-log-entry{color:#f7c948!important}@keyframes table-ping-ring{0%{opacity:0;transform:scale(.45)}18%{opacity:1}to{opacity:0;transform:scale(3.2)}}@keyframes table-ping-label{0%,72%{opacity:1}to{opacity:0}}@keyframes randomizer-pop{0%{opacity:.35;transform:translateY(-50%)translate(-8px)scale(.88)}55%{opacity:1;transform:translateY(-50%)translate(0)scale(1.08)}to{opacity:1;transform:translateY(-50%)translate(0)scale(1)}}.board{gap:calc(var(--table-gap) * 1.15);background:linear-gradient(90deg,#0000 0 49.82%,#7ab8d029 49.82% 50.18%,#0000 50.18%),radial-gradient(circle,#2f6f8f29,#0000 58%);border:0;border-radius:0;flex-direction:column;align-items:center;width:100%;height:100%;min-height:0;padding:52px 0 0;display:flex}.opponent-stack{gap:calc(var(--table-gap) * 1.15);flex-direction:column;align-items:center;width:100%;display:flex}.domain-multiplayer-board{gap:clamp(4px,.7vh,8px);padding:clamp(64px,8.2vh,86px) clamp(10px,1.5vw,18px) 0}.board.domain-camera-table{gap:0;padding:0}.board.domain-camera-focus-me{grid-template-rows:auto auto minmax(0,1fr) auto;align-content:stretch;justify-items:center;gap:clamp(5px,.75vh,9px);padding:clamp(62px,8vh,84px) clamp(14px,2vw,26px) 0;display:grid}.domain-camera-focus-me>.domain-opponent-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));width:min(100%,1220px);max-height:clamp(138px,24vh,210px);padding-bottom:4px}.domain-camera-focus-me>.player-area.self{--zone-w:clamp(64px, min(6.3vw, 9.4vh), 108px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(14px, min(1.15vw, 1.9vh), 24px);--zone-row-gap:var(--zone-gap);align-self:center;width:min(100%,1220px)}.domain-camera-focus-me>.extra-monster-row{--zone-w:clamp(64px, min(6.3vw, 9.4vh), 108px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(14px, min(1.15vw, 1.9vh), 24px);--zone-row-gap:var(--zone-gap);width:min(100%,1220px)}.domain-camera-focus-me>.hand{width:min(100%,980px)}.domain-camera-grid{--zone-w:clamp(58px, min(5.7vw, 9.3vh), 86px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(7px, .9vw, 13px);--zone-row-gap:var(--zone-gap);grid-template-rows:minmax(0,1fr) minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;height:100%;min-height:0;display:grid;position:relative}.domain-camera-grid:before,.domain-camera-grid:after{content:"";z-index:1;pointer-events:none;background:#e0eaf02e;position:absolute}.domain-camera-grid:before{width:1px;top:0;bottom:0;left:50%}.domain-camera-grid:after{height:1px;top:50%;left:0;right:0}.domain-camera-seat{--zone-w:clamp(58px, min(5.7vw, 9.3vh), 86px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(7px, .9vw, 13px);--zone-row-gap:var(--zone-gap);justify-content:center;align-items:center;min-width:0;min-height:0;padding:clamp(10px,1.2vh,18px) clamp(10px,1.25vw,18px);display:flex;position:relative}.domain-camera-seat.camera-seat-0{grid-area:2/1}.domain-camera-seat.camera-seat-1{grid-area:1/1}.domain-camera-seat.camera-seat-2{grid-area:1/2}.domain-camera-seat.camera-seat-3{grid-area:2/2}.domain-emz-overlay{pointer-events:none;z-index:20;grid-area:1/1/-1/-1;position:relative}.domain-emz-overlay>*{pointer-events:auto}.domain-emz-cluster{justify-content:center;align-items:center;gap:calc(var(--zone-w) + (var(--zone-row-gap) * 2));display:flex;position:absolute;top:50%;transform:translate(-50%,-50%)}.domain-emz-cluster-left{left:25%}.domain-emz-cluster-right{left:75%}.domain-emz{z-index:20;width:var(--zone-w);height:var(--zone-h);flex:none;position:static}.domain-camera-seat .player-area{gap:4px;width:min(100%,820px);position:static}.domain-camera-seat.camera-seat-0 .zones,.domain-camera-seat.camera-seat-3 .zones{transform:translateY(-28px)}.domain-camera-seat.camera-seat-1 .zones,.domain-camera-seat.camera-seat-2 .zones{transform:translateY(20px)}.domain-camera-seat .player-stats{z-index:34;pointer-events:auto;width:auto;max-width:min(220px,100% - 24px);position:absolute}.domain-camera-seat.camera-seat-0 .player-stats{bottom:clamp(4px,.8vh,12px);left:clamp(4px,.8vw,12px)}.domain-camera-seat.camera-seat-1 .player-stats{top:clamp(4px,.8vh,12px);left:clamp(4px,.8vw,12px)}.domain-camera-seat.camera-seat-2 .player-stats{top:clamp(4px,.8vh,12px);right:clamp(4px,.8vw,12px)}.domain-camera-seat.camera-seat-3 .player-stats{bottom:clamp(4px,.8vh,12px);right:clamp(4px,.8vw,12px)}.domain-camera-seat .duel-player-avatar{border-radius:5px;width:36px;height:36px;font-size:12px}.domain-camera-seat .player-label{color:#eef3f7;font-size:13px}.domain-camera-seat .player-lp-row strong,.domain-camera-seat .lp-editor{font-size:16px}.domain-camera-seat .side-zone span{font-size:9px}.domain-camera-seat .side-zone strong{font-size:12px}.domain-camera-seat>.hand{z-index:36;pointer-events:auto;width:min(620px,100% - 72px);min-height:clamp(94px,12.8vh,132px);margin:0;padding:0;position:absolute;bottom:clamp(8px,1.6vh,18px);left:50%;right:auto;transform:translate(-50%)}.domain-camera-seat.camera-seat-0>.hand{bottom:0}.domain-camera-seat>.hand .hand-cards{justify-content:center;width:100%;min-height:clamp(94px,12.8vh,132px)}.domain-seat-hand{z-index:32;pointer-events:none;justify-content:center;align-items:center;gap:3px;max-width:min(360px,100% - 120px);min-height:62px;display:flex;position:absolute;overflow:visible}.domain-seat-hand-back{background:url(/assets/back-card-CEd8c1to.jpg) 50%/cover no-repeat;border:1px solid #eef3f742;border-radius:3px;flex:none;width:clamp(34px,min(3.3vw,5.9vh),48px);height:clamp(49px,min(4.7vw,8.3vh),70px);box-shadow:0 4px 10px #0000004d}.domain-camera-seat.camera-seat-1 .domain-seat-hand{top:clamp(16px,2.4vh,34px);left:50%;right:auto;transform:translate(-50%)}.domain-camera-seat.camera-seat-2 .domain-seat-hand{flex-direction:row-reverse;top:clamp(16px,2.4vh,34px);left:50%;right:auto;transform:translate(-50%)}.domain-camera-seat.camera-seat-3 .domain-seat-hand{flex-direction:row-reverse;bottom:clamp(16px,2.4vh,34px);left:50%;right:auto;transform:translate(-50%)}.domain-camera-zoom{box-sizing:border-box;grid-template-rows:minmax(0,1fr) auto auto;place-items:center;gap:8px;width:100%;height:100%;min-height:0;padding:clamp(68px,9vh,92px) 16px 0;display:grid}.domain-zoom-stage{--zone-w:clamp(58px, min(6.1vw, 9.2vh), 102px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:clamp(14px, min(1.2vw, 2vh), 24px);--zone-row-gap:var(--zone-gap);justify-content:center;align-items:center;width:min(100%,1180px);min-height:0;display:flex}.domain-zoom-stage .player-area{width:min(100%,1180px)}.domain-zoom-strip{flex-wrap:wrap;justify-content:center;gap:6px;max-width:min(920px,100%);display:flex}.domain-zoom-strip button{color:#d7dee5;background:#1e282ee6;border-color:#7ab8d03d;min-width:0;padding:7px 10px;font-size:12px}.domain-zoom-strip button.active{color:#fff;background:#2f6f8f;border-color:#4aa3c7}.domain-opponent-grid{scrollbar-gutter:stable;overscroll-behavior:contain;grid-template-columns:repeat(auto-fit,minmax(min(100%,378px),1fr));align-items:start;gap:10px;width:min(100%,1180px);max-height:clamp(190px,34vh,356px);padding:0 8px 8px;display:grid;overflow:auto}.player-area{width:var(--board-max-w);background:0 0;border:0;border-radius:0;flex-direction:column;gap:5px;padding:0;display:flex;position:relative}.domain-opponent-grid .player-area{--zone-w:clamp(30px, min(2.65vw, 4.9vh), 38px);--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:6px;--zone-row-gap:5px;box-sizing:border-box;background:#0d1317ad;border:1px solid #758b9a42;border-radius:7px;gap:4px;width:100%;min-width:0;padding:50px 8px 8px;box-shadow:inset 0 0 24px #7ab8d00d}.domain-opponent-grid .player-area.turn-player{border-color:#f87171b8;box-shadow:inset 0 0 24px #f8717114,0 0 0 1px #f871712e}.opponent{background:0 0}.zones{width:100%;padding-bottom:0;overflow:visible}.field-grid{grid-template-columns:calc((var(--zone-w) * 2) + var(--zone-gap)) calc((var(--zone-w) * 5) + (var(--zone-row-gap) * 4)) calc((var(--zone-w) * 2) + var(--zone-gap));gap:var(--zone-gap);justify-content:center;align-items:center;display:grid}.main-zones,.side-zones{gap:var(--zone-gap);flex-direction:column;display:flex}.main-zones{width:calc((var(--zone-w) * 5) + (var(--zone-row-gap) * 4))}.side-zones{width:calc((var(--zone-w) * 2) + var(--zone-gap))}.left-side-zones{align-items:flex-end}.right-side-zones{align-items:flex-start}.zone-row{gap:var(--zone-row-gap);width:100%;display:flex}.zone{width:var(--zone-w);height:var(--zone-h);text-align:center;background:linear-gradient(135deg,#1a262db3,#080c10d1),repeating-linear-gradient(90deg,#7ab8d01a 0 1px,#0000 1px 12px);border:2px solid #a9d7f5c2;border-radius:2px;flex:none;justify-content:center;align-items:center;font-size:11px;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 0 18px #7ab8d01f,0 6px 18px #00000038}.zone.card-zone{overflow:visible}.zone.drop-enabled:hover{border-color:#f7c948eb}.zone-empty-label{color:#d6e8f3a8;letter-spacing:0;font-size:11px;font-weight:600}.zone-empty-button{color:#d6e8f3a8;cursor:default;background:0 0;border:0;width:100%;min-width:0;height:100%;padding:0;font-size:11px;font-weight:600}.zone-empty-button:disabled{opacity:1;color:#d6e8f3a8;cursor:default;background:0 0}.zone-empty-button:not(:disabled){color:#f7c948;cursor:pointer}.zone-empty-button:hover{background:0 0}.pendulum-gem{object-fit:contain;pointer-events:none;opacity:.5;width:70%;height:70%}.opponent .pendulum-gem{transform:scaleX(-1)}.extra-monster-row{grid-template-columns:repeat(5, var(--zone-w));gap:var(--zone-row-gap);width:var(--board-max-w);pointer-events:none;justify-content:center;margin:0 auto;display:grid}.extra-monster-zone{background:linear-gradient(135deg,#2a375cb8,#0a0e16e0),repeating-linear-gradient(90deg,#7a94ff1f 0 1px,#0000 1px 12px);border-color:#7a94ffe6}@media (width<=760px){.container{padding:10px}.header{grid-template-columns:1fr}.status-chips,.phase-buttons{flex-wrap:wrap;justify-content:flex-start}.player-area{width:100%}.player-stats,.action-mode-bar{flex-direction:column;align-items:stretch}.stat-chip-row,.action-mode-actions{justify-content:flex-start}.field-grid{min-width:calc((var(--zone-w) * 9) + (var(--zone-gap) * 8))}}.m-zone{border-color:#e6be50d1;box-shadow:inset 0 0 14px #e6be500d,0 6px 18px #00000029}.m-zone:hover{background:linear-gradient(135deg,#26363ed1,#0c1217e6),repeating-linear-gradient(90deg,#e6be5021 0 1px,#0000 1px 12px)}.st-zone{border-color:#3c9678d9;box-shadow:inset 0 0 14px #3c96780d,0 6px 18px #00000029}.st-zone:hover{background:linear-gradient(135deg,#26363ed1,#0c1217e6),repeating-linear-gradient(90deg,#3c967821 0 1px,#0000 1px 12px)}.field-zone{border-color:#4caf50d1}.extra-zone{border-color:#b178ffc7}.pile-zone{color:#d0d0d0;border-color:#d89a36c2}.graveyard-zone{border-color:#f5f5f5e6}.graveyard-zone:hover{border-color:#f5f5f5d9}.graveyard-zone .pile-overlay{background:#1e1e1eb8}.side-zone{width:var(--zone-w);flex-direction:column;gap:5px}.pile-zone-pair{gap:var(--zone-gap);display:flex}.domain-side-zone-pair{align-items:center;gap:var(--zone-gap);display:flex}.side-zone span{color:#9aa4ad;font-size:11px;font-weight:600}.side-zone strong{color:#fff;font-size:18px;line-height:1}.domain-opponent-grid .zone{border-width:1px;box-shadow:inset 0 0 12px #7ab8d014,0 4px 10px #0000002e}.domain-opponent-grid .side-zone{gap:2px}.domain-opponent-grid .side-zone span{font-size:9px}.domain-opponent-grid .side-zone strong{font-size:12px}.domain-opponent-grid .pile-overlay{gap:2px}.zone-button{color:#d7dee5;background:linear-gradient(135deg,#1a262db3,#080c10d1),repeating-linear-gradient(90deg,#7ab8d01a 0 1px,#0000 1px 12px);padding:0;font-size:12px;font-weight:400}.zone-button:hover{background:linear-gradient(135deg,#26363ed1,#0c1217e6),repeating-linear-gradient(90deg,#7ab8d021 0 1px,#0000 1px 12px)}.deck-stack span,.deck-stack strong{z-index:1;text-shadow:0 1px 3px #000;position:relative}.deck-stack{border-color:#d89a36c2;background:url(/assets/back-card-CEd8c1to.jpg) 50%/cover no-repeat!important}.deck-stack:hover{background:url(/assets/back-card-CEd8c1to.jpg) 50%/cover no-repeat!important}.deck-stack:disabled{cursor:default;opacity:1}.banished-zone{opacity:.9;border-color:#5a5a5ae6}.banished-zone:hover{border-color:#787878f2}.pile-top-card{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.pile-top-card img,.pile-top-card .card-placeholder{object-fit:cover;border-radius:2px;width:100%;height:100%}.pile-overlay{z-index:1;background:#080c10b8;flex-direction:column;justify-content:center;align-items:center;gap:5px;display:flex;position:absolute;inset:0}.player-stats{background:0 0;border:0;border-radius:0;justify-content:flex-start;align-items:center;gap:12px;width:fit-content;padding:0;font-size:13px;display:flex}.player-area.self .player-stats{z-index:100;position:fixed;bottom:16px;left:16px}.player-area.opponent .player-stats{z-index:100;position:fixed;top:16px;left:16px}.domain-multiplayer-duel .player-area.self .player-stats,.domain-multiplayer-duel .player-area.opponent .player-stats{z-index:1;width:100%;position:static;top:auto;bottom:auto;left:auto}.domain-multiplayer-duel .player-area.self .player-stats{justify-content:center}.domain-opponent-grid .player-stats{gap:0;min-width:0;max-width:calc(54% - 10px);position:absolute;top:8px;left:8px}.domain-multiplayer-duel .domain-opponent-grid .player-area.opponent .player-stats{width:auto;max-width:calc(54% - 10px);position:absolute;top:8px;left:8px}.domain-opponent-grid .player-identity{gap:7px;width:100%}.domain-opponent-grid .duel-player-avatar{border-radius:5px;width:30px;height:30px;font-size:11px}.domain-opponent-grid .player-label{color:#d9e2e8;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.domain-opponent-grid .turn-player .player-label{color:#fff}.domain-opponent-grid .player-lp-row strong{font-size:15px}.domain-opponent-grid .player-lp-row span{font-size:10px}.player-hand-count{color:#9fb0bc;font-size:11px;font-weight:700;line-height:1}.domain-opponent-grid .player-hand-count{font-size:10px}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat .player-area .player-stats{z-index:120;-webkit-backdrop-filter:none;backdrop-filter:none;width:auto;max-width:min(220px,100% - 24px);box-shadow:none;box-sizing:border-box;pointer-events:auto;background:0 0;border:0;border-radius:0;margin:0;padding:0;position:fixed!important}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0 .player-area .player-stats{inset:auto auto clamp(8px,1vh,16px) clamp(8px,1vw,16px)!important}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-1 .player-area .player-stats{inset:clamp(8px,1vh,16px) auto auto clamp(8px,1vw,16px)!important}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-2 .player-area .player-stats{inset:clamp(8px,1vh,16px) clamp(8px,1vw,16px) auto auto!important}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3 .player-area .player-stats{inset:auto clamp(8px,1vw,16px) clamp(8px,1vh,16px) auto!important}@media (width<=1180px){.player-area.opponent .player-stats{position:absolute;top:8px;left:8px}}.player-identity{align-items:center;gap:10px;min-width:0;display:flex}.player-info-stack{flex-direction:column;gap:2px;min-width:0;display:flex}.player-lp-row{align-items:center;gap:5px;display:flex}.duel-player-avatar{color:#fff;object-fit:cover;background:linear-gradient(135deg,#2f6f8f,#d89a36);border:1px solid #7ab8d057;border-radius:7px;flex:none;justify-content:center;align-items:center;width:56px;height:56px;font-size:18px;font-weight:900;display:inline-flex}.player-label{color:#aeb7bf;font-size:16px;font-weight:600}.player-identity strong{font-size:22px;line-height:1}.lp-editor{color:#fff;background:#0d1317c7;border-color:#f7c94866;width:72px;min-height:0;padding:3px 6px;font-size:18px;font-weight:900;line-height:1}.stat-chip-row{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.stat-chip{color:#d7dee5;background:#1b1f23;border:1px solid #3b444d;border-radius:4px;padding:5px 8px;font-size:12px}.button-chip{cursor:pointer}.button-chip:hover{background:#2f363d}.hand{width:var(--board-max-w);box-sizing:border-box;z-index:40;background:0 0;border:0;border-radius:0;justify-self:center;min-height:clamp(108px,17vh,164px);margin-top:auto;margin-bottom:clamp(-24px,-2.4vh,-14px);padding:0 8px;position:relative}.hand-cards{justify-content:center;align-items:flex-end;gap:2px;min-height:clamp(118px,17vh,166px);padding:clamp(8px,1.5vh,16px) 0 0;display:flex;overflow:visible;transform:translateY(clamp(12px,2.1vh,24px))}.hand-card{touch-action:manipulation;z-index:1;background:0 0;border:0;border-radius:0;flex-direction:column;flex:none;gap:5px;width:clamp(84px,min(7vw,13vh),120px);height:clamp(123px,min(10.3vw,19vh),176px);padding:0;display:flex;position:relative}.hand-card:hover,.hand-card.selected{z-index:20}.hand-card-image{transform-origin:bottom;width:clamp(80px,min(6.7vw,12.5vh),112px);min-height:clamp(117px,min(9.8vw,18.2vh),164px);margin:0 auto;transition:transform .14s,filter .14s;position:relative}.hand-card:hover .hand-card-image,.hand-card.selected .hand-card-image{transform:scale(1.12)}.hand-card-image img,.hand-card-image .card-placeholder{width:clamp(80px,min(6.7vw,12.5vh),112px)!important;height:clamp(117px,min(9.8vw,18.2vh),164px)!important}.hand-card-actions{transform-origin:bottom;z-index:50;background:#14191dfa;border:1px solid #758b9a52;border-radius:6px;flex-direction:column;gap:5px;width:210px;padding:10px;display:flex;position:absolute;bottom:calc(100% + 12px);left:50%;transform:translate(-50%);box-shadow:0 18px 44px #0000007a}.hand-card-actions button{color:#e8eef2;white-space:nowrap;text-overflow:ellipsis;text-align:left;background:#1e282e;border-color:#7ab8d03d;min-width:0;padding:8px 9px;font-size:12px;line-height:1.1;overflow:hidden}.hand-card-actions button:hover{background:#2f6f8f}.domain-multiplayer-duel .hand{min-height:clamp(84px,11.8vh,116px);margin-bottom:0}.domain-multiplayer-duel .hand-cards{min-height:clamp(86px,11.6vh,118px);padding-top:0;transform:none}.domain-multiplayer-duel .hand-card{width:clamp(70px,min(5.5vw,9.6vh),96px);height:clamp(98px,min(7.8vw,13.1vh),136px)}.domain-multiplayer-duel .hand-card-image,.domain-multiplayer-duel .hand-card-image img,.domain-multiplayer-duel .hand-card-image .card-placeholder{width:clamp(66px,min(5.2vw,9.2vh),92px)!important;height:clamp(94px,min(7.4vw,12.6vh),132px)!important}.domain-camera-table .hand-card{width:clamp(68px,min(5.3vw,9.3vh),94px);height:clamp(96px,min(7.6vw,12.8vh),134px)}.domain-camera-table .hand-card-image,.domain-camera-table .hand-card-image img,.domain-camera-table .hand-card-image .card-placeholder{width:clamp(64px,min(5vw,8.9vh),90px)!important;height:clamp(92px,min(7.2vw,12.2vh),130px)!important}.field-card-actions{z-index:330;background:#14191dfa;border:1px solid #758b9a52;border-radius:6px;flex-direction:column;gap:5px;width:200px;max-height:min(360px,100vh - 24px);padding:10px;display:flex;position:fixed;overflow:auto;transform:translate(-50%);box-shadow:0 18px 44px #0000007a}.field-card-actions button{color:#e8eef2;text-align:left;background:#1e282e;border-color:#7ab8d03d;justify-content:flex-start;width:100%;padding:8px 9px;font-size:12px}.field-card-actions button:hover{color:#fff;background:#2f6f8f}.hand-action-title{color:#f5f7fa;max-height:32px;font-size:12px;font-weight:800;line-height:1.2;overflow:hidden}.deck-master-section,.deck-master-info{gap:6px;width:100%;margin:0 0 6px;padding:0;display:grid}.dm-tax{color:#ff9800}.dm-summon-row{color:#d0d7de;flex-wrap:wrap;align-items:center;gap:6px;margin-top:2px;font-size:12px;display:flex}.dm-summon-trigger{color:#f2e9ff;background:#4a2e6ee6;border-color:#b178ffb3;justify-self:start;padding:5px 10px;font-size:12px}.dm-summon-trigger:hover{background:#5c3c86f2;border-color:#cda4ffe6}.dm-zone-btn{color:#f2e9ff;background:#4a2e6ee6;border-color:#b178ffb3;padding:4px 10px;font-size:12px}.dm-zone-btn:hover:not(:disabled){background:#5c3c86f2;border-color:#cda4ffe6}.deck-master-zone{width:100%;min-height:calc(var(--zone-h) * .86);cursor:pointer;background:linear-gradient(135deg,#2c2040c7,#0c1118e6),repeating-linear-gradient(90deg,#b178ff29 0 1px,#0000 1px 12px);border-color:#b178ffc7;justify-content:flex-start;align-items:center;height:auto;padding:8px 10px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex;overflow:visible}.deck-master-zone:hover{background:linear-gradient(135deg,#34264ad6,#0f141eeb),repeating-linear-gradient(90deg,#bb8aff2e 0 1px,#0000 1px 12px);border-color:#cda4fff2;box-shadow:inset 0 0 14px #b178ff1a,0 8px 20px #0000003d}.deck-master-zone-off-field{background:linear-gradient(135deg,#19222adb,#0a0f15eb),repeating-linear-gradient(90deg,#7ab8d01f 0 1px,#0000 1px 12px);border-color:#7ab8d085}.deck-master-zone-off-field:hover{background:linear-gradient(135deg,#1e2831e6,#0d131bf5),repeating-linear-gradient(90deg,#7ab8d029 0 1px,#0000 1px 12px);border-color:#92c9e0bd;box-shadow:inset 0 0 14px #7ab8d014,0 8px 20px #0003}.deck-master-zone .deck-master-card{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;width:100%;min-width:0;display:grid}.deck-master-zone .deck-master-card img,.deck-master-zone .deck-master-card .card-placeholder{border-radius:4px;flex-shrink:0;width:56px!important;height:82px!important}.deck-master-zone .dm-label{text-align:left;color:#e0e0e0;min-width:0;font-size:13px;line-height:1.2}.deck-master-zone .dm-title{align-items:baseline;gap:6px;min-width:0;display:flex}.deck-master-zone .dm-title strong{color:#d8b0ff;flex:none}.deck-master-zone .dm-title span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.deck-master-zone .dm-details{color:#b8bec7;flex-wrap:wrap;gap:3px 10px;margin-top:4px;font-size:11px;display:flex}.deck-master-zone .dm-status{color:#d6e6ef}.deck-master-zone .dm-status.off-field{color:#9fc7dc}.domain-multiplayer-duel .deck-master-section,.domain-multiplayer-duel .deck-master-info{width:var(--zone-w);flex:none;gap:4px;margin:0}.domain-multiplayer-duel .deck-master-zone{width:var(--zone-w);height:var(--zone-h);border-radius:3px;justify-content:center;align-items:stretch;min-height:0;padding:1px;overflow:hidden}.domain-multiplayer-duel .deck-master-zone .deck-master-card{flex-direction:column;justify-content:flex-start;align-items:center;gap:1px;width:100%;height:100%;min-height:0;display:flex;position:relative}.domain-multiplayer-duel .deck-master-zone .deck-master-card img,.domain-multiplayer-duel .deck-master-zone .deck-master-card .card-placeholder{object-fit:contain;object-position:center top;border-radius:2px;flex:auto;max-width:100%;min-height:0;max-height:calc(100% - 14px);display:block;width:auto!important;height:calc(100% - 14px)!important}.domain-multiplayer-duel .deck-master-zone .dm-label{text-align:center;background:0 0;border-radius:0;width:100%;min-width:0;margin-top:0;padding:0 1px 1px;font-size:clamp(7px,min(.66vw,1vh),9px);line-height:1}.domain-multiplayer-duel .deck-master-zone .dm-title{display:block}.domain-multiplayer-duel .deck-master-zone .dm-title strong{display:none}.domain-multiplayer-duel .deck-master-zone .dm-title span{white-space:normal;max-height:2.1em;display:block;overflow:hidden}.domain-multiplayer-duel .deck-master-zone .dm-details{color:#f7c948;margin-top:2px;font-size:clamp(7px,min(.68vw,1vh),9px);display:block}.domain-multiplayer-duel .deck-master-zone .dm-details .dm-status{display:none}.domain-opponent-grid .deck-master-section,.domain-opponent-grid .deck-master-info{width:var(--zone-w);margin:0;position:static}.domain-opponent-grid .deck-master-zone{width:var(--zone-w);height:var(--zone-h)}.domain-opponent-grid .deck-master-zone .deck-master-card{gap:2px}.dm-summon-modal{flex-direction:column;gap:12px;width:min(320px,100vw - 32px);display:flex}.dm-summon-modal-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.dm-summon-modal-header h3{margin:0;font-size:18px}.dm-summon-modal-header button{padding:6px 9px}.dm-summon-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.dm-summon-grid .dm-zone-btn{width:100%;padding:9px 10px}.prompt-overlay{z-index:200;box-sizing:border-box;background:#000000b3;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.prompt-box{background:#252a2f;border:1px solid #46515b;border-radius:6px;flex-direction:column;gap:10px;width:100%;max-width:min(720px,96vw);max-height:min(86vh,760px);padding:18px;display:flex;overflow-y:auto;box-shadow:0 18px 48px #00000073}.prompt-options{flex-direction:column;gap:8px;display:flex}.log-panel{background:#1b1f23;border:1px solid #30363d;border-radius:6px;max-height:150px;padding:10px;overflow-y:auto}.log-panel h4{margin:0 0 8px}.log-entries{color:#ccc;flex-direction:column;gap:2px;font-size:12px;display:flex}.card-placeholder{text-align:center;color:#d7dee5;background:linear-gradient(145deg,#26333a,#10161a);border:1px solid #758b9a57;border-radius:4px;justify-content:center;align-items:center;padding:4px;font-size:10px;display:flex;overflow:hidden}.card-in-zone{justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.card-in-zone.defense-position img,.card-in-zone.defense-position .card-placeholder,.card-in-zone.defense-position .face-down-overlay{transform:rotate(90deg)}.card-in-zone.defense-position{z-index:2;overflow:visible}.face-down-overlay{background:url(/assets/back-card-CEd8c1to.jpg) 50%/cover no-repeat;border:0;border-radius:4px;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.face-down-overlay:after{content:none}.inspect-btn{color:#ccc;background:0 0;border:1px solid #666;margin-left:8px;padding:2px 8px;font-size:12px}.inspect-btn:hover{color:#fff;background:#444}.modal-overlay{z-index:300;box-sizing:border-box;background:#000c;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.modal-content{background:#252a2f;border:1px solid #46515b;border-radius:6px;width:min(840px,96vw);max-height:86vh;padding:18px;overflow-y:auto}.modal-content h3{justify-content:space-between;align-items:center;margin:0 0 12px;display:flex}.close-btn{background:#f44336;padding:4px 10px;font-size:12px}.inspect-grid{flex-wrap:wrap;gap:8px;min-height:80px;display:flex}.inspect-card{flex-direction:column;align-items:center;gap:4px;display:flex;position:relative}.inspect-top-marker{z-index:2;color:#101316;background:#f7c948;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:800;line-height:1;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.inspect-name{text-align:center;text-overflow:ellipsis;white-space:nowrap;max-width:100px;font-size:11px;overflow:hidden}.inspect-empty{color:#8f9aa3;text-align:center;border:1px dashed #3b444d;border-radius:4px;width:100%;padding:18px}.zone-inspect-popover{z-index:240;background:#14191dfa;border:1px solid #758b9a57;border-radius:8px;width:min(420px,100vw - 32px);max-height:min(520px,100vh - 96px);padding:10px;position:fixed;bottom:64px;right:16px;overflow:auto;box-shadow:0 18px 44px #0000007a}.zone-inspect-header h3{justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px;font-size:14px;display:flex}.zone-inspect-popover .inspect-card img,.zone-inspect-popover .inspect-card .card-placeholder{width:70px!important;height:102px!important}.zone-inspect-popover .inspect-name{max-width:78px}.hand-cards img,.hand-cards .card-placeholder{margin-bottom:0}@keyframes pulse-ring{0%,to{opacity:.6;transform:scale(1)}50%{opacity:.25;transform:scale(1.04)}}#root{text-align:left;width:100%;max-width:100%;margin:0}.attack-btn{z-index:10;background:#e91e63;padding:2px 6px;font-size:10px;position:absolute;top:2px;right:2px}.attack-btn:hover{background:#c2185b}.select-card-grid{flex-wrap:wrap;justify-content:center;gap:10px;max-height:360px;display:flex;overflow-y:auto}.select-card-item{cursor:pointer;color:#d7dee5;box-sizing:border-box;background:#1b1f23;border:2px solid #0000;border-radius:4px;flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;width:116px;min-height:180px;padding:6px;transition:border-color .2s;display:flex}.select-card-item.selected{background:#1b3a1b;border-color:#4caf50}.select-card-item:hover{border-color:#81c784}.select-card-item.disabled{cursor:default;opacity:.88;pointer-events:none}.select-card-item.static{cursor:default}.select-card-caption{color:#c6d0d8;overflow-wrap:anywhere;width:100%;font-size:11px;line-height:1.2}.prompt-subtitle{color:#aaa;margin:4px 0;font-size:13px}.sum-must-section{margin-bottom:4px}.sort-index{text-align:center;color:#ffd54f;min-width:22px;font-size:12px;font-weight:700;display:inline-block}.prompt-title{text-align:center;margin-bottom:8px;font-size:16px;font-weight:700}.prompt-message{text-align:center;color:#ccc;margin-bottom:12px;font-size:14px}.prompt-buttons{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.yesno-buttons{justify-content:center;gap:20px;display:flex}.yes-btn{background:#4caf50}.yes-btn:hover{background:#388e3c}.no-btn{background:#f44336}.no-btn:hover{background:#d32f2f}.chain-list{flex-direction:column;gap:8px;display:flex}.chain-item{cursor:pointer;color:#d7dee5;text-align:left;background:#2a2a2a;border:2px solid #0000;border-radius:4px;align-items:center;gap:10px;padding:8px;display:flex}.chain-item:hover{border-color:#ff9800}.chain-overlay{z-index:150;position:fixed;top:10px;left:50%;transform:translate(-50%)}.chain-box{background:#2a1a3a;border:2px solid #7c4dff;border-radius:8px;min-width:300px;padding:12px 20px}.chain-title{color:#7c4dff;margin-bottom:6px;font-size:14px;font-weight:700}.chain-link{color:#e0e0e0;padding:2px 0;font-size:13px}.effect-buttons{z-index:10;flex-wrap:wrap;gap:2px;display:flex;position:absolute;bottom:2px;left:2px;right:2px}.effect-btn{background:#ff9800;border:none;border-radius:2px;flex:1;min-width:0;padding:2px 4px;font-size:9px}.effect-btn:hover{background:#f57c00}.place-grid{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.place-zone-btn{background:#424242;border:2px solid #666;border-radius:4px;padding:10px 16px;font-size:13px}.place-zone-btn.selected{background:#1b3a1b;border-color:#4caf50}.place-zone-btn:hover{background:#555}.position-buttons{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.position-buttons button{background:#424242;padding:10px 16px;font-size:13px}.card-stats{color:#fff;z-index:5;background:#000000bf;justify-content:center;gap:4px;padding:2px 0;font-size:9px;display:flex;position:absolute;bottom:0;left:0;right:0}.stat-level{color:#ffeb3b}.stat-atk{color:#ff9800}.stat-def{color:#4caf50}.stat-attr{color:#ff5722;text-transform:uppercase;font-size:8px}.stat-race{color:#03a9f4;text-transform:uppercase;font-size:8px}.tribute-selected{border-radius:4px;border:3px solid #ff9800!important}.action-mode-bar{z-index:160;background:#20252b;border:1px solid #46515b;border-left-width:4px;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;width:min(620px,100vw - 24px);padding:10px 12px;display:flex;position:fixed;bottom:14px;left:50%;transform:translate(-50%);box-shadow:0 10px 28px #00000059}.action-mode-bar.tribute{border-left-color:#ff9800}.action-mode-bar.fusion{border-left-color:#4caf50}.action-mode-bar.synchro{border-left-color:#2196f3}.action-mode-copy{flex-direction:column;gap:3px;display:flex}.action-mode-copy strong{font-size:14px}.action-mode-copy span{color:#aeb7bf;font-size:12px}.action-mode-actions{gap:8px;display:flex}.action-mode-actions button{padding:6px 10px}.action-mode-actions .secondary{background:#3a424a}.action-mode-bar.tribute .action-mode-copy strong{color:#ff9800}.action-mode-bar.fusion .action-mode-copy strong{color:#4caf50}.action-mode-bar.synchro .action-mode-copy strong{color:#2196f3}.tribute-cards{flex-wrap:wrap;justify-content:center;gap:10px;max-height:300px;display:flex;overflow-y:auto}.tribute-card{cursor:pointer;background:#2a2a2a;border:2px solid #0000;border-radius:6px;padding:8px;transition:border-color .2s}.tribute-card-inner{flex-direction:column;align-items:center;gap:4px;font-size:12px;display:flex}.tribute-card-inner.selected{background:#1b3a1b;border-color:#4caf50}.card-detail-modal{width:100%;max-width:min(1180px,100vw - 40px);max-height:min(92vh,900px);box-shadow:none;background:0 0;border:0;border-radius:0;grid-template-columns:minmax(280px,42vh) minmax(320px,460px);justify-content:center;align-items:center;gap:24px;padding:0;display:grid;position:relative;overflow:visible}.detail-close{z-index:2;background:#1e282e;border-color:#7ab8d057;position:absolute;top:-10px;right:-10px}.detail-image img{object-fit:cover;border:1px solid #f7c94873;border-radius:8px;width:min(42vh,420px);max-width:42vw;height:min(61.3vh,613px);max-height:calc(92vh - 24px);box-shadow:0 26px 80px #0000009e}.detail-image .card-placeholder{width:min(42vh,420px)!important;height:min(61.3vh,613px)!important}.detail-info{background:#12181cf5;border:1px solid #758b9a4d;border-radius:8px;flex-direction:column;gap:12px;min-width:0;max-height:min(82vh,720px);padding:22px;display:flex;overflow:auto;box-shadow:0 22px 70px #0000006b}.detail-heading{flex-direction:column;gap:4px;display:flex}.detail-info h2{color:#fff;margin:0;font-size:26px;line-height:1.15}.detail-heading span{color:#8f9aa3;text-transform:uppercase;font-size:12px}.detail-badges{flex-wrap:wrap;gap:6px;display:flex}.detail-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.detail-meta-row{background:#0e1418c7;border:1px solid #758b9a33;border-radius:5px;flex-direction:column;gap:3px;min-width:0;padding:8px;display:flex}.detail-meta-row span{color:#8fa0ab;text-transform:uppercase;font-size:10px;font-weight:800}.detail-meta-row strong{color:#e8eef2;overflow-wrap:anywhere;font-size:12px}.badge{text-transform:uppercase;border-radius:4px;padding:4px 8px;font-size:11px;font-weight:700}.badge.type-monster{color:#1a1a1a;background:#ff9800}.badge.type-spell{color:#1a1a1a;background:#4caf50}.badge.type-trap{color:#fff;background:#e91e63}.badge.attr{color:#fff;background:#ff5722}.badge.race{color:#fff;background:#03a9f4}.badge.archetype{color:#fff;background:#7c4dff}.detail-stats{flex-wrap:wrap;gap:8px;display:flex}.detail-stats span{color:#d7dee5;background:#20252a;border:1px solid #3b444d;border-radius:4px;padding:6px 8px;font-size:13px;font-weight:700}.detail-desc{color:#d7dee5;background:#20252a;border:1px solid #303942;border-radius:4px;max-height:200px;padding:12px;font-size:13px;line-height:1.5;overflow-y:auto}.detail-effects h4{color:#d7dee5;margin:0 0 6px;font-size:14px}.effect-line{color:#ccc;border-bottom:1px solid #303942;padding:8px 0;font-size:12px}.effect-line:last-child{border-bottom:none}.chain-info{flex-direction:column;gap:2px;display:flex}.chain-name{color:#fff;font-size:13px;font-weight:700}.chain-desc{color:#aaa;font-size:11px}@media (width<=600px){.card-detail-modal{grid-template-columns:1fr;width:calc(100vw - 24px);padding:14px}.detail-info{padding-right:0}.detail-image{justify-content:center;display:flex}.detail-image img{width:150px;height:219px}}.material-selected{border-radius:4px;border:3px solid #4caf50!important}.tuner-selected{border-radius:4px;border:3px solid #2196f3!important}.duel-table-shell{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:0;height:100%;min-height:0;display:grid;overflow:hidden}.duel-table-shell .board{background:radial-gradient(circle,#2f6f8f2e,#0000 58%),linear-gradient(135deg,#101b22f5,#060a0dfa);min-width:0;box-shadow:inset 0 0 70px #7ab8d014,0 20px 50px #00000047}.manual-action-rail{flex-direction:column;gap:8px;min-width:0;min-height:0;display:flex}.rail-panel{background:linear-gradient(145deg,#181f25f5,#0b0f12f5);border:1px solid #758b9a38;border-radius:8px;padding:9px 10px;box-shadow:0 14px 32px #0000003d}.rail-hero{background:radial-gradient(circle at 100% 0,#f7c94824,#0000 55%),linear-gradient(145deg,#1f262bfa,#0c1014fa);border-color:#f7c94852}.rail-kicker{color:#d89a36;letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800}.rail-panel h3,.rail-panel h4,.rail-panel p{margin:0}.rail-panel h3{color:#f5f7fa;margin-top:4px;font-size:19px}.rail-panel h4{color:#eef3f7;margin-bottom:5px;font-size:14px}.rail-panel p{color:#a9b7c0;font-size:12px;line-height:1.45}.rail-button-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px;display:grid}.rail-button-grid button{color:#e8eef2;background:#1e282e;border-color:#7ab8d038;padding:6px;font-size:11px}.rail-button-grid button:hover{background:#263640;border-color:#f7c94870}.rail-log{min-height:0;margin-top:auto;overflow:hidden}.rail-hints p+p{margin-top:6px}.rail-log-entries{flex-direction:column;gap:4px;max-height:118px;display:flex;overflow:auto}.rail-log-entries p{color:#c2ccd4;font-size:11px}.zone.card-zone:hover,.zone-button:hover{border-color:#f7c948e6}.card-in-zone img,.card-in-zone .card-placeholder,.hand-card-image img,.deck-card-tile img,.catalog-card img{filter:saturate(1.04)contrast(1.02)}.card-in-zone img,.card-in-zone .card-placeholder{max-width:100%;max-height:100%;width:calc(var(--zone-w) - 8px)!important;height:calc(var(--zone-h) - 10px)!important}.card-in-zone.defense-position img,.card-in-zone.defense-position .card-placeholder{transform-origin:50%;max-width:100%;max-height:100%;width:calc(var(--zone-w) - 8px)!important;height:calc(var(--zone-h) - 10px)!important;object-fit:contain!important}.card-in-zone.defense-position .face-down-overlay{width:calc(var(--zone-w) - 8px);height:calc(var(--zone-h) - 10px);transform-origin:50%;background-size:cover;top:50%;left:50%;transform:translate(-50%,-50%)rotate(90deg)}.player-area.field-top .card-in-zone img,.player-area.field-top .card-in-zone .card-placeholder,.player-area.field-top .deck-master-zone .deck-master-card img,.player-area.field-top .deck-master-zone .deck-master-card .card-placeholder,.player-area.field-top .card-in-zone .face-down-overlay{transform-origin:50%;transform:rotate(180deg)}.player-area.field-top .card-in-zone.defense-position img,.player-area.field-top .card-in-zone.defense-position .card-placeholder,.player-area.field-top .card-in-zone.defense-position .face-down-overlay{transform:rotate(270deg)}.player-area.field-top .card-in-zone.defense-position .face-down-overlay{transform:translate(-50%,-50%)rotate(270deg)}.card-stats{display:none}.log-chat-button{z-index:90;color:#e8eef2;width:42px;height:38px;box-shadow:none;background:#1e282e;border-color:#7ab8d057;padding:0;position:fixed;bottom:16px;right:16px}.surrender-button{z-index:90;color:#ffd8cf;min-width:96px;height:38px;box-shadow:none;background:linear-gradient(135deg,#9b2c2c52,#9b2c2c24),#171d21cc;border-color:#e07a5f7a;padding:0 12px;font-size:12px;position:fixed;bottom:60px;right:16px}.surrender-button:hover{background:linear-gradient(135deg,#9b2c2c70,#9b2c2c33),#171d21db}.domain-camera-button{z-index:92;color:#e8eef2;background:#1e282e;border-color:#7ab8d057;min-width:86px;height:38px;padding:0 12px;font-size:12px;position:fixed;bottom:16px;right:68px}.domain-camera-button:hover{color:#fff;background:#2f6f8f}.domain-multiplayer-duel .log-chat-button,.domain-multiplayer-duel .domain-camera-button{width:42px;min-width:42px;height:38px;padding:0;bottom:auto;right:14px}.domain-multiplayer-duel .surrender-button{min-width:100px;height:38px;padding:0 10px;top:calc(50% + 64px);bottom:auto;right:14px}.domain-multiplayer-duel .domain-camera-button{font-size:0;top:calc(50% - 48px)}.domain-multiplayer-duel .domain-camera-button:before{content:"";box-sizing:border-box;border:2px solid #fff;border-radius:3px;width:19px;height:13px;margin:0 auto;display:block}.domain-multiplayer-duel .domain-camera-button:after{content:"";box-sizing:border-box;border:2px solid #fff;border-radius:50%;width:8px;height:8px;position:absolute;top:14px;left:17px}.domain-multiplayer-duel .log-chat-button{top:calc(50% + 8px)}.domain-camera-popover{z-index:225;position:fixed;bottom:62px;right:68px}.domain-multiplayer-duel .domain-camera-popover{top:calc(50% - 136px);bottom:auto;right:64px}.domain-camera-modal{background:#171d21;border:1px solid #758b9a57;border-radius:8px;flex-direction:column;gap:10px;width:min(360px,100vw - 32px);padding:12px;display:flex;box-shadow:0 22px 70px #0000008f}.domain-camera-modal-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.domain-camera-modal-header h3{margin:0;font-size:16px}.domain-camera-modal-header button{padding:6px 9px}.domain-camera-options,.domain-camera-zoom-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.domain-camera-options button,.domain-camera-zoom-options button{color:#e8eef2;text-overflow:ellipsis;white-space:nowrap;background:#1e282e;border-color:#7ab8d03d;min-width:0;padding:9px 10px;font-size:12px;overflow:hidden}.domain-camera-options button.active,.domain-camera-zoom-options button.active{color:#fff;background:#2f6f8f;border-color:#4aa3c7}.log-chat-button:before{content:"";box-sizing:border-box;border:2px solid #fff;border-radius:4px;width:18px;height:13px;margin:0 auto;display:block}.log-chat-button:after{content:"";border-bottom:2px solid #fff;border-left:2px solid #fff;width:7px;height:7px;position:absolute;bottom:9px;left:13px;transform:skew(-18deg)}.log-chat-button:hover{background:#2f6f8f}.log-chat-popover{z-index:220;position:fixed;bottom:62px;right:16px}.domain-multiplayer-duel .log-chat-popover{top:50%;bottom:auto;right:64px;transform:translateY(-50%)}.log-chat-modal{background:#171d21;border:1px solid #758b9a57;border-radius:8px;flex-direction:column;width:min(430px,100vw - 32px);height:min(680px,100vh - 96px);max-height:min(680px,100vh - 96px);display:flex;box-shadow:0 22px 70px #0000008f}.log-chat-header{border-bottom:1px solid #758b9a38;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.log-chat-header h3,.log-chat-body h4,.log-chat-entries p{margin:0}.log-chat-header h3{font-size:18px}.log-chat-header button{padding:6px 9px}.log-chat-body{flex:1;grid-template-columns:minmax(0,1fr);gap:12px;min-height:0;padding:12px;display:grid}.log-chat-body section{background:#101519;border:1px solid #758b9a38;border-radius:6px;flex-direction:column;gap:8px;min-height:0;max-height:none;padding:10px;display:flex}.log-chat-entries{flex-direction:column;flex:1;gap:5px;min-height:0;display:flex;overflow:auto}.log-chat-entries p,.chat-placeholder{color:#b9c5ce;font-size:12px;line-height:1.4}.chat-placeholder{border:1px dashed #758b9a47;border-radius:4px;flex:1;padding:10px}.chat-compose{grid-template-columns:1fr auto;gap:8px;display:grid}.deck-action-popover{z-index:230;position:absolute;top:26px;right:8px}.deck-action-modal{background:#171d21;border:1px solid #758b9a57;border-radius:8px;flex-direction:column;width:min(460px,100vw - 32px);max-height:min(520px,100vh - 96px);display:flex;box-shadow:0 18px 44px #0000007a}.deck-action-header,.deck-action-controls,.deck-action-card{align-items:center;gap:8px;display:flex}.deck-action-header{border-bottom:1px solid #758b9a38;justify-content:space-between;padding:10px}.deck-action-header h3{margin:0;font-size:14px}.deck-action-controls{border-bottom:1px solid #758b9a29;padding:8px 10px}.deck-action-list{flex-direction:column;gap:6px;min-height:0;padding:10px;display:flex;overflow:auto}.deck-action-card{background:#101519;border:1px solid #758b9a38;border-radius:6px;justify-content:space-between;padding:8px}.deck-action-card span{color:#e8eef2;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:12px;overflow:hidden}.deck-action-card button,.deck-action-controls button{color:#e8eef2;background:#1e282e;border-color:#7ab8d03d;padding:7px 9px;font-size:12px}.deck-action-card button:hover,.deck-action-controls button:hover{color:#fff;background:#2f6f8f}.deck-quick-menu{z-index:220;background:#0f1418f5;border:1px solid #758b9a57;border-radius:6px;flex-direction:column;gap:5px;width:178px;padding:10px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 18px 42px #0000007a}.deck-quick-menu.self-menu{bottom:clamp(170px,22vh,250px);right:clamp(220px,21vw,410px)}.deck-quick-menu.opponent-menu{top:clamp(130px,18vh,220px);left:clamp(220px,21vw,410px)}.deck-quick-menu button{color:#e8eef2;text-align:left;background:#1e282e;border-color:#7ab8d03d;justify-content:flex-start;min-width:0;padding:8px 9px;font-size:12px}.deck-browser-overlay{z-index:260}.deck-browser-modal{background:#151b1f;border:1px solid #758b9a5c;border-radius:8px;flex-direction:column;width:min(1120px,100vw - 36px);height:min(820px,100vh - 42px);max-height:min(820px,100vh - 42px);display:flex;overflow:hidden;box-shadow:0 24px 80px #00000094}.deck-browser-header,.deck-browser-toolbar{border-bottom:1px solid #758b9a33;align-items:center;gap:10px;display:flex}.deck-browser-header{justify-content:space-between;padding:13px 15px}.deck-browser-header h3,.deck-browser-header span,.deck-browser-actions h4,.deck-browser-actions p{margin:0}.deck-browser-header h3{font-size:18px}.deck-browser-header span,.deck-browser-actions p{color:#9aa8b2;font-size:12px}.deck-browser-header button{color:#e8eef2;background:#1e282e;border-color:#7ab8d03d;padding:6px 9px}.deck-browser-toolbar{flex-wrap:wrap;padding:10px 12px}.deck-browser-toolbar input{flex:1;min-width:180px}.deck-browser-toolbar select{width:132px}.deck-browser-toolbar button{white-space:nowrap;color:#e8eef2;background:#1e282e;border-color:#7ab8d03d;padding:8px 10px}.deck-browser-header button:hover,.deck-browser-toolbar button:hover,.deck-quick-menu button:hover{color:#fff;background:#2f6f8f}.deck-browser-body{background:#0f1417;flex:1;min-height:0;overflow:hidden}.deck-browser-grid{scrollbar-gutter:stable;overscroll-behavior:contain;background:#0f1417;grid-template-columns:repeat(auto-fill,minmax(106px,126px));place-content:start;gap:20px 16px;height:100%;min-height:0;padding:24px 22px 96px;display:grid;overflow:hidden auto}.deck-browser-card{color:#e8eef2;cursor:pointer;background:0 0;border:0;outline:none;justify-content:center;align-items:center;min-width:0;min-height:158px;padding:0;display:flex;position:relative;overflow:visible}.deck-browser-card:hover,.deck-browser-card.selected{z-index:24}.deck-browser-card-image{transform-origin:bottom;transition:transform .14s,filter .14s}.deck-browser-card:hover .deck-browser-card-image,.deck-browser-card.selected .deck-browser-card-image{transform:scale(1.08)}.deck-browser-card-image img,.deck-browser-card-image .card-placeholder{width:104px!important;height:152px!important}.deck-card-actions{z-index:330;background:#14191dfa;border:1px solid #758b9a52;border-radius:6px;flex-direction:column;gap:5px;width:220px;max-height:min(360px,100vh - 24px);padding:10px;display:flex;position:fixed;overflow:auto;transform:translate(-50%);box-shadow:0 18px 44px #0000007a}.deck-card-actions button{color:#e8eef2;text-align:left;background:#1e282e;border-color:#7ab8d03d;justify-content:flex-start;width:100%;padding:8px 9px;font-size:12px}.deck-card-actions button:hover{color:#fff;background:#2f6f8f}.deck-browser-empty{color:#9aa8b2;text-align:center;border:1px dashed #758b9a47;border-radius:6px;padding:16px}@media (width<=1180px){.duel-board{--zone-w:clamp(52px, min(5.2vw, 8.1vh), 84px);--zone-gap:clamp(12px, min(1.15vw, 2vh), 18px);--table-gap:clamp(4px, min(.5vw, .8vh), 8px);--board-max-w:min(100%, 980px)}.duel-board.domain-multiplayer-duel{--zone-w:clamp(42px, min(4vw, 6.4vh), 62px);--zone-gap:clamp(8px, min(.8vw, 1.4vh), 13px);--table-gap:clamp(3px, min(.36vw, .56vh), 6px)}.header{grid-template-columns:minmax(120px,1fr) minmax(0,auto) minmax(240px,1fr);gap:8px;padding:6px 8px;left:10px;right:10px}.phase-buttons,.status-chips{flex-wrap:wrap}.phase-buttons button{min-width:38px;padding:6px 7px}.duel-board>.toast{top:108px}.randomizer-controls{flex-direction:row;gap:8px;top:auto;bottom:14px;left:12px;transform:none}.randomizer-result{min-width:96px;top:auto;bottom:48px;left:0;transform:none}.log-chat-button,.domain-camera-button{bottom:14px}.surrender-button{bottom:58px}.domain-camera-popover{bottom:60px}.manual-chain-panel{width:clamp(220px,28vw,300px);min-height:320px;right:12px}.manual-chain-card{width:clamp(132px,16vw,180px)}.duel-table-shell{grid-template-columns:minmax(0,1fr)}.manual-action-rail{display:flex}.rail-hints{margin-top:0}}@media (width<=980px),(height<=820px){.duel-board{--zone-w:clamp(48px, min(6vw, 8.2vh), 72px);--zone-gap:clamp(10px, min(1vw, 1.7vh), 14px);--table-gap:4px;--board-max-w:100%;height:auto;min-height:100dvh;overflow:auto}.duel-board.domain-multiplayer-duel{--zone-w:clamp(38px, min(4.2vw, 5.8vh), 54px);--zone-gap:clamp(6px, min(.7vw, 1.15vh), 10px);--table-gap:3px}.header{grid-template-columns:1fr;justify-items:center;min-height:0;top:6px;left:8px;right:8px}.header-actions-game,.phase-buttons,.status-chips{justify-content:center;align-items:center;width:100%}.opponent-hand-backs{min-height:60px;transform:translateY(-12px)}.duel-board>.toast{top:126px}.duel-ended-banner{justify-content:center;width:min(100vw - 24px,480px);top:104px}.board{padding-top:96px;padding-bottom:92px}.domain-multiplayer-board,.board.domain-camera-focus-me,.domain-camera-zoom{padding-top:108px;padding-bottom:92px}.player-area.self .player-stats,.player-area.opponent .player-stats{left:10px;right:auto}.player-area.self .player-stats{bottom:10px}.player-area.opponent .player-stats{top:10px}.duel-player-avatar{width:44px;height:44px;font-size:15px}.player-label{font-size:14px}.player-identity strong,.player-lp-row strong,.lp-editor{font-size:18px}.hand{min-height:92px;margin-bottom:0;padding-inline:6px}.hand-cards{min-height:96px;padding-top:2px;transform:none}.hand-card{width:clamp(62px,8vw,92px);height:clamp(90px,11.7vw,132px)}.hand-card-image,.hand-card-image img,.hand-card-image .card-placeholder{width:clamp(60px,7.6vw,88px)!important;height:clamp(88px,11.1vw,128px)!important}.field-card-actions,.hand-card-actions{width:min(220px,100vw - 24px)}.manual-chain-panel{gap:8px;width:min(420px,100vw - 24px);min-height:0;inset:auto auto 62px 50%;transform:translate(-50%)}.manual-chain-stack{min-height:170px}.manual-chain-card{width:clamp(112px,20vw,156px);right:clamp(10px,4vw,28px)}.manual-chain-controls{grid-template-columns:minmax(0,1fr) auto}.manual-chain-controls div{grid-column:1/-1}.domain-multiplayer-duel .log-chat-button,.domain-multiplayer-duel .domain-camera-button{top:50%;bottom:auto}.domain-multiplayer-duel .domain-camera-button{right:12px;transform:translateY(calc(-50% - 24px))}.domain-multiplayer-duel .log-chat-button{right:12px;transform:translateY(calc(24px - 50%))}.domain-multiplayer-duel .surrender-button{top:50%;bottom:auto;right:12px;transform:translateY(calc(72px - 50%))}.domain-multiplayer-duel .randomizer-controls{flex-direction:column;gap:8px;top:50%;bottom:auto;left:12px;transform:translateY(-50%)}.domain-multiplayer-duel .randomizer-result{top:50%;bottom:auto;left:48px;transform:translateY(-50%)}.domain-multiplayer-duel .domain-camera-popover,.domain-multiplayer-duel .log-chat-popover{top:50%;bottom:auto;right:58px;transform:translateY(-50%)}.domain-multiplayer-duel .log-chat-modal{width:min(420px,100vw - 24px);height:min(60vh,520px);max-height:min(60vh,520px)}.domain-camera-grid{--zone-w:clamp(38px, min(4.2vw, 5.8vh), 54px);--zone-gap:clamp(6px, min(.7vw, 1.15vh), 10px)}.domain-camera-seat{--zone-w:clamp(38px, min(4.2vw, 5.8vh), 54px);--zone-gap:clamp(6px, min(.7vw, 1.15vh), 10px);padding:26px 8px 38px}.domain-camera-seat .player-stats{max-width:min(180px,100% - 16px)}.domain-camera-seat>.hand{width:min(380px,100% - 48px);min-height:72px}.domain-camera-seat>.hand .hand-cards{min-height:72px}.domain-seat-hand{max-width:calc(100% - 128px)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0 .zones,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3 .zones{transform:translateY(-42px)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-1 .zones,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-2 .zones{transform:translateY(42px)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0>.hand,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3>.hand{bottom:46px;transform:translate(-50%)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-1 .domain-seat-hand,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-2 .domain-seat-hand{top:46px;transform:translate(-50%)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3 .domain-seat-hand{bottom:46px;transform:translate(-50%)}}@media (width<=760px){.duel-board{--zone-w:42px;--zone-gap:12px;padding:0}.duel-table-shell{grid-template-columns:1fr}.manual-action-rail{display:none}.header{gap:6px;padding:6px}.phase-buttons button{min-width:34px;padding:5px 6px;font-size:12px}.status-chip{padding:4px 7px;font-size:11px}.board{padding-top:112px;padding-bottom:92px}.zones{scrollbar-width:thin;padding-bottom:4px;overflow:auto visible}.field-grid{width:max-content;min-width:100%}.player-stats,.action-mode-bar{flex-direction:column;align-items:stretch}.duel-board.domain-multiplayer-duel{--zone-w:32px;--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:6px;--zone-row-gap:4px;--board-max-w:100%;height:auto;min-height:100dvh;overflow:auto}.domain-multiplayer-duel .field-grid{grid-template-columns:var(--zone-w) calc((var(--zone-w) * 5) + (var(--zone-row-gap) * 4)) var(--zone-w);min-width:0}.domain-multiplayer-duel .side-zones{width:var(--zone-w)}.domain-multiplayer-duel .pile-zone-pair{flex-direction:column}.domain-multiplayer-duel .duel-table-shell{min-height:100%;overflow:visible}.domain-multiplayer-duel .domain-multiplayer-board{min-height:920px;padding-top:120px;padding-bottom:92px;overflow:visible}.domain-multiplayer-duel .domain-camera-table{padding-top:0}.domain-camera-grid{--zone-w:30px;--zone-h:calc(var(--zone-w) * 1.42);--zone-gap:5px;--zone-row-gap:4px;grid-template-rows:repeat(4,minmax(230px,1fr));grid-template-columns:1fr;height:auto;min-height:1080px}.domain-camera-grid:before{display:none}.domain-camera-grid:after{top:25%;box-shadow:0 270px #e0eaf02e,0 540px #e0eaf02e}.domain-camera-seat{--zone-w:30px;--zone-gap:5px;--zone-row-gap:4px;padding:36px 8px 54px;grid-column:1!important}.domain-camera-seat.camera-seat-0{grid-row:1}.domain-camera-seat.camera-seat-1{grid-row:2}.domain-camera-seat.camera-seat-2{grid-row:3}.domain-camera-seat.camera-seat-3{grid-row:4}.domain-camera-seat .player-stats{max-width:calc(100% - 20px);padding:0}.domain-camera-seat.camera-seat-0 .zones,.domain-camera-seat.camera-seat-3 .zones{transform:translateY(-12px)}.domain-camera-seat.camera-seat-1 .zones,.domain-camera-seat.camera-seat-2 .zones{transform:translateY(12px)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat .player-area .player-stats{max-width:calc(100% - 20px);padding:0}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0 .player-area .player-stats,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-1 .player-area .player-stats{left:10px;right:auto}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-2 .player-area .player-stats,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3 .player-area .player-stats{left:auto;right:10px}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0 .player-area .player-stats,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3 .player-area .player-stats{top:auto;bottom:10px}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-1 .player-area .player-stats,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-2 .player-area .player-stats{top:10px;bottom:auto}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0 .zones,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-3 .zones{transform:translateY(-30px)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-1 .zones,.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-2 .zones{transform:translateY(30px)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat>.hand{width:min(300px,100% - 24px);min-height:72px;bottom:22px;left:50%;right:auto;transform:translate(-50%)}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat.camera-seat-0>.hand{bottom:0}.domain-multiplayer-duel .domain-camera-table .domain-camera-seat>.hand .hand-cards{justify-content:center;min-height:80px;padding-top:6px;overflow:visible}.domain-multiplayer-duel .domain-camera-table .hand-card{width:44px;height:64px}.domain-multiplayer-duel .domain-camera-table .hand-card-image,.domain-multiplayer-duel .domain-camera-table .hand-card-image img,.domain-multiplayer-duel .domain-camera-table .hand-card-image .card-placeholder{width:42px!important;height:61px!important}.domain-seat-hand{justify-content:center;max-width:calc(100% - 132px);min-height:58px}.domain-seat-hand-back{width:38px;height:56px}.domain-camera-seat.camera-seat-1 .domain-seat-hand,.domain-camera-seat.camera-seat-2 .domain-seat-hand{top:34px;left:50%;right:auto;transform:translate(-50%)}.domain-camera-seat.camera-seat-3 .domain-seat-hand{bottom:34px;left:50%;right:auto;transform:translate(-50%)}.domain-opponent-grid{grid-template-columns:1fr;max-height:none;padding-inline:0;overflow:visible}.domain-opponent-grid .player-area{--zone-w:30px;--zone-gap:5px;--zone-row-gap:4px}.manual-chain-panel{width:calc(100vw - 20px);bottom:58px}.manual-chain-stack{min-height:150px}.manual-chain-card{width:clamp(100px,30vw,136px)}.domain-multiplayer-duel .domain-camera-popover,.domain-multiplayer-duel .log-chat-popover{width:min(100vw - 20px,360px)}.domain-multiplayer-duel .domain-camera-button{transform:translateY(calc(-50% - 22px))}.domain-multiplayer-duel .log-chat-button{transform:translateY(calc(22px - 50%))}.domain-multiplayer-duel .surrender-button{transform:translateY(calc(68px - 50%))}}.deck-builder-page{width:min(1480px,100%);height:auto;min-height:calc(100vh - 88px);display:block;overflow:visible}.deck-builder-layout{grid-template:"search builder""search saved"/minmax(420px,.9fr) minmax(600px,1.1fr);align-items:start;gap:16px;display:grid;overflow:visible}.deck-left-column,.deck-right-column{flex-direction:column;gap:16px;min-width:0;display:flex}.card-search-panel,.deck-builder-main,.deck-import-panel,.deck-list-panel{z-index:auto;width:100%;min-width:0;position:static}.card-search-panel{grid-area:search}.deck-builder-main{grid-area:builder}.deck-list-panel{grid-area:saved}.card-search-panel{background:0 0;border:0;border-radius:0;padding:0}.card-catalog-grid{scrollbar-gutter:stable;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));align-content:start;gap:12px 10px;height:min(72vh,720px);min-height:420px;max-height:720px;padding:4px 10px 18px 4px;display:grid;overflow:hidden auto}.catalog-card{aspect-ratio:.684;background:0 0;border:0;border-radius:4px;width:100%;min-width:0;padding:0;display:block;position:relative;overflow:visible}.catalog-card img{object-fit:contain;border-radius:3px;width:100%;height:100%;transition:transform .14s,filter .14s;display:block}.catalog-card:not(.is-previewed):hover img{transform:none}.catalog-card.is-previewed img{filter:blur(5px)saturate(.8)brightness(.72)}.catalog-card.is-previewed{outline-offset:3px;outline:2px solid #f7c948;box-shadow:0 0 0 1px #f7c94859,0 16px 28px #0000006b}.catalog-card:after{content:"+";color:#f7fbff;text-shadow:0 2px 16px #000000b3;opacity:0;pointer-events:none;place-items:center;font-size:42px;font-weight:800;line-height:1;transition:opacity .12s;display:grid;position:absolute;inset:0}.catalog-card.is-previewed:after{opacity:1}.deck-card-tile{background:0 0;border:0;padding:0;position:relative;overflow:visible}.deck-card-tile img{transition:transform .14s,filter .14s}.deck-card-tile:hover img{transform:none}.deck-card-count{color:#f7c948;text-align:center;z-index:2;pointer-events:none;background:#000000c7;border:1px solid #f7c94866;border-radius:3px;min-width:18px;padding:2px 6px;font-size:11px;font-weight:800;line-height:1;position:absolute;top:4px;right:4px}.deck-hover-preview{z-index:42;pointer-events:none;width:clamp(330px,23vw,430px);position:fixed;transform:translateY(-50%)}.deck-hover-preview img{border-radius:10px;width:100%;height:auto;display:block;box-shadow:0 30px 58px #00000094}.zone.m-zone,.zone.st-zone{background:linear-gradient(135deg,#1a262db3,#080c10d1),repeating-linear-gradient(90deg,#7ab8d01a 0 1px,#0000 1px 12px)}.builder-card-actions{z-index:35;background:#101418f7;border:1px solid #758b9a59;border-radius:6px;flex-direction:column;gap:6px;width:132px;padding:8px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 18px 44px #0000007a}.builder-card-actions button{justify-content:center;width:100%}.deck-section-stack{flex-direction:column;gap:14px;padding-right:0;display:flex;overflow:visible}.deck-section{background:#0e1418db;border-color:#7ea8c238;margin-bottom:0;padding:0}.deck-section-body{transition:grid-template-rows .35s cubic-bezier(.4,0,.2,1)}.deck-section-body-inner{min-height:0;overflow:hidden}.deck-card-strip{grid-template-columns:repeat(auto-fill,minmax(74px,90px));align-content:start;gap:12px;min-height:126px;padding:0 14px 14px}.deckmaster-empty-slot{color:#f4cb5f;background:#0f14198c;border:1px dashed #f7c94885;border-radius:6px;align-content:center;justify-items:center;gap:6px;width:90px;height:132px;padding:8px;display:grid}.deckmaster-empty-slot span{font-size:11px;font-weight:600}.deckmaster-empty-slot small{color:#c3ccd4;text-align:center;font-size:9px;line-height:1.2}.deck-section-main .deck-card-strip{min-height:300px}.deck-section.compact .deck-card-strip{grid-template-columns:repeat(auto-fill,minmax(72px,88px));min-height:124px}.deck-card-tile img{aspect-ratio:.68;object-fit:cover;width:100%;height:auto;display:block}.deck-section-header:hover{background:0 0}.deck-count-pill{color:#d9e2e8;background:#0a0e10bf;border:1px solid #758b9a5c;border-radius:999px;justify-content:center;align-items:center;min-width:72px;height:24px;padding:0 8px;font-size:12px;display:inline-flex}.deck-section-main .deck-count-pill{border-color:#f7c94885}.deck-section-extra .deck-count-pill{border-color:#7db7ff85}.deck-section-side .deck-count-pill{border-color:#9d7fff85}.deck-import-panel textarea{min-height:190px}.deck-import-modal{width:min(740px,100vw - 28px);padding:22px}.deck-import-body{gap:12px;display:grid}.deck-import-textarea-wrap{color:#9fb0ba;gap:6px;font-size:12px;display:grid}.deck-modal-actions{justify-content:flex-end;gap:8px;margin-top:14px;display:flex}.deck-saved-modal{width:min(900px,100vw - 28px);max-height:min(760px,100vh - 28px);overflow:auto}.deck-saved-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:start;gap:14px;margin-top:8px;display:grid}.deck-saved-list-wrap{min-height:0}.deck-list{max-height:420px;overflow:auto}.deck-detail{min-height:220px}.deck-detail-placeholder{color:#9db0bc;font-size:13px}.builder-toolbar{grid-template-columns:minmax(220px,1fr) minmax(150px,220px) minmax(140px,auto)}.builder-toolbar label{min-width:0}@media (width<=1180px){.deck-builder-layout{grid-template-columns:1fr}.card-catalog-grid{height:420px;max-height:420px}.builder-toolbar,.deck-saved-layout{grid-template-columns:1fr}.deck-hover-preview{display:none}}
