@font-face { font-family: 'Lilita One'; src: url('fonts/LilitaOne-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka.woff2'); font-display: swap; font-weight: 300 700; }
:root { --cream: #f6eedc; --cream2: #efe1c2; --tan: #b8925c; --brown: #8b5a2b; --brownD: #5a3418; --green: #2e7d3a; --greenD: #1f5a28; --dg: #1f4a2a; --red: #c62828; --gold: #f2b234; --ink: #2a3a22; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1a2238; font-family: 'Fredoka', system-ui, sans-serif; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; }
kbd { font-family: 'Lilita One', sans-serif; font-size: 11px; background: #1f4a2a; color: #fff; border-radius: 5px; padding: 0 5px; line-height: 16px; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui > #pops, #ui > #notices { pointer-events: none; }

/* stat stack */
#stats { position: absolute; top: 8px; right: 12px; transform: scale(var(--hs, 1)); transform-origin: top right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pill { background: var(--cream); border: 2px solid var(--tan); border-radius: 9px; padding: 3px 12px; display: flex; gap: 12px; align-items: baseline; font-family: 'Lilita One', sans-serif; box-shadow: 0 2px 0 rgba(0,0,0,.25); min-width: 150px; justify-content: space-between; cursor: default; }
.pill b { font-size: 11px; color: #b08a4a; letter-spacing: .5px; font-weight: 400; }
.pill span { font-size: 15px; color: #b08a1a; }
.pill.big { min-width: 180px; padding: 5px 12px; } .pill.big b { color: var(--green); font-size: 13px; } .pill.big span { font-size: 22px; color: var(--green); }
.pill.st { cursor: pointer; }
#status.open { color: #4cb84c; } #status.closed { color: var(--red); }
body.tutorial .pill.st { display: none; }

/* banners */
#banner { position: absolute; top: 6px; left: 50%; transform: translateX(-50%) scale(var(--hs, 1)); transform-origin: center top; background: linear-gradient(#2a6b35, #1f5527); color: #fff; border: 2px solid #d9b26a; border-radius: 12px; padding: 5px 40px 8px; text-align: center; min-width: 360px; max-width: 560px; box-shadow: 0 4px 0 rgba(0,0,0,.3); display: flex; flex-direction: column; align-items: center; animation: drop .35s ease-out; }
#banner small { font-family: 'Lilita One', sans-serif; font-size: 11px; color: #ffd76b; letter-spacing: 1px; }
#banner b { font-family: 'Lilita One', sans-serif; font-size: 21px; font-weight: 400; line-height: 1.1; }
#banner span { font-size: 13px; opacity: .95; }
#bannerX { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 16px; line-height: 22px; padding: 0; }
@keyframes drop { from { transform: translate(-50%, -30px) scale(var(--hs, 1)); opacity: 0; } to { transform: translate(-50%, 0) scale(var(--hs, 1)); opacity: 1; } }
#notices { position: absolute; top: calc(76px * var(--hs, 1)); left: 50%; transform: translateX(-50%) scale(var(--hs, 1)); transform-origin: center top; display: flex; flex-direction: column; gap: 6px; align-items: center; width: min(560px, 80vw); }
.notice { background: linear-gradient(#c8443a, #a82b22); color: #fff; font-weight: 600; border-radius: 9px; padding: 7px 18px; font-size: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.25); animation: drop2 .25s ease-out; text-align: center; }
.notice.good { background: linear-gradient(#2f7d3a, #23652c); }
@keyframes drop2 { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* left tiles */
#leftBtns { position: absolute; left: 10px; top: 48%; transform: translateY(-50%) scale(var(--hs, 1)); transform-origin: left center; display: grid; grid-template-columns: 64px 64px; gap: 7px; }
.sq { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(#ffc84a, #f29a16); border: 3px solid #8b4d16; box-shadow: 0 4px 0 #6b3a0f, 0 6px 10px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; transition: transform .08s; }
.sq:active { transform: translateY(3px); box-shadow: 0 1px 0 #6b3a0f; }
.sq i { font-style: normal; font-size: 27px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.sq span { font-family: 'Lilita One', sans-serif; font-size: 11px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 3px rgba(0,0,0,.4); }
.sq.quests { background: linear-gradient(#fff8e6, #efe1c2); border-color: #b8925c; box-shadow: 0 4px 0 #8b6a3a, 0 6px 10px rgba(0,0,0,.25); } .sq.quests span { color: var(--green); text-shadow: none; }
.sq.wide { grid-column: span 2; width: auto; height: 44px; flex-direction: row; gap: 8px; } .sq.wide i { font-size: 22px; } .sq.wide span { font-size: 14px; }
.dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: #e53935; border: 2px solid #fff; border-radius: 10px; color: #fff; font: 700 12px/16px 'Fredoka'; font-style: normal; }
#rightBtns { position: absolute; right: 12px; top: 48%; transform: translateY(-50%) scale(var(--hs, 1)); transform-origin: right center; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sq.small { width: 54px; height: 54px; background: linear-gradient(#2f7d3a, #1f5a28); border-color: #d9e8c8; box-shadow: 0 4px 0 #123a18, 0 6px 10px rgba(0,0,0,.25); }
.chip { background: #1f4a2a; color: #fff; font-weight: 700; font-size: 12px; border-radius: 12px; padding: 4px 10px 4px 4px; display: flex; gap: 6px; align-items: center; border: 2px solid #d9e8c8; }
.chip kbd { background: #102a16; }
#bottomBtns { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%) scale(var(--hs, 1)); transform-origin: center bottom; display: flex; gap: 8px; }
.tool { width: 74px; height: 64px; background: var(--cream); border: 3px solid #c47a2a; border-radius: 12px; box-shadow: 0 4px 0 #8b4d16; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.tool i { font-style: normal; font-size: 24px; } .tool span { font-family: 'Lilita One', sans-serif; font-size: 12px; color: var(--green); }
.tool kbd { position: absolute; top: -7px; right: -6px; }
body.tutorial #leftBtns, body.tutorial #bottomBtns { display: none; }
body.hideUI #leftBtns, body.hideUI #bottomBtns, body.hideUI #stats, body.hideUI #banner, body.hideUI #menuBtn { opacity: 0; pointer-events: none; }
body.placing #bottomBtns, body.layout #bottomBtns, body.layout #leftBtns, body.layout #rightBtns { display: none; }

/* placement bar and layout bar */
#placeBar, #layoutBar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%) scale(var(--hs, 1)); transform-origin: center bottom; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 96vw; }
.hint { color: #fff; font-size: 12px; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.frame { background: var(--cream); border: 4px solid #c47a2a; border-radius: 12px; padding: 6px 12px 10px; box-shadow: 0 5px 0 rgba(0,0,0,.3); text-align: center; }
.frame h3 { margin: 0; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 18px; color: var(--green); }
.frame h3 .on { color: #e09b00; }
#placeSub, #laySub { font-size: 12px; color: #6a5a40; margin: 1px 0 6px; min-height: 14px; } #placeSub.bad { color: var(--red); font-weight: 700; }
.frame .row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.b { font-family: 'Lilita One', sans-serif; font-size: 14px; color: #fff; border-radius: 8px; padding: 8px 14px; box-shadow: 0 3px 0 rgba(0,0,0,.28); position: relative; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.b kbd { position: absolute; top: -8px; left: 3px; }
.b.green { background: linear-gradient(#4cb84c, #2e8a35); } .b.red { background: linear-gradient(#e0453b, #b9281f); } .b.gold { background: linear-gradient(#ffd25a, #e8a31a); color: #4a2a00; text-shadow: none; } .b.cream { background: #fffaf0; color: var(--ink); text-shadow: none; border: 2px solid #d9c6a0; }
.b.wide { width: 100%; } .b.big { padding: 12px; font-size: 17px; } .b.sq { width: 40px; padding: 8px 0; }
.b:disabled { background: #b9b2a2; color: #f4f0e6; cursor: not-allowed; box-shadow: none; }
.glow { animation: glow 1s ease-in-out infinite; } @keyframes glow { 50% { box-shadow: 0 0 0 4px #ffe066, 0 0 18px #ffd23f; } }
.cyc { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid #d9c6a0; border-radius: 8px; padding: 2px 6px; font-weight: 700; font-size: 13px; }
.cyc button { background: #e9dcc0; border-radius: 6px; width: 26px; height: 26px; }

/* proximity prompt */
#prompt { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 9px; background: rgba(20,22,24,.78); color: #fff; border-radius: 10px; padding: 7px 14px 7px 8px; cursor: pointer; white-space: nowrap; }
#prompt .key { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
#prompt kbd { background: #fff; color: #222; font-size: 15px; line-height: 22px; width: 24px; text-align: center; border-radius: 5px; padding: 0; }
#prompt small { display: block; font-size: 12px; color: #c9c9c9; }
#prompt b { font-family: 'Fredoka'; font-weight: 700; font-size: 17px; }

/* money */
#pops { position: absolute; inset: 0; overflow: hidden; }
.pop { position: absolute; font-family: 'Lilita One', sans-serif; font-size: 24px; color: #4be05a; text-shadow: 0 2px 0 #0b3a14, 0 0 6px rgba(0,0,0,.4); animation: rise 1.3s ease-out forwards; white-space: nowrap; transform: translateX(-50%); }
@keyframes rise { 0% { opacity: 0; margin-top: 10px; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -60px; } }
.coinfly { position: absolute; width: 24px; height: 24px; margin: -12px; border-radius: 50%; background: radial-gradient(#ffe066, #e8a31a); color: #8a5a00; font: 900 15px/24px 'Lilita One'; text-align: center; box-shadow: 0 0 0 2px #fff6c8; }

/* review card */
#review { position: fixed; right: 12px; bottom: 96px; width: min(300px, 70vw); background: var(--cream); border: 2px solid var(--tan); border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 0 rgba(0,0,0,.25); animation: drop2 .3s ease-out; z-index: 5; }
#review .rt { display: flex; justify-content: space-between; align-items: center; } #review .rt b { font-family: 'Lilita One'; font-weight: 400; color: var(--green); font-size: 14px; } #review .rt span { color: #f2b234; font-size: 17px; letter-spacing: 1px; } #review .rt i { color: #d9cdb0; font-style: normal; }
#review p { margin: 3px 0 0; font-size: 14px; color: #3a3a3a; }

/* windows */
.win { position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(1000px, 96vw); height: min(560px, 88vh); background: var(--cream); border: 6px solid #a8662a; border-radius: 18px; box-shadow: 0 0 0 3px #e7b56a inset, 0 0 0 2px #5a3418, 0 12px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: visible; z-index: 20; animation: popin .18s ease-out; }
@keyframes popin { from { transform: translate(-50%, -50%) scale(.94); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.win .garland { position: absolute; left: -10px; right: -10px; top: -16px; height: 22px; border-radius: 12px; background: repeating-linear-gradient(90deg, #2b6e35 0 14px, #245f2d 14px 22px); box-shadow: 0 3px 0 rgba(0,0,0,.2); pointer-events: none; }
.win .garland::before { content: '🎀'; position: absolute; left: 50%; top: -10px; transform: translateX(-50%); font-size: 26px; }
.win .garland::after { content: ''; position: absolute; inset: 6px 20px; background: radial-gradient(circle, #ff4040 3px, transparent 4px) 0 0 / 44px 12px, radial-gradient(circle, #ffd23f 3px, transparent 4px) 22px 0 / 44px 12px; }
.win.small { width: min(600px, 94vw); height: auto; max-height: 86vh; }
.win .title { display: flex; align-items: center; gap: 10px; background: linear-gradient(#24603a, #1b4a2c); color: #fff; padding: 9px 10px 8px; border-radius: 11px 11px 0 0; margin-top: 4px; }
.win .title .badge { font-family: 'Lilita One'; font-size: 13px; background: #f2dfb4; color: #8b2a1a; padding: 3px 10px; border-radius: 6px; }
.win .title b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 18px; flex: 1; }
.win .title .sub { font-family: 'Lilita One', sans-serif; font-size: 16px; flex: 1; color: #f6eedc; }
.win .title .cash { font-family: 'Lilita One', sans-serif; font-size: 18px; color: #ffd76b; }
.win .x { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(#e0453b, #b9281f); color: #fff; font-size: 22px; line-height: 30px; padding: 0; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.win .body { flex: 1; display: flex; min-height: 0; border-radius: 0 0 11px 11px; overflow: hidden; }
.win .body.col { flex-direction: column; padding: 12px 14px; gap: 8px; overflow: auto; }
#lmTabs { width: 170px; padding: 10px; display: flex; flex-direction: column; gap: 7px; background: #efe1c2; border-right: 2px solid #e1c99a; }
#lmTabs button { text-align: left; font-family: 'Fredoka'; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(#2f7d3a, #24662e); border-radius: 9px; padding: 9px 10px; box-shadow: 0 3px 0 #164a1f; display: flex; gap: 8px; align-items: center; }
#lmTabs button i { font-style: normal; } #lmTabs button.on { background: linear-gradient(#ffd56b, #f0ae2a); color: #4a2a00; box-shadow: 0 3px 0 #b8800c; }
#lmMain { flex: 1; overflow: auto; padding: 12px 14px; }
.hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
#lmMain h3, .hd h3 { font-family: 'Lilita One', sans-serif; font-weight: 400; margin: 0; font-size: 22px; color: var(--green); }
#lmMain h4 { font-family: 'Lilita One'; font-weight: 400; color: var(--green); margin: 10px 0 6px; font-size: 15px; }
.pill2, .hd .pill { font-family: 'Fredoka'; font-weight: 700; font-size: 12px; background: var(--green); color: #fff; border-radius: 7px; padding: 3px 9px; min-width: 0; border: 0; box-shadow: none; }
.note { font-size: 13px; color: #6a5a40; margin: 0 0 8px; } .note.center { text-align: center; } .note.big { font-family: 'Lilita One'; font-size: 18px; color: var(--green); }
.seg { display: flex; margin-bottom: 8px; border: 2px solid #c9b48a; border-radius: 9px; overflow: hidden; width: fit-content; }
.seg button { font-family: 'Fredoka'; font-weight: 700; font-size: 12px; padding: 6px 14px; background: #fffaf0; color: #6a5a40; } .seg button.on { background: var(--green); color: #fff; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(#2a6b35, #215a2c); color: #fff; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.rec .l b { font-family: 'Lilita One'; font-weight: 400; font-size: 15px; display: block; } .rec .l small { display: block; font-size: 12px; opacity: .92; }
.card2 { background: #fffaf0; border: 2px solid #e1c99a; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.card2.row { display: flex; align-items: center; gap: 10px; } .card2 .l { flex: 1; min-width: 0; } .card2 .l b { font-family: 'Lilita One'; font-weight: 400; font-size: 16px; color: var(--green); } .card2 .l small { display: block; color: #5a4a30; font-size: 12px; } .card2 small.cap { color: #9a8a6a; font-size: 11px; }
.ic2 { font-size: 30px; width: 44px; text-align: center; }
.ch { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .ch b { font-family: 'Lilita One'; font-weight: 400; font-size: 16px; color: var(--green); flex: 1; } .ch .rar { color: #8a8a7a; font-size: 12px; font-weight: 700; }
.tic { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; }
.size { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 5px 0; border-top: 1px solid #f0e2c4; font-size: 13px; }
.size .nm b { font-family: 'Lilita One'; font-weight: 400; font-size: 14px; color: var(--green); } .size .nm small { color: #8a7050; margin-left: 6px; } .size .nm .meta { font-size: 12px; color: #5a4a30; }
.dem { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; margin-top: 2px; } .dem.hi { background: #f2b234; color: #4a2a00; } .dem.lo { background: #d9d0bc; color: #5a4a30; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { min-width: 28px; height: 28px; border-radius: 7px; background: #e3d8c0; color: var(--ink); font-weight: 700; font-size: 14px; padding: 0 6px; }
.qty .n { width: 34px; height: 28px; line-height: 24px; text-align: center; font-weight: 700; background: #fff; border: 2px solid #d9c6a0; border-radius: 6px; }
.qty .mx { background: linear-gradient(#2f7d3a, #24662e); color: #fff; font-family: 'Lilita One'; font-weight: 400; font-size: 12px; }
.qty .pv { width: 66px; height: 30px; text-align: center; font: 700 15px Fredoka; border: 2px solid #d9c6a0; border-radius: 7px; background: #fff; }
.card2.price { display: flex; align-items: center; gap: 10px; } .v.g { color: #2e8a35 !important; font-weight: 700; } .v.y { color: #c98a10 !important; font-weight: 700; } .v.r { color: var(--red) !important; font-weight: 700; } .szl { color: #8a7050 !important; }
.lockb { font-family: 'Lilita One'; font-size: 12px; color: #8a7050; text-align: center; border: 2px dashed #d9c6a0; border-radius: 8px; padding: 6px 10px; } .lockb.cream { background: #fffaf0; }
#lmOrder { width: 240px; padding: 10px 12px; border-left: 2px solid #e1c99a; background: #fffaf0; display: flex; flex-direction: column; gap: 6px; position: relative; }
#lmOrder::after { content: '🌲🌲🌲'; position: absolute; right: 10px; top: 40%; opacity: .12; font-size: 34px; pointer-events: none; }
#lmOrder h4 { margin: 0; font-family: 'Lilita One'; font-weight: 400; font-size: 16px; color: var(--green); }
.olist { flex: 1; overflow: auto; font-size: 12px; } .olist .ol { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; border-bottom: 1px dashed #e1c99a; } .olist .ol span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .olist .empty { color: #a08a6a; font-size: 12px; padding-top: 6px; }
.tot { display: flex; flex-direction: column; } .tot .cnt { font-family: 'Lilita One'; font-size: 13px; color: #6a5a40; } .tot .big { font-family: 'Lilita One'; font-size: 20px; color: var(--green); } .tot small { font-size: 11px; color: #6a5a40; } .tot .bad { color: var(--red); font-weight: 700; }
.recent { font-size: 11px; color: #6a5a40; max-height: 92px; overflow: auto; } .recent b { font-family: 'Lilita One'; font-weight: 400; color: var(--green); font-size: 12px; }
.filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; } .filters button { font-size: 11px; font-weight: 700; background: var(--green); color: #fff; border-radius: 7px; padding: 4px 9px; } .filters button.on { background: #f0ae2a; color: #4a2a00; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item { background: #fffaf0; border: 2px solid #e1c99a; border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; position: relative; }
.item.sel { border-color: #f0ae2a; box-shadow: 0 0 0 2px #ffd76b; }
.item .ic { width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%; background: #f2e8d2; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.item b { display: block; font-family: 'Lilita One'; font-weight: 400; font-size: 12px; color: #3a3a2a; } .item small { color: var(--green); font-weight: 700; font-size: 13px; }
.item .minus { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; background: var(--red); color: #fff; border-radius: 6px; font-weight: 700; line-height: 22px; }
.item .qb, .ditem .qb { position: absolute; right: 4px; top: 4px; background: #f0ae2a; color: #4a2a00; border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: 12px; }
.card2.staff { display: flex; gap: 10px; align-items: center; } .card2.staff .mid { flex: 1; } .card2.staff .mid small { display: block; font-size: 11px; color: #5a4a30; } .rbtn { display: flex; gap: 6px; } .mini { font-size: 10px; font-weight: 700; background: #e9dcc0; border-radius: 5px; padding: 1px 6px; color: #6a5a40; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 0 6px; background: #d9d0bc; color: #5a4a30; } .tag.on { background: #2e8a35; color: #fff; }
.bar { height: 8px; background: #e3d8c0; border-radius: 5px; overflow: hidden; margin: 3px 0; } .bar i { display: block; height: 100%; background: #3fae4a; }
.card2.hq { display: flex; gap: 10px; align-items: flex-start; } .reqs { margin: 4px 0; } .req { display: flex; justify-content: space-between; font-size: 12px; color: #c98a10; font-weight: 700; } .req.ok { color: #2e8a35; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; } .stat { background: #fffaf0; border: 2px solid #e1c99a; border-radius: 10px; padding: 8px 10px; } .stat small { display: block; font-size: 11px; color: #8a7050; } .stat b { font-family: 'Lilita One'; font-weight: 400; font-size: 22px; color: var(--green); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 8px; } .chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; } .chart i { width: 70%; background: #f0ae2a; border-radius: 6px 6px 0 0; position: relative; min-height: 3px; } .chart em { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; font-weight: 700; } .chart small { font-size: 10px; color: #8a7050; }
.quest { display: flex; align-items: center; gap: 10px; } .quest .num { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; } .quest .rw { font-weight: 700; color: var(--green); font-size: 13px; white-space: nowrap; } .quest.claimed { opacity: .55; } .quest.locked { opacity: .7; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .day { background: #fffaf0; border: 2px solid #e1c99a; border-radius: 10px; padding: 6px 2px; text-align: center; position: relative; } .day small { font-size: 10px; font-weight: 700; color: #8a7050; display: block; } .day i { font-style: normal; font-size: 22px; } .day b { display: block; font-family: 'Lilita One'; font-weight: 400; font-size: 13px; color: var(--green); } .day.got { opacity: .5; } .day.now { border-color: #f0ae2a; box-shadow: 0 0 0 2px #ffd76b; } .day.big { border-color: #e8a31a; } .day em { position: absolute; top: 2px; right: 4px; font-style: normal; color: #2e8a35; font-weight: 700; }
.codein { width: 100%; padding: 12px; background: #2a1e14; color: #fff; text-align: center; font: 900 20px 'Lilita One'; border: 3px solid var(--tan); border-radius: 10px; letter-spacing: 2px; }
#menuWrap { position: fixed; inset: 0; background: rgba(10,16,12,.6); z-index: 25; display: flex; align-items: center; justify-content: center; gap: 18px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 130px); gap: 14px; } .mbtn { height: 120px; border-radius: 16px; background: var(--cream); border: 4px solid #c47a2a; box-shadow: 0 5px 0 #8b4d16; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; } .mbtn i { font-style: normal; font-size: 40px; } .mbtn b { font-family: 'Lilita One'; font-weight: 400; color: var(--green); font-size: 14px; } .mbtn.hot { background: #fff2c2; border-color: #e8a31a; }
.mclose { align-self: center; background: linear-gradient(#e0453b, #b9281f); color: #fff; font-family: 'Lilita One'; font-size: 16px; padding: 12px 18px; border-radius: 12px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
#decorPanel { position: fixed; left: 8px; top: 64px; bottom: 8px; width: min(280px, 44vw); background: var(--cream); border: 5px solid #a8662a; border-radius: 14px; z-index: 18; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
#decorPanel .dh { background: linear-gradient(#24603a, #1b4a2c); color: #fff; font-family: 'Lilita One'; font-size: 18px; padding: 8px 12px; } .dsub { font-size: 12px; color: #6a5a40; margin: 6px 10px; } .dsearch { display: flex; gap: 6px; margin: 0 10px 6px; } .dsearch input { flex: 1; min-width: 0; font: 600 13px Fredoka; padding: 6px 8px; border: 2px solid #d9c6a0; border-radius: 8px; } .dsearch .b { padding: 6px 8px; font-size: 11px; }
.dgrid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px; align-content: start; } .dgrid .empty { grid-column: span 3; font-size: 12px; color: #6a5a40; background: #efe6d2; border-radius: 8px; padding: 12px; text-align: center; }
.ditem { position: relative; background: #fffaf0; border: 2px solid #e1c99a; border-radius: 9px; padding: 6px 2px; text-align: center; cursor: pointer; } .ditem .ic { font-size: 28px; } .ditem small { display: block; font-size: 10px; font-weight: 700; color: #3a3a2a; }
.dbtns { display: flex; gap: 6px; padding: 8px 10px; } .dbtns .b { flex: 1; padding: 8px 4px; font-size: 13px; } .dhint { font-size: 10px; color: #8a7050; margin: 0 10px 8px; }

/* loading and start */
#loading { position: fixed; inset: 0; z-index: 50; background: #1f4a2a; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; transition: opacity .5s; background-image: radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 2px), radial-gradient(circle, rgba(255,255,255,.4) 1px, transparent 2px); background-size: 90px 90px, 53px 53px; }
#loading.off { opacity: 0; pointer-events: none; }
#loading h1 { font-family: 'Lilita One'; font-weight: 400; font-size: clamp(30px, 6vw, 64px); margin: 0 0 30px; text-align: center; }
#loading .lb { width: min(44vw, 520px); height: 22px; background: #0e2414; border-radius: 12px; overflow: hidden; border: 2px solid #0a1a0e; } #loadFill { height: 100%; width: 0; background: linear-gradient(#ffd76b, #f0ae2a); border-radius: 12px; transition: width .2s; }
#loading p { color: #c9d8c9; margin-top: 14px; }
#start { position: fixed; inset: 0; z-index: 30; display: flex; align-items: stretch; justify-content: flex-end; }
#start .card { width: min(440px, 94vw); background: var(--cream); border-left: 6px solid #a8662a; box-shadow: -6px 0 20px rgba(0,0,0,.3); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
#start h1 { margin: 0; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 34px; color: var(--green); text-align: center; }
#start .sub { margin: 0; color: #e07b00; text-align: center; font-weight: 700; }
#start .tabs { display: flex; gap: 6px; justify-content: center; } #start .tabs button { font-family: 'Lilita One'; font-size: 13px; padding: 6px 16px; border-radius: 8px; background: #fffaf0; border: 2px solid #d9c6a0; color: #8a7050; } #start .tabs button.on { background: var(--green); color: #fff; border-color: var(--green); } #start .tabs button:disabled { opacity: .5; cursor: not-allowed; }
#slots { display: flex; flex-direction: column; gap: 8px; }
.save { display: flex; align-items: center; gap: 10px; background: #fffaf0; border: 2px solid #e1c99a; border-radius: 12px; padding: 10px; } .save .ic { width: 44px; height: 44px; border-radius: 50%; background: #c62828; display: flex; align-items: center; justify-content: center; font-size: 22px; } .save .l { flex: 1; min-width: 0; } .save .l b { font-family: 'Lilita One'; font-weight: 400; font-size: 17px; color: var(--ink); display: block; } .save .l small { font-size: 12px; color: #6a5a40; } .save .g { color: var(--green); font-weight: 700; } .save .y { color: #c98a10; font-weight: 700; } .save .r { display: flex; gap: 6px; }
#slots .empty { text-align: center; color: #8a7050; padding: 20px; background: #efe6d2; border-radius: 10px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: #6a5a40; font-size: 13px; } .fld input { font: 700 17px Fredoka; padding: 10px; border: 2px solid #d9c6a0; border-radius: 10px; }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .reg { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fffaf0; border: 2px solid #e1c99a; border-radius: 10px; padding: 8px 4px; } .reg.on { border-color: #f0ae2a; box-shadow: 0 0 0 2px #ffd76b; } .reg i { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; } .reg b { font-family: 'Lilita One'; font-weight: 400; font-size: 13px; } .reg small { font-size: 10px; color: #8a7050; text-align: center; }
.row2b { display: flex; gap: 8px; }

/* phone */
#stick { position: absolute; left: 22px; bottom: 26px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35); }
#knob { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.65); }
#actBtn, #jumpBtn { position: absolute; right: 22px; width: 70px; height: 70px; border-radius: 50%; font-family: 'Lilita One', sans-serif; font-size: 24px; color: #fff; background: rgba(46,125,58,.85); border: 3px solid rgba(255,255,255,.7); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
#actBtn { bottom: 104px; } #jumpBtn { bottom: 24px; background: rgba(40,40,50,.6); }
body.touch #bottomBtns { left: auto; right: 104px; transform: scale(var(--hs, 1)); transform-origin: right bottom; bottom: 22px; }
body.touch #rightBtns { top: 36%; }
body.touch .hint { display: none; }
@media (max-height: 500px) {
  .sq { width: 50px; height: 50px; } .sq i { font-size: 21px; } #leftBtns { grid-template-columns: 50px 50px; gap: 6px; } .sq.wide { height: 36px; }
  .pill.big span { font-size: 17px; } .pill { min-width: 120px; padding: 2px 8px; } .pill.big { min-width: 140px; }
  #banner { min-width: 260px; padding: 3px 30px 5px; } #banner b { font-size: 16px; } #banner span { font-size: 11px; }
  .tool { width: 62px; height: 52px; } .tool i { font-size: 19px; } #lmTabs { width: 132px; } #lmTabs button { font-size: 12px; padding: 7px; } #lmOrder { width: 190px; }
  .win { height: 92vh; top: 50%; } .mbtn { height: 90px; } .mgrid { grid-template-columns: repeat(3, 110px); }
}
@media (max-width: 760px) { #lmOrder { display: none !important; } #lmTabs { width: 112px; } #lmTabs button { font-size: 11px; } #banner { max-width: 74vw; min-width: 0; } .grid { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(2, 1fr); } }

.b.pl { min-width: 120px; }
.frame .row { flex-wrap: nowrap; }
@media (max-width: 760px) { .frame .row { flex-wrap: wrap; } }
body.touch #review { right: auto; left: 50%; margin-left: max(-150px, -23vw); bottom: auto; top: calc(64px * var(--hs, 1)); width: min(300px, 46vw); }

#tutHand { position: fixed; z-index: 60; pointer-events: none; animation: nudge .7s ease-in-out infinite; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
@keyframes nudge { 50% { transform: translateX(10px); } }
