.portable-game{color:#273f43;max-width:1080px;box-sizing:border-box;margin:16px auto;padding:20px;background:#faf8f1;border:1px solid #d4ded7;border-radius:16px;overflow-wrap:anywhere}.portable-game *{box-sizing:border-box}.portable-game h2{font-size:25px}.portable-game button{font:inherit;cursor:pointer;min-height:46px;border-radius:12px;padding:12px 16px;white-space:normal;touch-action:manipulation}.pg-packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:18px 0}.pg-packs button{display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;background:#eee5d1;color:#3e493e;border:2px solid transparent;min-height:130px}.pg-packs button[data-selected=true]{border-color:#296e63;background:#d7e9dd}.pg-packs span{font-size:14px;line-height:1.6}.pg-goods{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:16px 0}.pg-good{background:white;border:1px solid #d7dfd7;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}.pg-good img,.pg-good svg{width:100%;height:160px;object-fit:contain;overflow:hidden}.pg-good h3,.pg-good p{font-size:15px;margin:0}.pg-good small{line-height:1.6}.pg-drum{display:block;width:min(100%,340px);height:auto;margin:12px auto}.pg-hold{display:block;width:min(100%,400px);margin:16px auto;touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.pg-allocations{padding:12px;border-radius:12px;background:#e9eee4}.pg-round,.pg-countdown{font-weight:700}.portable-game details{margin:18px 0}.portable-game summary{cursor:pointer;min-height:44px;line-height:1.6}.pg-scoreboard{display:flex;flex-wrap:wrap;gap:12px}.warehouse-page{margin:0;background:#faf8f1;color:#273f43;font:16px system-ui}.warehouse-page>header{display:flex;justify-content:space-between;padding:20px}.warehouse-page>main{max-width:1050px;margin:auto;padding:20px}.warehouse-page button,.warehouse-page input,.warehouse-page select{font:inherit;padding:12px;max-width:100%;min-height:44px}.warehouse-page #entry{display:grid;grid-template-columns:1fr 1fr;gap:20px}.warehouse-page form{padding:20px;border:1px solid #d7dfd7;border-radius:16px;display:grid;gap:16px}.warehouse-page [hidden]{display:none!important}@media(max-width:480px){.portable-game{padding:14px;margin:12px 0}.pg-packs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pg-packs button{padding:10px;min-height:140px}.pg-goods{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pg-good{padding:9px}.pg-good img,.pg-good svg{height:120px}.warehouse-page #entry{grid-template-columns:1fr}.warehouse-page>main{padding:14px}.portable-game h2{font-size:22px}}
.warehouse-page button{background:#296e63;color:white;border:0;border-radius:12px}.warehouse-page button:disabled{opacity:.5;cursor:default}.warehouse-page .pg-packs button{background:#eee5d1;color:#3e493e;border:2px solid transparent}.warehouse-page .pg-packs button[data-selected=true]{border-color:#296e63;background:#d7e9dd}

.pg-bundle-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}.pg-bundle-items .pg-good{min-width:0;padding:6px}.pg-bundle-items .pg-good strong{overflow-wrap:anywhere}

.pg-feedback:not(:empty){padding:12px;background:#e0f2ea;border:1px solid #37796b;border-radius:10px;font-weight:700;overflow-wrap:anywhere}
.pg-contest{padding:14px;border:2px solid #b78c43;border-radius:14px;margin:12px 0;background:#fff7e6;display:grid;gap:10px}
.pg-contenders{display:flex;flex-wrap:wrap;gap:8px}.pg-contenders>span{padding:10px;border:2px solid transparent;border-radius:10px;background:#eee;overflow-wrap:anywhere;max-width:100%}
.pg-contenders>span[data-active=true]{background:#ffe49b;border-color:#876018;font-weight:800}
.pg-packs>div>button+button{min-height:44px;font-size:14px;background:#e1ebe7}
@media(prefers-reduced-motion:reduce){.pg-contenders>span[data-active=true]{background:#eee;border-color:transparent;font-weight:400}}
/* Market room and settlement refresh: no extra assets or continuous effects. */
.warehouse-page{background:radial-gradient(ellipse at top left,#e4efe8,transparent 55%),#f7f5ef}.warehouse-page>header{max-width:1120px;margin:auto;align-items:center;font-size:14px}.warehouse-page>header a{color:#295e56;text-decoration:none;padding:10px;border-radius:10px}.warehouse-page>main{max-width:1120px;padding:12px 24px 60px}.market-hero{padding:24px 0 30px}.market-hero small{color:#427b70;letter-spacing:.12em;font-weight:700}.market-hero h1{font-size:clamp(28px,4vw,44px);line-height:1.25;letter-spacing:-.04em;margin:12px 0}.market-hero p{color:#637a72}.warehouse-page #room{background:#fffdf9;border:1px solid #d7e1d8;border-radius:24px;padding:24px;box-shadow:0 12px 32px #244a3910}.warehouse-page #room>h2{margin:0;font-size:20px}.warehouse-page #room-code{font-family:monospace;letter-spacing:.08em;color:#2c7668}.warehouse-page #members{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:20px 0}.warehouse-page #members>span{display:flex!important;align-items:center;gap:6px;margin:0!important;padding:12px;background:#f0f5ee;border:1px solid #e1e9dd;border-radius:14px;min-width:0;flex-wrap:wrap}.market-room-actions{display:flex;gap:10px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #e5e9df}.warehouse-page #share{background:#e9efe8;color:#315b52}.warehouse-page #start{margin-left:auto;min-width:140px;box-shadow:0 4px 0 #194e43}.warehouse-page #bot-controls{padding:14px;border-radius:14px;background:#f6f4ed;margin:12px 0}.warehouse-page #bot-controls button{font-size:13px;padding:9px 12px;min-height:44px;margin:3px}.market-waiting{padding:18px 0 8px}.market-waiting h3{font-size:24px;margin:6px 0}.market-waiting p{color:#61776e;line-height:1.7}.warehouse-page #game>label{display:flex;align-items:center;gap:10px;background:#eef4e8;padding:16px;border-radius:14px}.warehouse-page input[type=checkbox]{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:#286d60}.warehouse-page #notice:not(:empty){border:1px solid #d4dfc8;background:#eef4e4;padding:12px 16px;border-radius:12px}.warehouse-page .portable-game{padding:18px 0;border:0;margin:0;background:transparent}.market-standing{padding:24px;background:linear-gradient(120deg,#edf4e9,#fff6df);border:1px solid #dce4cf;border-radius:20px;margin:20px 0}.market-standing>small{letter-spacing:.08em;color:#5b7967;font-size:11px;font-weight:800}.market-standing h3{font-size:26px;margin:8px 0}.market-standing>p{font-size:14px;color:#62766a}.pg-scoreboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.market-rank{display:flex!important;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;background:#fffdf8!important;color:#24493e!important;border:1px solid #dce4d7!important;border-radius:16px!important;padding:16px!important}.market-rank b{font-size:27px;line-height:1.3}.market-rank small,.market-rank span{font-size:12px;color:#6c7d6c}.market-rank[data-winner=true]{border:2px solid #d7b15d!important;background:#fff7df!important}.market-rank[data-mine=true]{box-shadow:inset 0 -3px #3b8170}.market-collection{box-sizing:border-box;width:min(800px,94vw);max-height:85dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #cad7c8;border-radius:22px;padding:22px;color:#27483d;background:#fffdf8}.market-collection::backdrop{background:#17382e88}.market-collection>button{min-height:44px;padding:10px 20px;border:0;border-radius:10px;background:#2b7162;color:white}.market-collection h2{font-size:22px}.warehouse-page :focus-visible{outline:3px solid #bd973f;outline-offset:3px}@media(max-width:600px){.warehouse-page>main{padding:8px 12px 32px}.warehouse-page #room{padding:16px;border-radius:18px}.market-hero{padding:12px 4px 18px}.warehouse-page #members{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.market-standing{padding:16px}.pg-scoreboard{grid-template-columns:repeat(2,minmax(0,1fr))}.market-rank{padding:12px!important}.market-room-actions>button{flex:1}.market-collection{padding:16px}.warehouse-page #game>label{font-size:14px}}

.market-collection>button{position:sticky;top:0;z-index:2;display:block;margin:0 0 12px auto;min-width:72px;min-height:44px;box-shadow:0 2px 8px #16392b20}.market-collection{scroll-padding-top:64px}.market-collection strong{overflow-wrap:anywhere}@media(max-width:600px){.market-collection{width:calc(100vw - 16px);max-height:90dvh;padding:14px;border-radius:18px}.market-collection .pg-goods,.market-collection .draws{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.market-collection img,.market-collection svg{height:120px}}

.pg-draw-verdict{margin:18px 0;padding:18px;border:2px solid #b8d4b9;background:#f3f8ed;border-radius:18px}.pg-my-verdict{font-size:18px;font-weight:800;background:#e0eed5;border-radius:12px;padding:14px}.pg-contest-verdict{padding:16px;margin:12px 0;background:#fff9e7;border:1px solid #dab86b;border-radius:14px;display:grid;gap:8px}.pg-contest-verdict>strong{font-size:22px;color:#5a461a}.pg-contest-verdict p{margin:3px 0}.pg-winner-line{font-weight:700}.pg-contenders>span[data-winner=true]{background:#f5d87e;color:#483711;border-color:#bd9638;font-weight:800}.pg-fallback-line{padding:10px;background:#edf2eb;border-radius:8px;color:#35584e}.market-final-summary{padding:18px;margin:16px 0;background:#fff9e5;border:1px solid #dfc681;border-radius:14px;overflow-wrap:anywhere}.market-final-summary>strong{font-size:22px}.market-final-summary>b{display:block;color:#276752;font-size:18px}@media(max-width:600px){.pg-draw-verdict{padding:12px}.pg-contest-verdict{padding:12px}.pg-contest-verdict>strong{font-size:19px}.market-final-summary{padding:14px}.market-final-summary>strong{font-size:20px}}

/* Shared visual language with the standalone lucky-ball machine. */
.pg-ball-stage{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:center;margin:24px 0}.pg-ball-stage>*{min-width:0}.pg-ball-left{text-align:center}.pg-ball-eyebrow{font-weight:800;letter-spacing:2px;color:#397c75}.pg-ball-machine{position:relative;padding-bottom:46px;max-width:560px;margin:auto}.pg-ball-machine .pg-drum{display:block;width:100%;max-width:none;height:auto;margin:0;border-radius:50%;background:radial-gradient(circle at 45% 35%,#fff,#e6f0ed 65%,#c9ded9)}.pg-ball-base{position:absolute;bottom:0;left:8%;width:84%;padding:18px 0;background:#286962;color:#ffe7a0;font-weight:800;letter-spacing:4px;border-radius:18px;box-shadow:0 8px #194f49}.pg-ball-chute{position:absolute;bottom:48px;left:calc(50% - 32px);width:64px;height:42px;background:#205550;border:5px solid #75a49a}.pg-ball-number{position:absolute;bottom:48px;left:calc(50% - 36px);width:72px;height:72px;border:5px solid white;border-radius:50%;display:grid;place-items:center;background:#f4d383;color:#6a5129;font-size:30px;box-sizing:border-box;z-index:1}.pg-ball-left>button{display:block;width:100%;min-height:52px;margin-top:24px}.pg-ball-left>p:last-child{font-size:13px;color:#67827d}.pg-ball-reveal{background:#fffdfa;border:1px solid #dce7df;border-radius:24px;padding:24px;text-align:center;overflow-wrap:anywhere;min-height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px}.pg-ball-reveal h3{margin:0}.pg-ball-reveal>small{color:#397c75;font-weight:700}.pg-ball-package{display:grid;place-items:center;width:140px;height:140px;border-radius:28px;background:#f2cf83;color:#88662c;font-size:80px;font-weight:800;box-shadow:10px 10px #f4e8c9}.pg-ball-reveal .pg-good{max-width:100%;width:100%;box-sizing:border-box}.pg-ball-reveal .pg-good img{max-height:260px;object-fit:contain}@media(max-width:700px){.pg-ball-stage{grid-template-columns:minmax(0,1fr);gap:20px}.pg-ball-machine{max-width:360px}.pg-ball-reveal{min-height:220px;padding:18px}.pg-ball-reveal h3{font-size:18px}.pg-ball-package{width:100px;height:100px;font-size:60px}}

.pg-auto-actions{display:flex;gap:10px;margin-top:24px}.pg-auto-actions button{flex:2;min-width:0;min-height:52px;touch-action:manipulation}.pg-auto-actions button+button{flex:1;background:#edf5ef;color:#286962;border:1px solid #91b4a9}

.warehouse-awards{margin:20px 0;padding:24px;border:1px solid #d4bb77;border-radius:24px;background:linear-gradient(135deg,#fff8df,#edf5ee);text-align:center;color:#244942}.warehouse-awards>small{letter-spacing:3px}.warehouse-award-card{padding:20px;background:#fffdf8;border-radius:18px;margin:12px 0;overflow-wrap:anywhere}.warehouse-award-card h3{font-size:26px;color:#866324}.warehouse-award-card strong{display:block;font-size:21px}.warehouse-award-star{font-size:40px;color:#c49b4d}.warehouse-award-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.warehouse-award-nav p{flex-basis:100%}.warehouse-award-nav button{min-height:48px;padding:12px 18px;touch-action:manipulation}.warehouse-award-card{animation:warehouse-reveal .3s ease-out}@keyframes warehouse-reveal{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.warehouse-award-card{animation:none}}@media(max-width:600px){.warehouse-awards{padding:14px}.warehouse-award-card{padding:14px}.warehouse-award-nav button{flex:1;padding:10px 8px}}
