*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;font-family:system-ui,-apple-system,sans-serif}body{background:#1a1510;color:#fff}.screen{min-height:100vh;display:flex;flex-direction:column;background-size:cover;background-position:center;background-repeat:no-repeat}.screen-background{background-image:url(/background-market.png)}.screen-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem}.screen-title{font-family:Georgia,serif;font-size:2rem;font-weight:400;color:#fff;margin:0 0 1rem;text-shadow:0 1px 2px rgba(0,0,0,.5)}.screen-center-image{max-width:90vw;max-height:40vh;object-fit:contain;margin:1rem 0}.treasure-chest-card,.market-closed-card{border-radius:16px;overflow:hidden}.screen-warehouse-wrap{margin-top:auto;margin-left:auto;margin-right:auto;width:100%;max-width:600px;padding-bottom:1rem}.warehouse-panel{background:url(/warehouse-panel.png) center/100% 100% no-repeat;min-height:150px;padding:1.5rem 3rem;display:flex;flex-direction:column;justify-content:center}.warehouse-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.warehouse-title{font-family:Georgia,serif;font-size:1.25rem;color:#fff;margin:0}.warehouse-coins{display:flex;align-items:center;gap:.25rem;font-size:1.1rem;font-weight:600}.warehouse-coins img{width:24px;height:24px}.warehouse-resources{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.warehouse-resource{display:flex;flex-direction:column;align-items:center;gap:.25rem}.warehouse-resource img{width:36px;height:36px;object-fit:contain}.warehouse-resource span{font-size:.9rem;font-weight:600}.timer-wrap{position:absolute;top:1rem;right:1rem;width:56px;height:56px}.timer-circle-bg{fill:none;stroke:#fff3;stroke-width:4}.timer-circle-progress{fill:none;stroke:#4a9eff;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .5s linear}.timer-value{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:1.25rem;font-weight:700;color:#fff}.spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.characters-image{width:100%;max-width:min(90vw,640px)}.offers-by-column{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.5rem;width:100%;max-width:min(90vw,640px);margin:1rem 0}.offer-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:80px}.offers-row{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;margin:1rem 0}.offer-bubble{position:relative;background:#fffffff2;color:#333;padding:1rem 1.25rem;border-radius:16px;min-width:120px;cursor:pointer;transition:transform .1s,box-shadow .1s;box-shadow:0 2px 8px #0003}.offer-bubble:before{content:"";position:absolute;top:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid rgba(255,255,255,.95)}.offer-bubble:hover{transform:scale(1.02);box-shadow:0 4px 12px #0000004d}.offer-bubble:active{transform:scale(.98)}.offer-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.offer-resource{display:flex;align-items:center;gap:.25rem}.offer-resource img{width:28px;height:28px;object-fit:contain}.offer-price{display:flex;align-items:center;gap:.25rem;font-weight:700;font-size:1.1rem}.offer-price img{width:20px;height:20px}.offer-arrows{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:.25rem}.offer-arrows img{width:24px;height:24px;object-fit:contain}.success-profit{font-size:2.5rem;font-weight:700;color:#fff;margin:.5rem 0;display:flex;align-items:center;justify-content:center;gap:.5rem}.success-profit img{width:40px;height:40px}.success-total{font-size:1.1rem;color:#ffffffe6;margin:.5rem 0 0;display:flex;align-items:center;justify-content:center;gap:.35rem}.success-total-amount{font-weight:700}.success-total-icon{width:22px;height:22px}.btn-cool{margin-top:1.5rem;padding:.75rem 2rem;font-size:1.1rem;font-weight:600;color:#fff;background:#2a8a3e;border:none;border-radius:8px;cursor:pointer;transition:background .2s}.btn-cool:hover{background:#338c47}.btn-cool:active{transform:scale(.98)}.intro-content{width:100%;max-width:520px;max-height:90vh;margin:auto;text-align:center;background:url(/welcome-panel.png) center center no-repeat;background-size:contain;padding:3.5rem 4rem 3rem;border-radius:4px;box-sizing:border-box;overflow-y:auto}.intro-content .screen-title{color:#2c2419;text-shadow:none;margin-top:0;margin-bottom:1.5rem}.intro-text{margin:1.5rem 0;line-height:1.6;color:#2c2419}.intro-text p{margin:0 0 1rem;font-size:1rem}.intro-text p:last-child{margin-bottom:0}.intro-highlight{font-size:1.05rem}.intro-highlight strong{color:#1a1510}.intro-toggle{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:1rem 0;cursor:pointer;-webkit-user-select:none;user-select:none}.intro-toggle input{width:1.1rem;height:1.1rem;accent-color:#2a8a3e;cursor:pointer}.intro-toggle span{font-size:1rem;color:#2c2419}.intro-loops-label{margin-top:1rem;margin-bottom:.5rem!important;font-weight:600;color:#2c2419}.intro-loops{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}.intro-loop-btn{width:2.5rem;height:2.5rem;padding:0;font-size:1.1rem;font-weight:600;color:#2c2419;background:#2c241914;border:2px solid rgba(44,36,25,.35);border-radius:8px;cursor:pointer;transition:background .2s,border-color .2s}.intro-loop-btn:hover{background:#2c241926;border-color:#2c241980}.intro-loop-btn--selected{background:#2a8a3e;border-color:#2a8a3e;color:#fff}.intro-loop-btn--selected:hover{background:#2a8a3ee6}.market-closed-text{font-family:Georgia,serif;font-size:1.25rem;text-align:center;max-width:320px;margin:1rem 0}.btn-play-again{margin-top:1rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;color:#1a1510;background:#e8c547;border:none;border-radius:8px;cursor:pointer}.btn-play-again:hover{background:#f0d050}
