@charset "UTF-8";
:root{font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:#303b37;background:#f3f0e6;font-size:15px;line-height:1.6;--ink:#293f3d;--teal:#2a6e6c;--muted:#778078;--line:#deded0;--paper:#fffdf5;--sand:#f5edd9;--brown:#87664a;--red:#a54e4c;--shadow:0 5px 0 #d9d8c660}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:48px;border:1px solid #d5d7c9;border-radius:8px;background:#fffdf7;padding:10px 17px;color:var(--ink);font-weight:700;transition:background .15s,transform .15s}button:hover{background:#f0eddf}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#286d6b;color:#fff9e8;border-color:#286d6b;box-shadow:0 3px 0 #164f50}button.primary:hover{background:#205c5b}button.danger{color:#9b3d3a;border-color:#dfb6a6;background:#fff5ed}button.small{font-size:13px;padding:7px 12px;min-height:48px}.quiet{border-color:transparent;background:transparent}.wide{width:100%}input,select,textarea{border:1px solid #cbcdbf;border-radius:7px;min-height:49px;width:100%;padding:11px 13px;background:#fffef9;color:#253e3a}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #cf9b43;outline-offset:3px}input.code{font-size:22px;letter-spacing:5px;text-transform:uppercase;font-weight:800}label{display:block;font-size:13px;font-weight:700;margin:15px 0 6px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.4;letter-spacing:-.6px}h2{font-size:21px}h3{font-size:16px}p{margin-bottom:14px}a{color:#246a6b;text-underline-offset:4px}small,.muted{color:#68766d;font-size:12px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#718778}.section-label{font-size:12px;font-weight:800;color:#6e7f70;letter-spacing:1px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.stack{display:grid;gap:12px}.gap{margin-top:18px}.divider{border:0;border-top:1px solid var(--line);margin:20px 0}.tag{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#eceddf;color:#597060;padding:4px 8px;font-size:11px;font-weight:700;white-space:nowrap}.tag.gold{background:#f2e6c9;color:#8d6734}.tag.red{background:#f5ded4;color:#974d46}.tag.teal{background:#dfece3;color:#276c5f}.status-dot{width:6px;height:6px;background:#629573;display:inline-block;border-radius:50%;margin-right:5px}.status-dot.off{background:#9a9f94}.pixel{image-rendering:pixelated;image-rendering:crisp-edges}.item-icon{width:30px;height:30px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.avatar{display:inline-block;width:65px;height:96px;image-rendering:pixelated;object-fit:contain;flex-shrink:0}.card{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:20px;box-shadow:var(--shadow)}.pixel-rule{height:4px;background:repeating-linear-gradient(90deg,#baae89 0 5px,transparent 5px 9px);opacity:.6;margin:20px 0}.brand-mark{width:44px;height:44px;display:grid;place-items:center;background:#2e615f;border:3px solid #d9c18f;box-shadow:0 0 0 1px #486860;image-rendering:pixelated;flex-shrink:0}.brand-mark img{width:32px;height:32px;filter:brightness(1.3)}.brand-name{font-size:19px;font-weight:900;letter-spacing:-1px;color:#284e4b}.brand-sub{font-size:10px;letter-spacing:1.6px;color:#7c8675}.topbar{height:85px;display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1460px;padding:0 34px;margin:auto}.topbar-shell{border-bottom:1px solid #dddccb;background:#f9f7ec}.header-actions{display:flex;align-items:center;gap:14px;font-size:12px}.room-code{font-family:Consolas,monospace;letter-spacing:2px;font-size:17px;color:#385d55;font-weight:800}.page{max-width:1440px;margin:auto;padding:25px 30px 60px}.connection{font-size:11px;color:#58745e}.connection.bad{color:#9f4c44}.notice{padding:13px 18px;border:1px solid #d8cc9b;border-radius:8px;background:#f9f0cc;color:#775d32;font-size:13px;margin-bottom:18px}.notice strong{font-size:14px}.empty{padding:34px 22px;text-align:center;color:#748175;border:1px dashed #d2d8c8;border-radius:9px}.empty img{display:block;margin:0 auto 14px;width:52px;height:52px;opacity:.65}
/* Entry */
.landing{max-width:1310px;margin:auto;padding:42px 40px 30px}.landing-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);gap:50px;align-items:center}.hero-title{font-size:52px;font-weight:900;line-height:1.24;letter-spacing:-3px;color:#2b514b;margin:17px 0 23px}.hero-title span{color:#a37143}.hero-copy{font-size:16px;color:#707b6b;line-height:1.9}.hero-map{border:5px solid #fff7df;outline:1px solid #c9c6ae;box-shadow:8px 8px 0 #dfddcb;margin:26px 0 23px;position:relative;overflow:hidden}.hero-map>img{display:block;width:100%}.map-caption{position:absolute;left:16px;top:14px;background:#fff9e6ee;border:1px solid #a9af91;padding:4px 10px;font-size:11px;color:#5c725a}.hero-crew{display:flex;gap:20px;justify-content:center;margin-top:-8px;position:relative}.crew-person{display:grid;justify-items:center;gap:5px}.crew-person .avatar{width:48px;height:54px}.crew-person span{font-size:10px;color:#69745f}.entry-card{padding:28px 30px;background:#fffdf6;box-shadow:6px 7px 0 #dedbca;border:1px solid #cbd1c0;border-radius:12px}.entry-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);gap:5px;margin-bottom:24px}.entry-tabs button{border:0;border-radius:0;background:transparent;color:#8b8b7b;border-bottom:3px solid transparent}.entry-tabs button.active{border-bottom-color:#37786b;color:#286152}.entry-card h2{font-size:23px;margin-bottom:6px}.entry-card>p{font-size:13px;color:#788273}.preview{background:#f4f2e4;border:1px dashed #cecdb8;padding:10px 15px;margin:18px 0;border-radius:8px;min-height:80px;display:flex;align-items:center;gap:10px}.preview img{width:45px;height:50px}.nameplate{display:flex;flex-direction:column;min-width:0}.nation{font-size:11px;font-weight:800;color:var(--role,#397b70);letter-spacing:.3px}.nickname{font-size:17px;font-weight:800;color:#34483f;overflow-wrap:anywhere;line-height:1.5}.entry-foot{font-size:11px;color:#8d8a76;text-align:center;margin-top:16px}.landing-foot{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:42px;padding-top:20px;border-top:1px solid var(--line);font-size:11px;color:#7d8475}.saved-session{display:flex;justify-content:space-between;align-items:center;text-align:left;font-size:12px;margin-bottom:8px;width:100%}
/* Student market */
.workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px}.sidebar{display:grid;align-content:start;gap:16px}.identity{padding:18px;background:#e6ecde;border-color:#cdd7c5}.identity .nickname{font-size:22px}.identity .avatar{width:72px;height:108px}.identity small{font-size:10px}.goal-list{display:grid;gap:14px;margin-top:19px}.goal{position:relative;padding-left:33px;font-size:12px}.goal .goal-number{position:absolute;left:0;top:0;display:grid;place-items:center;width:24px;height:24px;background:#f0ead5;border:1px solid #ded0ad;font-size:11px;color:#96754b;font-weight:700}.goal.done .goal-number{background:#e2ebdc;border-color:#b3c9ad;color:#527b51}.goal-title{font-weight:800;color:#495c48;line-height:1.5}.goal-hint{font-size:10px;color:#87917d}.progress{height:5px;background:#eaeadd;margin-top:8px;overflow:hidden;border-radius:0}.progress>span{height:100%;display:block;background:#bc9c63;transition:width .4s}.goal.done .progress>span{background:#719c71}.goal .stamp{position:absolute;right:-7px;top:-7px;color:#5c8a5d;border:2px solid #87a97b;font-size:9px;padding:1px 4px;transform:rotate(-10deg);animation:stamp .3s}.cooldown{background:#f1eddd;border:1px solid #ded7bc;border-radius:7px;padding:10px 12px;margin-top:17px;font-size:11px}.cooldown strong{font-family:Consolas,monospace;font-size:22px;color:#527561}.cooldown .speed{color:#8e743f;font-size:10px}.inv-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.inv-item{display:flex;align-items:center;gap:5px;background:#f6f4e9;border:1px solid #ebe7d6;border-radius:5px;padding:7px 5px;font-size:11px}.inv-item strong{margin-left:auto;color:#426359;font-size:13px}.inv-item .item-icon{width:25px;height:25px}.sidebar .card{padding:18px}.content{min-width:0}.market-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 18px;gap:12px}.market-heading h1{font-size:27px;margin:4px 0 2px;letter-spacing:-1px}.market-heading p{font-size:12px;color:#7a8778;margin-bottom:0}.class-summary{display:flex;gap:15px;color:#6e806f;font-size:11px;flex-wrap:wrap}.class-summary strong{display:block;font-size:22px;line-height:1.3;color:#476d5e}.harbor{height:280px;position:relative;border:1px solid #aab59e;box-shadow:inset 0 0 0 4px #f6f2d5,0 4px 0 #d1d9c3;border-radius:10px;overflow:hidden;background:#b9cabb}.harbor>img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.map-label{position:absolute;background:#f9f2d9ea;color:#68765c;border:1px solid #b7b996;border-radius:3px;padding:2px 7px;font-size:10px;pointer-events:none}.map-label.pier{bottom:11%;left:3%}.map-label.pavilion{top:12%;right:27%}.map-label.warehouse{top:11%;left:25%}.map-label.road{top:3%;left:74%}.map-note{position:absolute;bottom:7px;right:8px;font-size:9px;color:#fef7db;background:#486b65c9;padding:2px 5px}.map-person{position:absolute;padding:0 6px 2px;min-height:48px;border:0;background:transparent;border-radius:5px;display:grid;justify-items:center;gap:0;transform:translate(-50%,-50%)}.map-person:hover{background:#fff9d578}.map-person:active{transform:translate(-50%,-50%)}.map-person .avatar{width:50px;height:78px;image-rendering:pixelated;filter:drop-shadow(2px 3px 0 #0002)}.map-person span{font-size:9px;background:#fff8e3f5;padding:2px 6px;line-height:1.5;border:1px solid #aba78c;box-shadow:1px 2px 0 #767d6b33}.map-person b{font-weight:700;color:#4c6b56}.market-news{display:flex;gap:12px;align-items:center;border-bottom:1px solid #dadfcd;padding:13px 3px;color:#747d63;font-size:12px;min-height:49px}.market-news .tag{background:#e9dfc5;color:#98794a;flex-shrink:0}.market-nav{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid #d5dbc9;margin:16px 0 21px}.market-nav button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:10px 12px;color:#8a907d;font-size:13px}.market-nav button.active{border-color:#477963;color:#315f4f}.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;background:#dce9db;border-radius:4px;font-size:10px;margin-left:5px;color:#3b7251}.filter-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:17px}.filters{display:flex;gap:5px;flex-wrap:wrap}.filters button{border:1px solid transparent;min-height:48px;font-size:12px;padding:8px 13px;background:transparent;color:#828b79}.filters button.active{background:#e4eadc;border-color:#c8d2bb;color:#4b7258}.filter-row select{width:157px;font-size:12px;background:transparent;min-height:48px}.merchant-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.merchant{padding:16px 15px 12px;border-top:3px solid var(--role);min-width:0;display:flex;flex-direction:column;gap:9px;animation:appear .25s}.merchant .avatar{width:52px;height:60px}.merchant .nickname{font-size:15px}.merchant .nation{font-size:10px}.merchant .availability{font-size:10px;color:#8c947f}.merchant .goods-list{display:flex;flex-wrap:wrap;gap:4px;min-height:64px;align-content:flex-start}.good-chip{display:inline-flex;align-items:center;gap:2px;font-size:10px;background:#f2efdf;border:1px solid #e5e0cd;padding:1px 5px 1px 2px;border-radius:4px;line-height:1.5}.good-chip img{width:23px;height:23px}.good-chip b{font-size:11px;color:#6a795d}.merchant .trade-button{margin-top:auto;width:100%;border-color:#ccd9c4;background:#eaf0e2;color:#4c755c;min-height:48px;font-size:12px}.merchant .trade-button:hover{background:#dbe9d1}.merchant.self{background:#f3f4e9}.merchant.self .trade-button{background:transparent}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.panel-head h2{margin-bottom:0}.trade-inbox{display:grid;gap:12px}.offer-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.trade-pair{display:flex;gap:16px;align-items:center;font-size:14px;margin-top:12px}.trade-pair .exchange-arrow{font-size:21px;color:#98a083}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.stat-card{padding:18px 22px}.stat-card strong{display:block;font-size:31px;color:#42745d}.stat-card small{font-size:11px}.notebook-tags{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.history-item{border-top:1px solid #e3e3d6;padding:13px 0;font-size:12px}.listing-card{display:grid;gap:12px}.listing-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.help-card{padding:18px}.help-card blockquote{margin:10px 0;padding-left:13px;border-left:3px solid #d7c699;color:#68745e;font-size:13px}.help-intros{font-size:11px;color:#678063;margin:10px 0}.help-compose{display:grid;grid-template-columns:135px 1fr auto;gap:10px;align-items:end;margin-bottom:20px}
/* Teacher */
.teacher-banner{display:flex;justify-content:space-between;gap:22px;align-items:center;background:#2d5754;color:#f9f4dd;padding:24px 30px;border:4px solid #d9c598;box-shadow:0 0 0 1px #647862;margin-bottom:23px}.teacher-banner h1{font-size:27px;margin:3px 0 6px;color:#fff7db}.teacher-banner p{font-size:12px;color:#c2d1ba;margin:0}.teacher-banner .room-code{font-size:34px;color:#f6d68a;letter-spacing:5px}.teacher-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.teacher-grid .card{margin-bottom:18px}.role-counts{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.role-count{text-align:center;padding:15px 6px;background:#f4f2e5;border-top:3px solid var(--role)}.role-count .avatar{width:40px;height:64px}.role-count strong{display:block;font-size:22px;color:#547054}.role-count small{display:block;font-size:10px}.teacher-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{font-size:11px;color:#7a876f;font-weight:600;padding:12px 10px;background:#f2f1e5;border-bottom:1px solid #daddca}td{padding:12px 10px;border-bottom:1px solid #e6e5d7}td .nickname{font-size:13px}td .nation{font-size:10px}.supply-table{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.supply-line{display:flex;align-items:center;padding:8px;background:#f4f2e5;border-radius:5px;font-size:12px}.supply-line strong{margin-left:auto}.settings-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.settings-fields .full{grid-column:1/-1}.settings-fields label{font-size:12px}.audit-log{max-height:280px;overflow:auto}.audit-entry{padding:11px 0;border-bottom:1px solid var(--line);font-size:11px}.audit-entry details{font-size:10px;color:#78816e}.audit-entry pre{white-space:pre-wrap;overflow-wrap:anywhere}.teacher-settings details>summary{font-weight:800;cursor:pointer;font-size:13px;padding:10px 0}.teacher-settings .card{padding:19px}
/* Dialogs, trade and lesson */
dialog{width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #7c8b74;border-radius:11px;box-shadow:0 18px 90px #233f3b55;padding:0;color:#394b3c;background:#fffcf2}dialog::backdrop{background:#253f3b85;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 25px;background:#f0eddb;border-bottom:1px solid #dedbc4;position:sticky;top:0;z-index:2}.modal-head h2{font-size:20px;margin:0}.modal-head button{font-size:22px;min-width:48px;padding:4px}.modal-body{padding:23px 25px 27px}.modal-body>p{font-size:13px;color:#77816d}.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.trade-side{padding:20px 18px;border:1px solid #c9d7bf;background:#eaf0e2;min-width:0}.trade-side.receive{border-color:#dfcca1;background:#f7edd6}.trade-side h3{font-size:16px;margin-bottom:2px}.trade-side>small{display:block;margin-bottom:12px}.trade-side .big-good{font-size:20px;font-weight:800;display:flex;align-items:center;gap:8px;margin:16px 0}.big-good img{width:45px;height:45px}.trade-side select{font-size:15px;margin-top:7px}.trade-footer{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px}.trade-state{padding:14px 18px;background:#ede9d3;border-left:4px solid #b4985d;font-size:13px}.trade-state.done{background:#e2eedb;border-color:#7b9d6a}.modal-nameplates{display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-nameplates .avatar{width:50px;height:56px}.form-error{font-size:12px;color:#a75048;margin:12px 0;min-height:0}.ref-table{white-space:normal;font-size:12px;margin:15px 0}.ref-table th,.ref-table td{padding:10px;vertical-align:top}.source-card{padding:16px;background:#f2f0df;border:1px solid #dfdbc5;margin:15px 0;font-size:12px}.source-card li{margin:8px 0}.lesson-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.trade-map{height:320px;position:relative;background:#eaf0e2;border:1px solid #d6dec9;overflow:hidden;margin-bottom:15px}.trade-map svg{width:100%;height:100%}.map-node{fill:#faf7e7;stroke:#9aa88c;stroke-width:1}.map-link{stroke:#8da68e;stroke-width:2;fill:none}.map-link.used{stroke:#3e816f;stroke-width:4}.trade-map text{font-family:inherit;fill:#536c58;font-size:12px}.flow-list{max-height:340px;overflow:auto}.flow-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.flow-row .tag{font-size:9px}.questions{background:#efe6cb;border:1px solid #deceaa;padding:20px 24px;margin-top:20px;font-size:13px}.questions li{margin:10px 0}.no-rank{color:#7f8875;font-size:11px}.private-key{word-break:break-all;padding:15px;background:#f1eddc;font-family:monospace;font-size:15px;user-select:all}.recovery-code{text-align:center;font-size:34px;font-family:Consolas,monospace;letter-spacing:5px;padding:15px;color:#396c58}.text-center{text-align:center}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:#2f5b52;color:#fff9e7;max-width:min(560px,94vw);padding:14px 23px;border:2px solid #d9c58f;border-radius:8px;box-shadow:0 5px 20px #244c3b33;z-index:1000;font-size:13px;opacity:0;transition:all .2s;pointer-events:none}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}#toast.error{background:#884c3e}.just-arrived{animation:arrival .5s}.success-art{display:flex;align-items:center;justify-content:center;gap:35px;padding:20px}.success-art img{width:55px;height:55px;animation:arrival .7s}.success-art span{color:#7c9778;font-size:30px}.smallprint{font-size:11px;line-height:1.9;color:#89907d}.mobile-inventory{display:none}@keyframes appear{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes arrival{from{transform:translateY(-10px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes stamp{from{transform:rotate(-10deg) scale(1.5);opacity:0}to{transform:rotate(-10deg) scale(1);opacity:1}}
.merchant-identity{display:flex;align-items:center;gap:10px;width:100%;padding:0;min-height:74px;border:0;background:transparent;text-align:left;border-radius:6px}.merchant-identity:hover{background:#f1eddd}.merchant .merchant-identity .avatar{width:68px;height:102px}.merchant-identity .availability{display:block}.merchant .goods-list{height:90px;max-height:90px;overflow-y:auto;flex-shrink:0}
@media(min-width:1450px){.harbor{height:320px}.merchant-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1180px){.merchant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:250px minmax(0,1fr);gap:20px}.page{padding:22px}.landing-grid{gap:30px;grid-template-columns:1.3fr 1fr}.hero-title{font-size:43px}.teacher-grid{grid-template-columns:minmax(0,1fr) 290px}.class-summary{gap:10px}.harbor{height:270px}.market-heading h1{font-size:25px}.class-summary strong{font-size:19px}}
@media(max-width:900px){.landing{padding:25px}.hero-title{font-size:37px}.landing-grid{gap:24px;grid-template-columns:1fr 340px}.entry-card{padding:24px}.hero-crew{gap:12px}.teacher-grid{grid-template-columns:1fr}.teacher-settings{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-content:start}.teacher-banner{padding:20px}.lesson-grid{grid-template-columns:1fr}.workspace{grid-template-columns:226px minmax(0,1fr);gap:15px}.page{padding:19px}.topbar{padding:0 23px}.header-actions{gap:6px}.market-heading{align-items:flex-start;flex-direction:column}.class-summary{gap:25px}.class-summary strong{display:inline;margin-right:4px;font-size:16px}.merchant-grid{gap:10px}.merchant{padding:12px 10px}.merchant .avatar{width:43px;height:49px}.merchant .nickname{font-size:13px}.filter-row{align-items:flex-start;flex-direction:column}.listing-cards{grid-template-columns:1fr}.harbor{height:245px}}
@media(max-width:680px){.topbar{height:73px;padding:0 16px}.brand-name{font-size:16px}.brand-sub{font-size:8px}.brand-mark{width:36px;height:36px}.brand-mark img{width:27px;height:27px}.header-actions .connection,.header-actions .tag{display:none}.header-actions button{font-size:11px;padding:7px}.header-actions .room-code{font-size:13px}.landing{padding:26px 20px}.landing-grid{grid-template-columns:1fr}.hero-title{font-size:38px}.hero-copy{font-size:14px}.hero-map{margin-top:20px}.hero-crew{display:none}.entry-card{padding:24px}.landing-foot{align-items:flex-start;flex-direction:column;gap:5px;font-size:10px;margin-top:30px}.workspace{display:flex;flex-direction:column}.sidebar{grid-template-columns:1fr 1fr;gap:12px}.sidebar .identity{grid-column:1/-1;padding:10px 17px}.identity .avatar{height:59px;width:55px}.identity .nickname{font-size:19px}.sidebar>.card{padding:14px}.sidebar .inventory-panel{order:2}.sidebar .goal-card{order:1}.sidebar .goal-list{gap:14px}.goal{font-size:11px;padding-left:26px}.goal .goal-number{width:20px;height:20px}.goal-hint{font-size:9px}.sidebar h3{font-size:14px}.inv-grid{grid-template-columns:1fr 1fr;gap:4px}.inv-item{font-size:9px;padding:4px}.inv-item .item-icon{width:20px;height:20px}.inv-item strong{font-size:10px}.cooldown{padding:8px;font-size:10px}.page{padding:15px}.harbor{height:230px}.market-nav{gap:0}.market-nav button{padding:9px 10px;font-size:12px}.market-heading h1{font-size:25px}.map-person .avatar{width:35px;height:40px}.map-person span{font-size:8px;padding:1px 4px}.map-label{font-size:8px}.map-note{font-size:8px}.merchant-grid{grid-template-columns:1fr 1fr}.merchant .row{gap:5px}.merchant .availability{font-size:9px}.merchant .nation{font-size:9px}.merchant .nickname{font-size:12px}.merchant .avatar{width:38px;height:44px}.good-chip{font-size:9px;padding-right:3px}.good-chip img{width:20px;height:20px}.filters button{padding:7px 9px;font-size:11px}.stat-grid{gap:8px}.stat-card{padding:12px}.stat-card strong{font-size:24px}.trade-columns{gap:10px}.trade-side{padding:15px 11px}.trade-side .big-good{font-size:17px;flex-wrap:wrap}.modal-head{padding:13px 17px}.modal-body{padding:18px}.modal-nameplates .avatar{width:38px;height:44px}.modal-nameplates .nickname{font-size:13px}.modal-nameplates .nation{font-size:9px}.trade-pair{gap:8px;font-size:12px;flex-wrap:wrap}.trade-pair .item-icon{width:25px;height:25px}.offer-card{grid-template-columns:1fr}.offer-card>button{width:100%}.teacher-settings{display:block}.teacher-banner{flex-direction:column;align-items:flex-start;gap:13px}.teacher-banner h1{font-size:24px}.role-counts{gap:5px}.role-count strong{font-size:17px}.role-count small{font-size:9px}.role-count .avatar{width:34px;height:38px}.role-count{padding:10px 3px}.teacher-banner .room-code{font-size:29px}.help-compose{grid-template-columns:1fr 1fr}.help-compose .grow{grid-column:1/-1}.flow-row{font-size:11px}.questions{padding:17px}.map-caption{font-size:9px}.teacher-tabs{gap:5px}.teacher-tabs button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Selected raster artwork: crop the shared atlas with SVG viewBox, retaining alpha. */
.avatar image{image-rendering:pixelated}.hero-crew .avatar{width:52px;height:82px}.harbor>img{object-position:center center}.map-person{z-index:1}.map-label,.map-note{z-index:2}.merchant-identity .nameplate{display:block}.merchant-identity .availability{line-height:1.6;margin-top:5px}.modal-nameplates .avatar{width:52px;height:82px}
@media(max-width:680px){.map-person .avatar{width:37px;height:58px}.merchant .merchant-identity .avatar{width:50px;height:82px}.merchant-identity{gap:6px}.identity .avatar{width:52px;height:82px}}
.harbor .map-note{left:8px;right:auto}

/* Keep the generated trade-goods palette unchanged in the brand mark. */
.brand-mark img{filter:none}
