.market-panel{background:#102b37;border:1px solid #47747b;border-radius:18px;padding:22px;margin:16px 0;color:#d5e8e9}.market-deck-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;margin:20px 0}.market-deck-card{display:grid;grid-template-columns:minmax(100px,36%) 1fr;background:#102b37;border:1px solid #47747b;border-radius:18px;overflow:hidden;color:#d5e8e9}.market-deck-cover{position:relative;padding:16px;background:#081d29}.market-deck-cover img{width:100%;aspect-ratio:5/7;object-fit:contain}.market-deck-cover .market-badge{display:block;margin-top:12px;text-align:center;font-size:14px}.market-deck-info{padding:20px;min-width:0}.market-deck-info h3{font-size:22px;color:#f5d992;margin:0 0 12px;overflow-wrap:anywhere}.market-deck-info p{font-size:16px;line-height:1.5}.market-deck-price{font-size:20px;color:#a1ddd1}.market-deck-info button{width:100%;margin-top:12px;min-height:44px}.market-deck-notes{white-space:pre-wrap;overflow-wrap:anywhere}.market-deck-composition{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:16px}.market-deck-composition figure{margin:0;min-width:0}.market-deck-composition img{width:100%;aspect-ratio:5/7;object-fit:contain}.market-deck-composition figcaption{display:grid;gap:5px;font-size:14px;overflow-wrap:anywhere;margin-top:8px}.market-deck-form textarea{width:100%;resize:vertical}.market-deck-form select{width:100%}.market-grid[hidden],.market-deck-grid[hidden]{display:none}@media(max-width:480px){.market-deck-card{grid-template-columns:110px 1fr}.market-deck-cover{padding:10px}.market-deck-info{padding:14px}.market-deck-info h3{font-size:19px}.market-deck-composition{grid-template-columns:repeat(2,minmax(0,1fr))}}.market-panel h2,.market-dialog h2{color:#f5d992;margin-top:0}.market-share form,.market-tools,.market-link,.market-tabs{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.market-share form>label,.market-tools label{flex:1;min-width:180px}.market-share form{border-top:1px solid #39606a;padding-top:16px}.market-link{margin-top:20px}.market-link label{flex:1;min-width:200px}.market-link input{width:100%}#market-view label,.market-dialog label{display:grid;gap:7px;margin:12px 0;color:#d9eded;font-size:15px}#market-view input,#market-view select,.market-dialog input,.market-dialog select,.market-dialog textarea{background:#081d29;color:#e2f4f4;border:1px solid #62838c;min-height:44px;border-radius:9px;padding:10px;font:inherit;max-width:100%}#market-view .market-check,.market-dialog .market-check{display:flex;align-items:center;gap:10px}.market-check input{width:22px;min-height:22px}.market-tabs{margin:24px 0 16px}.market-tabs button{padding:12px 18px;border:1px solid #6e9c9d;border-radius:24px;background:#102938;color:#cfebed}.market-tabs button[aria-pressed=true]{background:#a1ddd1;color:#082330}.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;margin:20px 0}.market-card{min-width:0;display:flex;flex-direction:column;text-align:left;background:#102733;border:1px solid #53888d;border-radius:16px;padding:12px;color:#d4eaee;gap:12px}.market-card img{width:100%;aspect-ratio:5/7;object-fit:contain;border-radius:10px}.market-card span{display:grid;gap:8px}.market-card strong{font-size:18px}.market-card b{color:#edcf8c;font-size:14px}.market-card small{font-size:13px;line-height:1.4}.market-card:hover,.market-card:focus-visible{outline:2px solid #9bddd3;outline-offset:2px}.market-plus{margin-top:28px}.market-plus summary{cursor:pointer;font-weight:bold}.market-request{display:flex;gap:20px;background:#102b37;border:1px solid #426b77;border-radius:18px;padding:20px;margin:18px 0;color:#d8ecee}.market-request>img{width:95px;height:133px;object-fit:contain;align-self:start}.market-request>div{min-width:0}.market-request p{overflow-wrap:anywhere}.market-badge{display:inline-block;border:1px solid #739998;border-radius:24px;color:#f1d79b;padding:5px 12px;font-size:13px}.market-dialog{background:#0d2935;color:#def0ed;border:1px solid #80bab6;max-width:780px;max-height:90dvh;overflow:auto;padding:24px}.market-dialog header{display:flex;align-items:start;justify-content:space-between;gap:18px}.market-dialog header button{min-width:44px;min-height:44px;border-radius:50%;background:#284656;color:#fff;font-size:25px}.market-dialog::backdrop{background:#02121ccb}.market-dialog .primary,.market-dialog .secondary{margin-top:10px}.market-dialog h2{font-size:24px}.market-dialog p{line-height:1.55}.market-dialog form>button{width:100%}.market-edit{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:24px}.market-edit img{width:100%;max-height:330px;object-fit:contain}.market-stepper{display:flex;gap:8px}.market-stepper input{width:90px;text-align:center}.market-stepper button{width:44px;min-height:44px;background:#294b58;color:#def4ee;border-radius:9px;font-size:24px}.market-dialog details{background:#153a44;padding:12px;border-radius:12px;margin:14px 0}.market-dialog summary{cursor:pointer}.market-dialog a,#market-view a{color:#a4e1d8}.chat-dialog{max-width:600px}.chat-messages{height:38dvh;min-height:120px;overflow:auto;overscroll-behavior:contain;background:#071e29;padding:14px;border-radius:12px}.chat-messages article{padding:12px;background:#173747;border-radius:12px;margin:9px 24px 9px 0;overflow-wrap:anywhere}.chat-messages article.mine{background:#1e4b4a;margin:9px 0 9px 24px}.chat-messages small{margin-left:12px;color:#abcbd1}.chat-messages p{white-space:pre-wrap;margin:7px 0}.chat-status{min-height:20px}.chat-dialog textarea{resize:vertical}.chat-messages button{background:#314951;color:#ddd;padding:7px;border-radius:8px}@media(max-width:920px){body:not(.playing) .sidebar nav{overflow-x:auto;justify-content:start;scrollbar-width:thin}body:not(.playing) .sidebar .nav-button{flex:0 0 auto;white-space:nowrap;padding:10px 13px}}@media(max-width:600px){.market-panel{padding:16px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.market-card{padding:8px}.market-card strong{font-size:15px}.market-card b,.market-card small{font-size:12px}.market-edit{grid-template-columns:1fr}.market-edit>div img{max-height:180px}.market-dialog{padding:18px;width:calc(100% - 20px)}.market-request{padding:14px;gap:12px}.market-request>img{width:58px;height:82px}.market-tabs button{flex:1;font-size:14px}.market-share form>button{width:100%}}@media(max-height:500px)and (orientation:landscape){.market-dialog{max-height:95dvh}.market-edit{grid-template-columns:150px 1fr}.chat-messages{height:30dvh}}@media(max-width:700px){body:not(.playing) .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;overflow:visible}body:not(.playing) .sidebar .nav-button{font-size:11px;padding:5px 2px;min-height:45px;white-space:normal;min-width:0}body:not(.playing) .sidebar .nav-button>span{font-size:18px}body:not(.playing) .sidebar{height:auto;padding-bottom:env(safe-area-inset-bottom,0px)}body:not(.playing) #main{padding-bottom:145px}}body.playing .sidebar .nav-button{min-width:0;flex:1 1 0;padding:8px;overflow-wrap:anywhere}body.playing .sidebar nav{max-width:100%}@media(max-width:700px){body.playing .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}body.playing .sidebar .nav-button{font-size:11px;min-height:40px}}
