:root{--paper:#f7f6f0;--sea:#dcebea;--sea2:#c9dfdd;--ink:#21363b;--muted:#6d7e80;--red:#ee604c;--yellow:#f3c952;--blue:#4f7d8d;--line:rgba(33,54,59,.16);--shadow:#21363b}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}html{height:100%;touch-action:manipulation;background:#b8cfcd}body{min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#b8cfcd;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none;overflow:hidden}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}button:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.hidden{display:none!important}
.app-shell{position:relative;width:100%;max-width:520px;height:100vh;height:100dvh;margin:0 auto;overflow:hidden;background:var(--sea)}.app-shell::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:80;opacity:.18;background-image:radial-gradient(rgba(33,54,59,.22) .6px,transparent .8px);background-size:5px 5px;mix-blend-mode:multiply}
.topbar{position:absolute;z-index:30;top:0;left:0;right:0;height:74px;display:flex;align-items:center;justify-content:space-between;padding:calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 18px 8px;background:rgba(220,235,234,.94);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px}.brand>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--red);color:#fff;font:700 21px "Kaiti SC","STKaiti",serif;transform:rotate(-7deg);box-shadow:inset 0 0 0 2px rgba(255,255,255,.48)}.brand div{display:flex;flex-direction:column}.brand b{font-size:14px}.brand small{margin-top:1px;color:var(--muted);font-size:9px}.wallet{display:flex;flex-direction:column;align-items:flex-end}.wallet small{color:var(--muted);font-size:8px}.wallet strong{font:700 21px Georgia,serif}.wallet i{font-style:normal}
.view{position:absolute;z-index:2;inset:74px 0 68px;display:none;padding:15px 18px 22px;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.view.active{display:block;animation:viewIn .22s ease-out both}@keyframes viewIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.dayline{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;font-weight:700}.dayline b{color:var(--red);font-size:13px}.trend-board{position:relative;margin-top:13px;padding:17px 18px 18px;background:var(--paper);border:1.5px solid var(--ink);box-shadow:4px 5px 0 var(--ink);transform:rotate(-.4deg)}.trend-board::after{content:"";position:absolute;right:14px;top:12px;width:46px;height:46px;border:1px dashed #9aa6a4;border-radius:50%}.trend-pin{position:absolute;right:34px;top:30px;width:7px;height:7px;border-radius:50%;background:var(--red);z-index:2}.trend-board p{color:var(--blue);font-size:9px;font-weight:900}.trend-board h1{max-width:80%;margin-top:7px;font:900 24px/1.2 "Songti SC","STSong",serif;letter-spacing:-.03em}.trend-board>span{display:block;margin-top:8px;color:var(--muted);font-size:10px}.quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}.quick-stats button{display:flex;flex-direction:column;align-items:flex-start;padding:11px 12px;background:rgba(247,246,240,.54);border:1px solid var(--line);border-radius:9px;text-align:left}.quick-stats span{color:var(--muted);font-size:9px}.quick-stats b{margin-top:2px;font:700 22px Georgia,serif}.quick-stats small{color:var(--blue);font-size:8px}.today-work{margin-top:20px}.section-title{display:flex;align-items:flex-end;justify-content:space-between}.section-title small{color:var(--muted);font-size:9px}.section-title h2{font:900 24px "Songti SC","STSong",serif}.section-title>span{padding:5px 8px;background:var(--yellow);border:1px solid var(--ink);font-size:9px;font-weight:800;transform:rotate(2deg)}.work-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.work-card{min-height:84px;display:grid;grid-template-columns:36px 1fr 12px;align-items:center;gap:8px;padding:10px;background:var(--paper);border:1px solid var(--ink);border-radius:9px;text-align:left}.work-card:active{transform:translateY(1px)}.work-card div{min-width:0}.work-card b{display:block;font-size:11px}.work-card small{display:block;margin-top:4px;color:var(--muted);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-card i{font-style:normal}.work-icon,.work-emoji,.live-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--sea2);font-weight:900}.shell-mini::before{content:"";width:23px;height:17px;border:1px solid var(--ink);border-radius:60% 40% 50% 50%;background:#b9afa6;transform:rotate(-8deg)}.live-card{background:#fff1ed}.live-dot{background:var(--red);color:#fff}.work-emoji{font-family:"Kaiti SC","STKaiti",serif;font-size:16px}.tomorrow-note{display:flex;gap:9px;margin-top:14px;padding:10px 0;border-top:1px dashed #9db0ae;color:var(--muted);font-size:9px}.tomorrow-note span{flex:none;color:var(--blue);font-weight:900}.end-day,.rescue-button{width:100%;margin-top:4px;padding:13px 15px;border:1.5px solid var(--ink);border-radius:8px;background:transparent;font-size:11px;font-weight:800;text-align:left}.end-day span{float:right}.rescue-button{background:var(--yellow);text-align:center}.legal-note{margin-top:10px;text-align:center;color:#829291;font-size:8px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between}.page-heading small{color:var(--blue);font-size:9px;font-weight:800}.page-heading h2{margin-top:2px;font:900 29px "Songti SC","STSong",serif}.page-heading>span{padding:5px 8px;border:1px solid var(--ink);border-radius:99px;font-size:9px;font-weight:800}.page-lede{margin-top:7px;color:var(--muted);font-size:10px;line-height:1.55}
.first-step{position:relative;padding:17px 17px 18px;background:var(--yellow);border:1.5px solid var(--ink);box-shadow:4px 5px 0 var(--ink);transform:rotate(-.4deg)}.first-step>span{display:inline-block;padding:4px 7px;background:var(--red);color:#fff;font-size:8px;font-weight:900}.first-step h1{max-width:90%;margin-top:9px;font:900 28px/1.12 "Songti SC","STSong",serif;letter-spacing:-.04em}.first-step p{max-width:90%;margin-top:8px;color:#536365;font-size:10px;line-height:1.55}.first-step::after{content:"1";position:absolute;right:15px;top:15px;color:rgba(33,54,59,.17);font:700 56px Georgia,serif}.market-heading{margin-top:22px}.choice-guide{margin-top:12px;padding:11px 12px;background:#fff1bd;border:1px solid var(--ink);border-radius:7px;box-shadow:3px 3px 0 var(--ink)}.choice-guide b{font-size:11px}.choice-guide p{margin-top:3px;color:var(--muted);font-size:9px}.market-list.beginner .market-item{border-width:1.5px}.market-list.beginner .market-title strong{font-size:20px}
.market-list{display:grid;gap:11px;margin-top:16px}.market-item{position:relative;display:grid;grid-template-columns:88px 1fr;gap:12px;padding:12px;background:var(--paper);border:1px solid var(--ink);border-radius:10px}.market-item.sold{opacity:.48}.market-shell{position:relative;display:grid;place-items:center;min-height:104px;background:repeating-linear-gradient(90deg,transparent 0 17px,rgba(47,98,95,.1) 17px 19px),repeating-linear-gradient(0deg,transparent 0 17px,rgba(47,98,95,.1) 17px 19px);border:1px solid var(--line);border-radius:8px}.market-shell::before{content:"";width:65px;height:82px;border:1.5px solid #596765;border-radius:50% 50% 44% 44%/60% 60% 40% 40%;background:linear-gradient(135deg,var(--shell-light),var(--shell-dark));box-shadow:inset -7px -8px 12px rgba(33,54,59,.2),3px 4px 0 rgba(33,54,59,.13);transform:rotate(var(--tilt))}.market-main{min-width:0}.market-title{display:flex;justify-content:space-between;align-items:baseline}.market-title b{font-size:14px}.market-title strong{color:var(--red);font:700 17px Georgia,serif}.clues{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.clues span{padding:4px 6px;border-radius:4px;background:var(--sea);color:#52686a;font-size:8px}.seller-note{margin-top:8px;color:var(--blue);font-family:"Kaiti SC","STKaiti",serif;font-size:11px}.buy-button{width:100%;margin-top:8px;padding:8px;border-radius:6px;background:var(--red);color:#fff;font-size:10px;font-weight:900}.buy-button:disabled{background:#b5bebc}
.segmented{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;padding:3px;background:rgba(33,54,59,.08);border-radius:8px}.segmented button{padding:8px;border-radius:6px;color:var(--muted);font-size:10px;font-weight:800}.segmented button.active{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px rgba(33,54,59,.13)}.inventory-pane{display:none;margin-top:14px}.inventory-pane.active{display:grid;gap:10px}.empty-box{padding:38px 20px;border:1px dashed #91a6a4;border-radius:10px;text-align:center;color:var(--muted)}.empty-box b{display:block;color:var(--ink);font:900 18px "Songti SC","STSong",serif}.empty-box p{margin-top:6px;font-size:9px}.stock-card{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:center;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:9px}.stock-visual{display:grid;place-items:center;width:50px;height:50px;border-radius:8px;background:var(--sea)}.stock-visual.shell::before{content:"";width:35px;height:41px;border:1px solid #5a6865;border-radius:52% 48% 45% 55%;background:linear-gradient(135deg,var(--shell-light),var(--shell-dark));transform:rotate(var(--tilt))}.pearl-dot{display:block;width:var(--size,32px);height:var(--size,32px);max-width:38px;max-height:38px;border:1px solid #60706c;border-radius:50%;background:var(--pearl);box-shadow:inset -4px -5px 8px rgba(42,52,55,.15)}.stock-info b{display:block;font-size:11px}.stock-info small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.stock-info em{display:block;margin-top:4px;color:var(--blue);font-style:normal;font-size:9px}.stock-actions{display:flex;flex-direction:column;gap:5px}.stock-actions button{padding:6px 8px;border:1px solid var(--ink);border-radius:5px;font-size:8px;font-weight:800}.stock-actions .open-btn{background:var(--red);color:#fff}.stock-price{color:var(--red);font:700 14px Georgia,serif}
.inventory-pane.pearl-grid{grid-template-columns:repeat(4,1fr);gap:8px}.pearl-grid .empty-box{grid-column:1/-1}.pearl-card,.pick-pearl{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:92px;padding:8px 4px;background:var(--paper);border:1px solid var(--line);border-radius:8px}.pearl-card b,.pick-pearl b{margin-top:6px;font-size:8px}.pearl-card small,.pick-pearl small{margin-top:2px;color:var(--muted);font-size:7px}.mini-sell{margin-top:6px;padding:4px 6px;border:1px solid var(--ink);border-radius:4px;color:var(--red);font-size:7px;font-weight:800}.jewelry-card{display:grid;grid-template-columns:54px 1fr auto;gap:10px;align-items:center;padding:11px;background:var(--paper);border:1px solid var(--line);border-radius:9px}.jewelry-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:1px dashed var(--blue);font:700 23px "Kaiti SC","STKaiti",serif}.jewelry-card b{font-size:11px}.jewelry-card small{display:block;margin-top:4px;color:var(--muted);font-size:8px}.jewelry-card strong{color:var(--red);font:700 15px Georgia,serif}
.pearl-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:14px;padding:10px;border:1px dashed #8da3a1;border-radius:10px}.pick-pearl{min-height:84px}.pick-pearl.selected{background:#fff1bd;border:1.5px solid var(--ink);box-shadow:2px 3px 0 var(--ink)}.recipe-list{display:grid;gap:8px;margin-top:14px}.recipe{display:grid;grid-template-columns:43px 1fr auto;align-items:center;gap:9px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:9px}.recipe-icon{display:grid;place-items:center;width:41px;height:41px;border:1px solid var(--ink);border-radius:50%;font:700 19px "Kaiti SC","STKaiti",serif}.recipe b{font-size:11px}.recipe small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.recipe button{padding:7px 9px;border-radius:5px;background:var(--red);color:#fff;font-size:8px;font-weight:900}.recipe button:disabled{background:#b4bebc}
.order-list{display:grid;gap:11px;margin-top:15px}.order-card{padding:13px;background:var(--paper);border:1px solid var(--ink);border-radius:9px}.order-card.done{opacity:.48}.order-person{display:flex;justify-content:space-between;align-items:center}.order-person b{font-size:12px}.order-person span{color:var(--red);font:700 15px Georgia,serif}.order-want{margin-top:8px;font:900 19px "Songti SC","STSong",serif}.order-note{margin-top:4px;color:var(--blue);font-family:"Kaiti SC","STKaiti",serif;font-size:11px}.order-card button{width:100%;margin-top:10px;padding:8px;border:1px solid var(--ink);border-radius:5px;background:var(--yellow);font-size:9px;font-weight:900}.order-card button:disabled{background:#e0e2dc;color:#9aa5a4}
.live-room{inset:0!important;padding:calc(16px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 14px calc(18px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))!important;background:#2a3131;color:#fff}.live-head{display:flex;justify-content:space-between;align-items:center}.live-head span{padding:7px 9px;border-radius:5px;background:var(--red);font-size:10px;font-weight:900}.live-head i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#fff}.live-head b{font-size:9px;font-weight:500}.live-stage{position:relative;height:305px;margin-top:12px;overflow:hidden;border-radius:13px;background:linear-gradient(#9bb8b3 0 52%,#d0bbb0 52%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.live-table{position:absolute;left:50%;top:46%;width:230px;height:130px;transform:translateX(-50%);border-radius:50% 50% 12px 12px;background:#e6ded3;border:2px solid #3b4847}.phone-stand{position:absolute;right:-28px;top:-93px;width:13px;height:105px;background:#3c4847}.phone-stand::before{content:"";position:absolute;left:-15px;top:-14px;width:43px;height:70px;border:3px solid #3c4847;border-radius:8px;background:#202626}.live-oyster{position:absolute;left:50%;top:12px;width:125px;height:90px;transform:translateX(-50%)}.live-oyster::before,.live-oyster::after{content:"";position:absolute;left:8px;width:110px;height:48px;border:1px solid #53615f;background:#aaa49d}.live-oyster::before{top:0;border-radius:60% 40% 48% 52%;transform:rotate(-8deg)}.live-oyster::after{top:43px;border-radius:45% 55% 60% 40%;background:#e1d0c3}.chat-feed{position:absolute;left:10px;right:10px;bottom:9px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.chat-feed p{padding:4px 7px;border-radius:99px;background:rgba(24,29,29,.52);font-size:8px}.chat-feed b{color:#ffd86c}.live-summary{display:flex;justify-content:space-between;margin-top:9px;color:#bdc9c7;font-size:9px}.live-summary b{color:#fff}.live-room h3{margin-top:14px;font-size:12px}.live-goods{display:flex;gap:8px;margin-top:8px;overflow-x:auto;padding-bottom:5px}.live-good{flex:0 0 140px;padding:9px;border-radius:8px;background:#f7f6f0;color:var(--ink)}.live-good b{display:block;font-size:10px}.live-good small{display:block;margin-top:3px;color:var(--muted);font-size:7px}.live-good button{width:100%;margin-top:7px;padding:7px;border-radius:5px;background:var(--red);color:#fff;font-size:8px;font-weight:900}.leave-live{width:100%;margin-top:13px;padding:11px;border:1px solid #78817f;border-radius:7px;color:#c7cfcd;font-size:9px}
.open-view{inset:0!important;padding:calc(17px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 18px calc(20px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))!important;background:var(--sea)}.plain-back{padding:7px 0;color:var(--blue);font-size:10px;font-weight:800}.open-copy{margin-top:15px;text-align:center}.open-copy small{display:inline-block;padding:4px 7px;background:var(--yellow);border:1px solid var(--ink);font-size:8px;font-weight:900}.open-copy h2{margin-top:9px;font:900 30px "Songti SC","STSong",serif}.open-copy p{margin-top:5px;color:var(--muted);font-size:10px}.open-stage{height:330px;display:grid;place-items:center;background:repeating-linear-gradient(90deg,transparent 0 33px,rgba(48,98,95,.1) 33px 35px),repeating-linear-gradient(0deg,transparent 0 33px,rgba(48,98,95,.1) 33px 35px);margin:14px -18px}.game-oyster{position:relative;width:280px;height:225px;transform:rotate(-2deg)}.game-shell{position:absolute;left:15px;width:250px;height:112px;border:2px solid #526260;background:linear-gradient(145deg,#d9cec3,#999b96 68%,#727a78);box-shadow:inset -15px -12px 22px rgba(65,75,73,.2),5px 7px 0 rgba(32,52,58,.17);transition:transform .15s linear}.game-shell-top{z-index:4;top:20px;border-radius:58% 42% 50% 50%/80% 74% 26% 20%;transform-origin:18% 92%;transform:rotate(-4deg)}.game-shell-bottom{z-index:1;top:112px;border-radius:45% 55% 58% 42%/17% 20% 80% 83%;background:linear-gradient(12deg,#878681,#d9cbc0 54%,#eee3d7)}.game-pearl{position:absolute;z-index:3;left:99px;top:105px;width:82px;height:82px;border:2px solid #566461;border-radius:50%;opacity:0;transform:scale(.7);background:radial-gradient(circle at 32% 27%,#fff 0 6%,#fff8dc 17%,#bededc 48%,#a88daf 78%,#604f77);transition:.35s}.game-oyster.open .game-shell-top{transform:translate(-8px,-63px) rotate(-28deg)}.game-oyster.open .game-pearl{opacity:1;transform:scale(1)}.pry-control{position:relative;height:62px;padding:6px;border:2px solid var(--ink);border-radius:10px;background:var(--paper);box-shadow:3px 4px 0 var(--ink);overflow:hidden;touch-action:none}.pry-fill{position:absolute;inset:0 auto 0 0;width:0;background:#f7d8d0}.pry-thumb{position:absolute;z-index:2;left:6px;top:6px;width:48px;height:46px;display:grid;place-items:center;border-radius:7px;background:var(--red);color:#fff}.pry-control>span{position:absolute;inset:0;display:grid;place-items:center;padding-left:30px;color:var(--muted);font-size:10px;font-weight:700}.open-result{margin-top:-270px;position:relative;z-index:8;padding:14px;background:var(--paper);border:1.5px solid var(--ink);border-radius:10px;box-shadow:5px 6px 0 var(--ink)}#openedPearls{display:flex;justify-content:center;gap:10px}.opened-pearl{text-align:center}.opened-pearl .pearl-dot{margin:0 auto}.opened-pearl b{display:block;margin-top:5px;font-size:8px}.opened-pearl small{color:var(--muted);font-size:7px}.open-result button{width:100%;margin-top:12px;padding:11px;border-radius:6px;background:var(--red);color:#fff;font-size:10px;font-weight:900}
.hammer-spots{position:absolute;z-index:6;inset:0;transition:opacity .2s}.hammer-spot{position:absolute;left:var(--x);top:var(--y);width:43px;height:43px;margin:-21px 0 0 -21px;border:1px dashed rgba(33,54,59,.34);border-radius:50%;background:rgba(247,246,240,.13);touch-action:manipulation}.hammer-spot::before{content:"";position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:rgba(33,54,59,.35);transform:translate(-50%,-50%)}.hammer-spot.hinted{border-color:rgba(238,96,76,.55);background:rgba(243,201,82,.12)}.hammer-spot.hinted::after{content:"";position:absolute;left:12px;top:19px;width:18px;height:1px;background:rgba(33,54,59,.58);transform:rotate(-18deg);box-shadow:6px 4px 0 -0.2px rgba(33,54,59,.45)}.hammer-spot.good{border-style:solid;border-color:var(--red);background:rgba(238,96,76,.13)}.hammer-spot.good::before{width:24px;height:2px;border-radius:0;background:var(--red);transform:translate(-50%,-50%) rotate(-20deg);box-shadow:7px 6px 0 -0.5px var(--red),-5px 7px 0 -0.5px var(--red)}.hammer-spot.bad{border-style:solid;border-color:#5f706d;background:rgba(33,54,59,.12)}.hammer-spot.bad::before{width:13px;height:13px;border:2px solid #5f706d;background:transparent}.game-oyster.open .hammer-spots{opacity:0;pointer-events:none}.hammer-tool{position:absolute;z-index:10;left:50%;top:12px;width:62px;height:82px;opacity:0;pointer-events:none;transform-origin:50% 90%}.hammer-tool span{position:absolute;left:4px;top:3px;width:40px;height:23px;border:2px solid var(--ink);border-radius:5px;background:var(--yellow);box-shadow:3px 3px 0 rgba(33,54,59,.18)}.hammer-tool i{position:absolute;left:36px;top:19px;width:10px;height:59px;border:2px solid var(--ink);border-radius:4px;background:#a86f4e;transform:rotate(-18deg);transform-origin:top}.hammer-tool.swing{opacity:1;animation:hammerSwing .36s ease-out both}@keyframes hammerSwing{0%{transform:translate(-50%,-65%) rotate(-28deg)}55%{transform:translate(-50%,-30%) rotate(14deg)}72%{transform:translate(-50%,-35%) rotate(8deg)}100%{transform:translate(-50%,-54%) rotate(-10deg);opacity:0}}.hammer-panel{position:relative;padding:11px 12px 12px;border:1.5px solid var(--ink);border-radius:9px;background:var(--paper);box-shadow:4px 5px 0 var(--ink)}.hammer-readout{display:flex;justify-content:space-between;color:var(--muted);font-size:9px}.hammer-readout b{color:var(--ink);font-size:11px}.hammer-tip{display:flex;align-items:center;gap:10px;margin-top:9px}.small-hammer{position:relative;display:block;width:39px;height:36px}.small-hammer::before{content:"";position:absolute;left:0;top:2px;width:26px;height:15px;border:1.5px solid var(--ink);border-radius:3px;background:var(--yellow)}.small-hammer i{position:absolute;left:24px;top:13px;width:7px;height:27px;border:1.5px solid var(--ink);border-radius:2px;background:#a86f4e;transform:rotate(-20deg);transform-origin:top}.hammer-tip p{display:flex;flex-direction:column}.hammer-tip b{font-size:10px}.hammer-tip small{margin-top:2px;color:var(--muted);font-size:8px}.damage-track{height:5px;margin-top:10px;border-radius:99px;background:#dfe4df;overflow:hidden}.damage-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--yellow),var(--red));transition:width .2s}.hammer-panel.danger{background:#fff0eb}.hammer-panel.danger .hammer-readout span:last-child b{color:var(--red)}
.bottom-nav{position:absolute;z-index:40;left:0;right:0;bottom:0;height:68px;display:flex;padding:7px 9px calc(8px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));background:rgba(247,246,240,.96);border-top:1px solid var(--line)}.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#7b8988}.bottom-nav button.nav-hidden{display:none}.bottom-nav span{font:700 15px "Kaiti SC","STKaiti",serif}.bottom-nav b{font-size:8px}.bottom-nav button.active{color:var(--red)}
.sheet-backdrop{position:fixed;z-index:100;inset:0;display:grid;place-items:end center;background:rgba(33,54,59,.55);opacity:0;pointer-events:none;transition:.2s}.sheet-backdrop.open{opacity:1;pointer-events:auto}.day-sheet{width:100%;max-width:520px;padding:24px 20px calc(24px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));background:var(--paper);border-radius:18px 18px 0 0;transform:translateY(100%);transition:.28s}.sheet-backdrop.open .day-sheet{transform:none}.sheet-tape{display:inline-block;padding:5px 8px;background:var(--yellow);border:1px solid var(--ink);font-size:9px;font-weight:900;transform:rotate(-2deg)}.day-sheet h2{margin-top:10px;font:900 28px "Songti SC","STSong",serif}.day-numbers{display:grid;grid-template-columns:repeat(3,1fr);margin-top:16px;padding:13px 0;border-block:1px dashed #9aa7a5}.day-numbers div{display:flex;flex-direction:column}.day-numbers div+div{padding-left:11px;border-left:1px solid #d1d6d3}.day-numbers small{color:var(--muted);font-size:8px}.day-numbers b{margin-top:3px;font:700 19px Georgia,serif}.day-sheet>p{margin-top:14px;color:var(--blue);font-family:"Kaiti SC","STKaiti",serif;font-size:12px}.next-trend{margin-top:14px;padding:10px;background:var(--sea)}.next-trend small{display:block;color:var(--muted);font-size:8px}.next-trend b{display:block;margin-top:2px;font-size:12px}.day-sheet button{width:100%;margin-top:15px;padding:13px;border:2px solid var(--ink);border-radius:7px;background:var(--red);color:#fff;box-shadow:3px 4px 0 var(--ink);font-size:10px;font-weight:900}.toast{position:fixed;z-index:120;left:50%;bottom:calc(82px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));max-width:86%;padding:10px 15px;border:2px solid var(--ink);border-radius:7px;background:var(--yellow);font-size:10px;font-weight:800;box-shadow:3px 4px 0 var(--ink);transform:translate(-50%,14px);opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-height:700px){.trend-board{padding:12px 15px}.trend-board h1{font-size:20px}.quick-stats{margin-top:10px}.today-work{margin-top:12px}.work-card{min-height:68px}.tomorrow-note{margin-top:9px}.open-stage{height:270px}.live-stage{height:260px}}@media(min-width:521px){.app-shell{box-shadow:0 0 60px rgba(33,54,59,.3)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Free-strike clam: hand-painted game prop rather than selectable target buttons. */
.open-stage{position:relative;height:346px;background-color:#d3e5e3;background-image:linear-gradient(rgba(52,101,98,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(52,101,98,.09) 1px,transparent 1px),radial-gradient(ellipse at 50% 73%,rgba(35,67,68,.13),transparent 43%);background-size:34px 34px,34px 34px,100% 100%}
.open-stage::before{content:"阿珠的开蚌垫";position:absolute;left:18px;bottom:14px;color:rgba(49,89,87,.42);font:800 8px "Kaiti SC","STKaiti",serif;letter-spacing:.18em;transform:rotate(-2deg)}
.game-oyster{width:316px;height:248px;transform:rotate(-2deg);filter:drop-shadow(0 11px 7px rgba(37,56,54,.18))}
.game-shell{left:8px;width:300px;border:2px solid #485a57;transition:transform .48s cubic-bezier(.2,.75,.25,1);overflow:hidden}
.game-shell-top{z-index:4;top:34px;height:174px;border-radius:61% 39% 48% 52%/57% 61% 39% 43%;transform-origin:14% 76%;transform:rotate(-1deg);background:
 radial-gradient(ellipse at 68% 25%,rgba(255,250,208,.62) 0 4%,rgba(255,255,255,.14) 8%,transparent 17%),
 repeating-radial-gradient(ellipse at 69% 23%,transparent 0 17px,rgba(28,54,49,.32) 19px 21px,rgba(214,206,142,.22) 22px 24px,transparent 26px 34px),
 linear-gradient(157deg,#9da47c 0 13%,#667a70 34%,#445f5b 58%,#6d6f55 78%,#454c43 100%);
 box-shadow:inset 8px 9px 13px rgba(239,231,174,.18),inset -14px -17px 25px rgba(23,38,37,.31),6px 7px 0 rgba(32,52,58,.17)}
.game-shell-top::before{content:"";position:absolute;inset:7px 8px;border:2px solid rgba(229,220,162,.22);border-radius:inherit;box-shadow:inset 0 -5px 0 rgba(33,50,47,.15)}
.game-shell-top::after{content:"";position:absolute;left:18px;right:16px;bottom:7px;height:10px;border-radius:50%;background:linear-gradient(90deg,#c9c39a 0 7%,transparent 7% 23%,#b7ad79 23% 31%,transparent 31% 72%,#d6cca0 72% 80%,transparent 80%);opacity:.86;transform:rotate(1deg)}
.game-shell-top>i{position:absolute;right:52px;top:26px;width:66px;height:13px;border-radius:50%;background:linear-gradient(90deg,transparent,rgba(250,244,204,.48),transparent);transform:rotate(13deg);filter:blur(.3px)}
.game-shell-bottom{z-index:1;top:64px;height:172px;border-radius:53% 47% 58% 42%/43% 45% 55% 57%;background:radial-gradient(ellipse at 51% 49%,#e9bfc0 0 25%,#d8aaa7 34%,#b98f86 44%,transparent 45%),repeating-radial-gradient(ellipse at 50% 49%,rgba(255,250,234,.4) 0 11px,rgba(111,107,98,.13) 13px 16px),linear-gradient(145deg,#ebe5d8,#afaca0 68%,#727c75);box-shadow:inset 0 0 0 10px rgba(91,101,91,.28),inset 0 0 0 14px rgba(242,232,213,.24),5px 8px 0 rgba(32,52,58,.17)}
.game-shell-bottom::after{content:"";position:absolute;inset:16px;border:2px solid rgba(83,92,86,.34);border-radius:inherit}
.game-shell-bottom>i{position:absolute;left:43px;bottom:28px;width:75px;height:9px;border-radius:50%;background:rgba(255,250,230,.35);transform:rotate(-16deg)}
.game-pearl{z-index:3;left:117px;top:113px;width:82px;height:82px}
.game-oyster.open .game-shell-top{transform:translate(-24px,-95px) rotate(-23deg)}
.game-oyster.open .hammer-surface{opacity:0;pointer-events:none}
.hammer-surface{position:absolute;z-index:7;inset:0;cursor:crosshair;touch-action:manipulation;outline:none;transition:opacity .2s}
.hammer-surface:focus-visible{outline:3px solid rgba(243,201,82,.75);outline-offset:5px;border-radius:48%}
.impact-layer{position:absolute;inset:0;pointer-events:none}
.impact-mark{position:absolute;width:38px;height:38px;margin:-19px 0 0 -19px;pointer-events:none;animation:impactPop .28s ease-out both}
.impact-mark::before,.impact-mark::after{content:"";position:absolute;left:50%;top:50%}
.impact-mark.good::before{width:34px;height:2px;background:#f0c66c;transform:translate(-50%,-50%) rotate(-23deg);box-shadow:10px 8px 0 -0.4px #e9b45a,-8px 9px 0 -0.5px #e9b45a}
.impact-mark.good::after{width:13px;height:20px;border-left:2px solid #efcf80;border-bottom:2px solid #efcf80;transform:translate(-3px,-3px) rotate(19deg) skew(-12deg)}
.impact-mark.bad::before{width:17px;height:12px;border:2px solid rgba(31,48,47,.7);border-radius:50%;transform:translate(-50%,-50%) rotate(8deg);box-shadow:inset 2px 2px 0 rgba(255,255,255,.18)}
.impact-mark.near::before{width:9px;height:9px;border:2px solid #f3c952;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 7px rgba(243,201,82,.25),0 0 0 14px rgba(243,201,82,.08)}
.impact-mark.miss::before{width:5px;height:5px;border-radius:50%;background:#61716d;transform:translate(-50%,-50%);box-shadow:-7px 5px 0 -1px #87938e,7px 4px 0 -1px #87938e}
@keyframes impactPop{0%{opacity:0;transform:scale(.25)}70%{opacity:1;transform:scale(1.15)}100%{transform:scale(1)}}
.hint-wash{position:absolute;z-index:0;width:112px;height:88px;margin:-44px 0 0 -56px;border-radius:50%;opacity:0;pointer-events:none;background:radial-gradient(ellipse,rgba(255,230,131,.38),rgba(255,230,131,.13) 48%,transparent 72%);filter:blur(2px)}
.hint-wash.show{animation:hintBreathe 2.4s ease-in-out 2}
@keyframes hintBreathe{0%,100%{opacity:0;transform:scale(.85)}35%,70%{opacity:1;transform:scale(1.12)}}
.hammer-tool{margin:-5px 0 0 -2px}
.hammer-panel{margin-top:-4px}
@media(max-height:700px){.open-stage{height:284px}.game-oyster{transform:rotate(-2deg) scale(.86)}}

/* Jewelry silhouettes replace character placeholders in recipes and inventory. */
.recipe{grid-template-columns:64px 1fr auto;min-height:76px}.jewelry-card{grid-template-columns:64px 1fr auto;min-height:78px}
.product-art{position:relative;width:58px;height:58px;flex:none;border-radius:12px;background:#e7efeb;box-shadow:inset 0 0 0 1px rgba(33,54,59,.1);overflow:hidden}
.product-art::after{content:"";position:absolute;inset:4px;border:1px dashed rgba(69,105,103,.15);border-radius:9px;pointer-events:none}.product-metal,.product-clasp,.product-beads span{position:absolute;display:block}.product-metal{border-color:#88775c}.product-clasp{z-index:2;background:#c4ad77;border:1px solid #74684e}.product-beads span{z-index:3;width:12px;height:12px;border:1px solid rgba(48,66,66,.45);border-radius:50%;background:var(--art-pearl);box-shadow:inset -2px -2px 3px rgba(38,49,50,.14)}
.product-pendant .product-metal{left:13px;top:7px;width:33px;height:37px;border:1.5px solid #8f7959;border-color:#8f7959 transparent transparent;border-radius:50%;transform:rotate(6deg)}.product-pendant .product-clasp{left:27px;top:28px;width:5px;height:8px;border-radius:3px}.product-pendant .product-beads span{left:23px;top:35px;width:16px;height:16px}
.product-earrings .product-metal{left:15px;top:12px;width:30px;height:8px;border-top:1.5px solid #8f7959}.product-earrings .product-metal::before,.product-earrings .product-metal::after{content:"";position:absolute;top:-4px;width:4px;height:8px;border:1.5px solid #8f7959;border-radius:50%}.product-earrings .product-metal::before{left:1px}.product-earrings .product-metal::after{right:1px}.product-earrings .product-beads span:nth-child(1){left:10px;top:27px;width:16px;height:16px}.product-earrings .product-beads span:nth-child(2){right:10px;top:27px;width:16px;height:16px}
.product-phone .product-metal{left:14px;top:8px;width:30px;height:40px;border:2px solid #789090;border-radius:15px 15px 7px 7px;transform:rotate(-26deg)}.product-phone .product-clasp{left:35px;top:8px;width:8px;height:9px;border-radius:2px;transform:rotate(-26deg)}.product-phone .product-beads span:nth-child(1){left:13px;top:32px}.product-phone .product-beads span:nth-child(2){left:22px;top:37px}.product-phone .product-beads span:nth-child(3){left:31px;top:41px}.product-phone .product-beads span:nth-child(4){left:40px;top:44px}
.product-hairpin .product-metal{left:8px;top:29px;width:44px;height:3px;border-radius:3px;background:#a7895e;transform:rotate(-12deg)}.product-hairpin .product-clasp{left:9px;top:24px;width:8px;height:12px;border-radius:50%}.product-hairpin .product-beads span:nth-child(1){left:18px;top:17px}.product-hairpin .product-beads span:nth-child(2){left:29px;top:14px}.product-hairpin .product-beads span:nth-child(3){left:39px;top:19px}
.product-bracelet .product-metal{left:10px;top:10px;width:38px;height:38px;border:2px solid #b1996e;border-radius:50%}.product-bracelet .product-beads span:nth-child(1){left:23px;top:5px}.product-bracelet .product-beads span:nth-child(2){left:38px;top:13px}.product-bracelet .product-beads span:nth-child(3){left:39px;top:31px}.product-bracelet .product-beads span:nth-child(4){left:23px;top:40px}.product-bracelet .product-beads span:nth-child(5){left:7px;top:31px}.product-bracelet .product-beads span:nth-child(6){left:7px;top:13px}
.product-necklace .product-metal{left:7px;top:5px;width:45px;height:43px;border:1.5px solid #9b815d;border-color:transparent #9b815d #9b815d;border-radius:0 0 50% 50%}.product-necklace .product-beads span{width:8px;height:8px}.product-necklace .product-beads span:nth-child(1){left:5px;top:14px}.product-necklace .product-beads span:nth-child(2){left:7px;top:23px}.product-necklace .product-beads span:nth-child(3){left:11px;top:31px}.product-necklace .product-beads span:nth-child(4){left:17px;top:37px}.product-necklace .product-beads span:nth-child(5){left:23px;top:41px}.product-necklace .product-beads span:nth-child(6){left:29px;top:41px}.product-necklace .product-beads span:nth-child(7){left:35px;top:37px}.product-necklace .product-beads span:nth-child(8){left:41px;top:31px}.product-necklace .product-beads span:nth-child(9){left:45px;top:23px}.product-necklace .product-beads span:nth-child(10){left:47px;top:14px}.product-necklace .product-beads span:nth-child(11){left:18px;top:8px}.product-necklace .product-beads span:nth-child(12){left:34px;top:8px}

/* Bracelet stringing bench. The ordered DOM is also the saved bead order. */
.string-view{inset:0!important;padding:calc(17px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 18px calc(20px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))!important;background:#dcebea;overflow-y:auto}.string-heading{margin-top:12px;text-align:center}.string-heading small{color:var(--blue);font-size:9px;font-weight:900;letter-spacing:.08em}.string-heading h2{margin-top:5px;font:900 29px "Songti SC","STSong",serif}.string-heading p{margin-top:5px;color:var(--muted);font-size:9px}.string-board{position:relative;height:322px;margin:18px -2px 0;border:1.5px solid var(--ink);border-radius:18px;background:#f4efe3;background-image:radial-gradient(rgba(73,85,77,.16) .7px,transparent .8px);background-size:6px 6px;box-shadow:5px 6px 0 var(--ink)}.board-tape{position:absolute;left:50%;top:-11px;padding:5px 10px;background:#f3c952;border:1px solid var(--ink);font-size:8px;font-weight:900;transform:translateX(-50%) rotate(-1deg)}.bracelet-cord{position:absolute;left:50%;top:49%;width:220px;height:190px;border:3px solid #a9956e;border-radius:50%;transform:translate(-50%,-50%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}.bracelet-cord::after{content:"";position:absolute;right:7px;top:24px;width:16px;height:7px;border:2px solid #8e7c5e;border-radius:50%;transform:rotate(34deg)}#strungBeads{position:absolute;inset:-3px}#strungBeads button{position:absolute;width:42px;height:42px;margin:-21px 0 0 -21px;border:2px solid rgba(48,66,66,.58);border-radius:50%;background:var(--string-pearl);box-shadow:inset -5px -5px 8px rgba(42,52,55,.16),2px 3px 0 rgba(33,54,59,.14);animation:stringSnap .25s cubic-bezier(.2,.9,.3,1.2)}#strungBeads button:nth-child(1){left:50%;top:0}#strungBeads button:nth-child(2){left:89%;top:25%}#strungBeads button:nth-child(3){left:89%;top:75%}#strungBeads button:nth-child(4){left:50%;top:100%}#strungBeads button:nth-child(5){left:11%;top:75%}#strungBeads button:nth-child(6){left:11%;top:25%}@keyframes stringSnap{from{opacity:0;transform:scale(.4) translateY(18px)}to{opacity:1;transform:none}}.string-board>p{position:absolute;left:0;right:0;bottom:19px;text-align:center;color:var(--blue);font-size:9px;font-weight:900}.loose-bead-label{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.loose-bead-label span{font:900 18px "Songti SC","STSong",serif}.loose-bead-label small{color:var(--muted);font-size:8px}.loose-bead-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.loose-string-pearl{position:relative;display:flex;flex-direction:column;align-items:center;min-height:91px;padding:8px 4px 5px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.loose-string-pearl .pearl-dot{width:34px;height:34px}.loose-string-pearl b{margin-top:4px;font-size:8px}.loose-string-pearl small{color:var(--muted);font-size:7px}.loose-string-pearl em{margin-top:3px;color:var(--red);font-style:normal;font-size:7px;font-weight:900}.tray-empty{grid-column:1/-1;padding:22px;border:1px dashed #8ba19f;border-radius:9px;text-align:center;color:var(--muted);font-size:9px}.finish-string{width:100%;margin-top:13px;padding:13px;border:2px solid var(--ink);border-radius:8px;background:var(--red);color:#fff;box-shadow:3px 4px 0 var(--ink);font-size:10px;font-weight:900}.finish-string:disabled{background:#aebbb8;color:#e8eeec;box-shadow:none;border-color:#7f908d}
@media(max-height:760px){.string-board{height:270px}.bracelet-cord{width:184px;height:152px}#strungBeads button{width:36px;height:36px;margin:-18px 0 0 -18px}.loose-string-pearl{min-height:78px}}

/* 2026-08 workshop redesign — sample book + velvet stringing bench. */
.workshop-view{background:#f4eee5;color:#30292b}.workshop-view::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(118deg,rgba(177,135,91,.08),transparent 31%),radial-gradient(circle at 92% 4%,rgba(114,43,57,.1),transparent 22%)}
.workshop-view>*{position:relative}.workshop-heading small{color:#8f5f4f!important;font-family:Georgia,serif;letter-spacing:.12em}.workshop-heading h2{margin-top:5px;font:900 30px/1.05 "Songti SC","STSong",serif;color:#34282c}.workshop-heading>span{padding:7px 10px;border:0;background:#6f2638;color:#fff;box-shadow:none}.workshop-view .page-lede{margin-top:9px;color:#807274}
.workshop-view .pearl-picker{display:flex;gap:9px;margin:18px -18px 0;padding:13px 18px;overflow-x:auto;border:0;border-block:1px solid rgba(84,54,55,.12);border-radius:0;background:rgba(255,252,247,.72);scrollbar-width:none}.workshop-view .pearl-picker::-webkit-scrollbar{display:none}.workshop-view .pick-pearl{flex:0 0 76px;min-height:82px;padding:8px 5px;border:1px solid rgba(77,53,52,.13);border-radius:14px;background:#fbf8f2;box-shadow:0 5px 16px rgba(73,44,44,.05)}.workshop-view .pick-pearl.selected{border-color:#7d3041;background:#fff8e8;box-shadow:inset 0 -4px 0 #7d3041,0 6px 16px rgba(92,39,51,.1);transform:translateY(-2px)}.workshop-view .pick-pearl .pearl-dot{width:34px;height:34px}.workshop-view .pick-pearl b{color:#4a393c;font-size:8px}.workshop-view .pick-pearl small{font-size:6px}.recipe-heading{display:flex;align-items:baseline;justify-content:space-between;margin-top:20px}.recipe-heading b{font:900 21px "Songti SC","STSong",serif;color:#3d2d31}.recipe-heading small{color:#9b8a88;font-size:8px}
.workshop-view .recipe-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:10px;padding-bottom:14px}.workshop-view .recipe{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-rows:104px auto 34px;align-items:center;gap:0 5px;min-height:194px;padding:10px 11px 11px;overflow:hidden;border:1px solid rgba(84,54,55,.14);border-radius:17px;background:#fffaf3;box-shadow:0 7px 20px rgba(67,42,43,.07)}.workshop-view .recipe::before{content:"";position:absolute;left:12px;right:12px;top:103px;height:1px;background:linear-gradient(90deg,transparent,rgba(119,81,69,.18),transparent)}.workshop-view .recipe>.product-art{grid-column:1/-1;align-self:start;justify-self:center;width:70px;height:70px;margin-top:8px;border-radius:18px;background:#e8ded2;box-shadow:0 8px 22px rgba(77,48,43,.12),inset 0 0 0 1px rgba(85,57,53,.08);transform:scale(1.2)}.workshop-view .recipe>.product-art::after{border:0}.workshop-view .recipe>div:nth-of-type(2){grid-column:1/-1;align-self:start;min-width:0}.workshop-view .recipe b{font-size:11px;color:#382a2e}.workshop-view .recipe small{margin-top:4px;min-height:24px;color:#978788;font-size:7px;line-height:1.45}.workshop-view .recipe button{grid-column:1/-1;align-self:end;width:100%;padding:9px 5px;border-radius:9px;background:#712b3e;color:#fff;font-size:8px;letter-spacing:.05em}.workshop-view .recipe button:disabled{background:#e7dfd7;color:#a89d99}.workshop-view .product-metal{border-color:#ae8a5b}.workshop-view .product-clasp{background:#d0a763;border-color:#8e7148}
.jewelry-card .product-art{background:#ede5da;border-radius:15px;box-shadow:none}

.string-view{color:#f7eee4;background:#251a20;background-image:radial-gradient(circle at 50% 8%,rgba(147,69,80,.32),transparent 34%),linear-gradient(120deg,rgba(209,167,100,.04),transparent 45%);padding-inline:18px!important}.string-view .plain-back{color:#d8bd9a}.string-heading{margin-top:14px}.string-heading small{color:#c9a56e;font-family:Georgia,serif;letter-spacing:.13em}.string-heading h2{margin-top:8px;font:900 29px/1.1 "Songti SC","STSong",serif;color:#fff8ee}.string-heading p{margin-top:7px;color:#bbaeb0;font-size:9px}.string-board{height:340px;margin:22px 0 0;border:1px solid rgba(220,181,122,.45);border-radius:28px;background:#402b35;background-image:radial-gradient(ellipse at 50% 38%,rgba(126,74,86,.46),transparent 54%),linear-gradient(135deg,rgba(255,255,255,.035),transparent 40%);box-shadow:inset 0 0 0 8px rgba(27,17,22,.18),0 18px 32px rgba(10,5,8,.28)}.string-board::after{content:"";position:absolute;inset:15px;border:1px solid rgba(225,190,139,.13);border-radius:20px;pointer-events:none}.board-tape{z-index:2;top:17px;padding:5px 9px;border:1px solid rgba(220,180,116,.55);border-radius:99px;background:rgba(38,23,29,.72);color:#dbba82;font-size:7px;letter-spacing:.12em;transform:translateX(-50%)}.bracelet-cord{top:51%;width:236px;height:205px;border:3px solid #d2b172;box-shadow:0 0 0 1px rgba(255,236,191,.24),0 0 24px rgba(218,176,105,.13),inset 0 0 20px rgba(20,10,14,.2)}.bracelet-cord::after{right:5px;top:27px;width:18px;height:8px;border-color:#e0bd7a;background:#3e2933}.string-view #strungBeads button{width:50px;height:50px;margin:-25px 0 0 -25px;border:2px solid rgba(255,245,225,.62);box-shadow:inset -7px -8px 11px rgba(33,25,30,.19),0 7px 12px rgba(15,7,11,.34),0 0 0 3px rgba(210,175,116,.18)}.string-board>p{z-index:2;bottom:19px;left:50%;right:auto;padding:6px 12px;border-radius:99px;background:rgba(28,16,22,.65);color:#d9bd92;font-size:8px;transform:translateX(-50%);white-space:nowrap}.loose-bead-label{margin-top:20px}.loose-bead-label span{font:800 13px "PingFang SC","Microsoft YaHei",sans-serif;color:#f4e7dc}.loose-bead-label small{color:#a99699}.loose-bead-tray{grid-template-columns:repeat(6,1fr);gap:6px;margin-top:10px;padding:10px;border:1px solid rgba(218,181,124,.16);border-radius:18px;background:rgba(255,255,255,.045)}.string-view .loose-string-pearl{min-width:0;min-height:72px;padding:7px 2px 4px;border:0;border-radius:12px;background:rgba(255,249,239,.07)}.string-view .loose-string-pearl .pearl-dot{width:32px;height:32px;border-color:rgba(255,247,232,.55);box-shadow:inset -4px -5px 7px rgba(24,17,21,.16),0 5px 10px rgba(8,4,6,.28)}.string-view .loose-string-pearl b{margin-top:5px;max-width:100%;overflow:hidden;color:#e6d7d2;font-size:6px;white-space:nowrap;text-overflow:ellipsis}.string-view .loose-string-pearl small,.string-view .loose-string-pearl em{display:none}.string-view .tray-empty{padding:18px;border-color:rgba(218,181,124,.2);color:#aa979a}.finish-string{margin-top:13px;padding:14px;border:0;border-radius:13px;background:linear-gradient(135deg,#d8af6b,#b88445);color:#2b1a20;box-shadow:0 8px 20px rgba(10,5,8,.3);font-size:10px}.finish-string:disabled{border:1px solid rgba(255,255,255,.08);background:#3d3035;color:#786b6e;box-shadow:none}
@media(max-height:760px){.string-board{height:292px}.bracelet-cord{width:205px;height:169px}.string-view #strungBeads button{width:44px;height:44px;margin:-22px 0 0 -22px}.loose-bead-label{margin-top:14px}.string-view .loose-string-pearl{min-height:62px}}

/* Stringing correction: warm shop interior, real tabletop, compact bracelet. */
.string-view{color:#443b36;background:#eee3d2;background-image:none;padding-inline:18px!important}.string-view::before{content:"";position:absolute;z-index:0;left:0;right:0;top:157px;bottom:0;border-top:1px solid rgba(91,63,44,.22);background:repeating-linear-gradient(2deg,rgba(101,69,43,.055) 0 1px,transparent 1px 29px),linear-gradient(98deg,rgba(126,87,54,.09),transparent 18% 67%,rgba(126,87,54,.08)),#d7b78e}.string-view>*{position:relative;z-index:1}.string-view .plain-back{color:#766151}.string-heading{margin-top:11px;text-align:left;padding-left:3px}.string-heading small{color:#9b674f;font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:9px;font-weight:800;letter-spacing:.04em}.string-heading h2{margin-top:5px;font:900 28px/1.1 "Songti SC","STSong",serif;color:#3d332e}.string-heading p{margin-top:6px;color:#85756b;font-size:9px}
.string-board{height:326px;margin:24px 0 0;border:8px solid #bb8f63;border-radius:22px;background:#e9ddca;background-image:radial-gradient(rgba(104,85,67,.16) .6px,transparent .8px),linear-gradient(145deg,rgba(255,255,255,.5),transparent 45%);background-size:7px 7px,100% 100%;box-shadow:inset 0 0 0 2px rgba(255,250,236,.68),inset 0 10px 28px rgba(91,64,43,.09),0 10px 16px rgba(79,51,31,.2)}.string-board::before{content:"";position:absolute;left:14px;top:15px;width:52px;height:35px;border:1px solid rgba(121,95,71,.2);border-radius:50%;background:#f6eee0;box-shadow:inset 0 5px 8px rgba(112,83,59,.08),1px 3px 5px rgba(86,58,38,.1)}.string-board::after{inset:11px;border:1px solid rgba(119,91,66,.16);border-radius:13px}.board-tape{z-index:3;left:auto;right:16px;top:15px;padding:5px 9px;border:1px solid #b78b60;border-radius:3px;background:#f6eddc;color:#805c42;font-size:7px;letter-spacing:.04em;transform:none;box-shadow:1px 2px 0 rgba(91,62,43,.12)}
.bracelet-cord{top:51%;width:176px;height:150px;border:2px solid rgba(166,137,96,.62);box-shadow:none}.bracelet-cord::after{right:-2px;top:22px;width:14px;height:6px;border:1.5px solid #ad8957;background:#e9ddca}.string-view #strungBeads button{width:48px;height:48px;margin:-24px 0 0 -24px;border:1.5px solid rgba(94,82,71,.58);box-shadow:inset -6px -7px 9px rgba(43,39,37,.14),0 4px 7px rgba(73,52,39,.2),0 0 0 2px rgba(255,252,241,.58)}#strungBeads button:nth-of-type(1){left:50%;top:8%}#strungBeads button:nth-of-type(2){left:80%;top:29%}#strungBeads button:nth-of-type(3){left:80%;top:71%}#strungBeads button:nth-of-type(4){left:50%;top:92%}#strungBeads button:nth-of-type(5){left:20%;top:71%}#strungBeads button:nth-of-type(6){left:20%;top:29%}.gold-spacer{position:absolute;z-index:4;width:10px;height:10px;margin:-5px 0 0 -5px;border:1px solid #8f703e;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fff4c6,#d5aa55 42%,#8d672c);box-shadow:0 1px 2px rgba(75,52,28,.25)}.gold-spacer:nth-of-type(1){left:66%;top:16%}.gold-spacer:nth-of-type(2){left:81%;top:50%}.gold-spacer:nth-of-type(3){left:66%;top:84%}.gold-spacer:nth-of-type(4){left:34%;top:84%}.gold-spacer:nth-of-type(5){left:19%;top:50%}.gold-spacer:nth-of-type(6){left:34%;top:16%}.string-board>p{z-index:3;bottom:16px;left:50%;right:auto;padding:5px 10px;border:1px solid rgba(125,93,66,.14);border-radius:5px;background:#f7efe1;color:#82664f;font-size:8px;transform:translateX(-50%);white-space:nowrap}
.loose-bead-label{margin-top:19px}.loose-bead-label span{font:800 13px "PingFang SC","Microsoft YaHei",sans-serif;color:#493c34}.loose-bead-label small{color:#766557}.loose-bead-tray{grid-template-columns:repeat(6,1fr);gap:6px;margin-top:9px;padding:10px;border:1px solid rgba(102,74,51,.2);border-radius:12px;background:#ead8bd;box-shadow:inset 0 3px 8px rgba(91,62,40,.08),0 3px 8px rgba(91,62,40,.08)}.string-view .loose-string-pearl{min-width:0;min-height:72px;padding:7px 2px 4px;border:1px solid rgba(117,89,65,.14);border-radius:9px;background:#f5ead7}.string-view .loose-string-pearl .pearl-dot{width:32px;height:32px;border-color:rgba(91,76,65,.45);box-shadow:inset -4px -5px 7px rgba(47,42,39,.12),0 3px 5px rgba(77,54,39,.14)}.string-view .loose-string-pearl b{color:#615148}.string-view .tray-empty{padding:18px;border-color:rgba(111,82,58,.24);color:#846f60}.finish-string{margin-top:13px;padding:14px;border:0;border-radius:9px;background:#b74f3e;color:#fff7eb;box-shadow:0 4px 0 #79362d;font-size:10px}.finish-string:disabled{border:1px solid rgba(100,75,57,.13);background:#c8b79f;color:#eee4d5;box-shadow:none}
.product-bracelet .product-metal{left:13px;top:13px;width:32px;height:32px;border:1px solid rgba(151,121,75,.55)}.product-bracelet .product-metal::after{content:"";position:absolute;left:14px;top:-5px;width:5px;height:5px;border-radius:50%;background:#d6ad59;box-shadow:14px 8px 0 #d6ad59,14px 23px 0 #d6ad59,0 31px 0 #d6ad59,-14px 23px 0 #d6ad59,-14px 8px 0 #d6ad59}.product-bracelet .product-beads span:nth-child(1){left:23px;top:7px}.product-bracelet .product-beads span:nth-child(2){left:36px;top:14px}.product-bracelet .product-beads span:nth-child(3){left:36px;top:30px}.product-bracelet .product-beads span:nth-child(4){left:23px;top:37px}.product-bracelet .product-beads span:nth-child(5){left:10px;top:30px}.product-bracelet .product-beads span:nth-child(6){left:10px;top:14px}
@media(max-height:760px){.string-board{height:278px}.bracelet-cord{width:158px;height:130px}.string-view #strungBeads button{width:42px;height:42px;margin:-21px 0 0 -21px}.loose-bead-label{margin-top:14px}.string-view .loose-string-pearl{min-height:62px}}

/* Finished elastic cord sits behind the beads; do not draw it as a visible ring. */
.string-view .bracelet-cord{border-color:transparent;box-shadow:none}.string-view .bracelet-cord::after{display:none}

/* Pearl wiping mini-game: a used cloth on the same warm shop table. */
.clean-view{inset:0!important;padding:calc(24px + var(--safe-area-inset-top,env(safe-area-inset-top,0px))) 18px calc(20px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))!important;color:#453b35;background:#efe5d5;overflow:hidden}.clean-view::before{content:"";position:absolute;z-index:0;left:0;right:0;top:154px;bottom:0;border-top:1px solid rgba(95,64,42,.2);background:repeating-linear-gradient(1deg,rgba(105,72,45,.052) 0 1px,transparent 1px 31px),linear-gradient(94deg,rgba(116,76,48,.08),transparent 22% 70%,rgba(116,76,48,.07)),#d8b88f}.clean-view>*{position:relative;z-index:1}.clean-heading small{color:#a26149;font-size:9px;font-weight:900}.clean-heading h2{margin-top:5px;font:900 30px/1.1 "Songti SC","STSong",serif}.clean-heading p{margin-top:6px;color:#81736a;font-size:9px}.clean-progress{display:grid;grid-template-columns:auto 1fr 32px;align-items:center;gap:9px;margin-top:17px;color:#76665a;font-size:8px;font-weight:800}.clean-progress>div{height:6px;overflow:hidden;border-radius:99px;background:rgba(95,69,52,.13)}.clean-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#b94f3e;transition:width .16s}.clean-progress b{font:700 11px Georgia,serif;text-align:right}.clean-surface{position:relative;height:425px;margin:16px 0 0;overflow:hidden;border:8px solid #b98b61;border-radius:24px;background:#d5ddd4;background-image:repeating-linear-gradient(35deg,rgba(78,104,99,.07) 0 2px,transparent 2px 15px),linear-gradient(145deg,rgba(255,255,255,.48),transparent 46%);box-shadow:inset 0 0 0 2px rgba(249,245,225,.72),inset 0 9px 24px rgba(66,78,73,.08),0 10px 17px rgba(83,53,33,.2);touch-action:none;cursor:grab}.clean-surface:active{cursor:grabbing}.clean-surface::after{content:"";position:absolute;inset:13px;border:1px dashed rgba(65,86,82,.24);border-radius:14px;pointer-events:none}.cloth-corner{position:absolute;z-index:0;width:70px;height:48px;border-radius:50%;background:rgba(250,247,230,.45);filter:blur(1px)}.cloth-corner-one{left:-18px;top:30px;transform:rotate(-28deg)}.cloth-corner-two{right:-23px;bottom:25px;transform:rotate(18deg)}.clean-pearls{position:absolute;z-index:2;inset:0}.clean-pearl{position:absolute;left:var(--x);top:var(--y);width:var(--clean-size);height:var(--clean-size);margin:calc(var(--clean-size) / -2) 0 0 calc(var(--clean-size) / -2);border:2px solid rgba(66,79,76,.6);border-radius:50%;background:var(--clean-pearl);box-shadow:inset -11px -13px 17px rgba(37,47,47,.17),0 9px 12px rgba(58,62,56,.2),0 0 0 4px rgba(255,252,236,.3);overflow:hidden;transition:box-shadow .25s}.clean-pearl::before{content:"";position:absolute;z-index:2;left:20%;top:15%;width:19%;height:14%;border-radius:50%;background:rgba(255,255,255,.78);opacity:calc(1 - var(--dirt));filter:blur(1px);transition:opacity .12s}.clean-pearl::after{content:"";position:absolute;z-index:3;inset:-8px;border-radius:50%;background:radial-gradient(circle at 28% 32%,rgba(84,72,55,.78) 0 7%,transparent 8%),radial-gradient(circle at 68% 25%,rgba(102,86,62,.68) 0 10%,transparent 11%),radial-gradient(circle at 55% 70%,rgba(69,67,52,.78) 0 16%,transparent 17%),linear-gradient(145deg,rgba(108,97,74,.76),rgba(64,73,62,.58));opacity:var(--dirt);transition:opacity .12s}.clean-pearl.clean{box-shadow:inset -11px -13px 17px rgba(37,47,47,.15),0 9px 14px rgba(58,62,56,.18),0 0 0 5px rgba(255,247,209,.55);animation:pearlClean .42s ease-out}@keyframes pearlClean{50%{transform:scale(1.08)}100%{transform:none}}.wipe-cloth{position:absolute;z-index:8;left:50%;top:50%;width:72px;height:58px;margin:-29px 0 0 -36px;border:1px solid #718b88;border-radius:16px 11px 18px 9px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.22) 0 3px,transparent 3px 12px),#9db6b1;box-shadow:inset -8px -9px 13px rgba(58,80,77,.15),2px 5px 9px rgba(49,54,49,.22);opacity:0;pointer-events:none;transform:rotate(-8deg) scale(.86);transition:opacity .1s}.wipe-cloth::before{content:"";position:absolute;left:8px;top:7px;width:46px;height:28px;border:1px dashed rgba(60,83,80,.35);border-radius:9px}.wipe-cloth i{position:absolute;right:7px;bottom:7px;width:19px;height:13px;border-radius:50%;background:rgba(91,75,55,.22)}.wipe-cloth.show{opacity:.9}.wipe-cloth.wiping{transform:rotate(7deg) scale(1)}.clean-note{display:flex;align-items:center;gap:10px;margin-top:13px;padding:10px 12px;border:1px solid rgba(105,76,54,.16);border-radius:10px;background:rgba(246,235,216,.8)}.clean-note span{flex:none;padding:5px 7px;border-radius:4px;background:#9eb6b1;color:#344b49;font-size:8px;font-weight:900}.clean-note p{color:#806f62;font-size:8px}.finish-clean{width:100%;margin-top:12px;padding:14px;border:0;border-radius:9px;background:#b94f3e;color:#fff8eb;box-shadow:0 4px 0 #7e382e;font-size:10px;font-weight:900}.finish-clean:disabled{background:#c8b79f;color:#eee4d5;box-shadow:none}
@media(max-height:760px){.clean-heading h2{font-size:25px}.clean-progress{margin-top:11px}.clean-surface{height:342px;margin-top:11px}.clean-note{margin-top:9px}.finish-clean{margin-top:9px}}
.clean-view .wipe-cloth{transition:none}

/* Immersive-page back control: keep the XHS-owned top-left corner clear. */
.open-view .plain-back,.string-view .plain-back{position:absolute;z-index:24;top:calc(12px + var(--safe-area-inset-top,env(safe-area-inset-top,0px)));right:18px;left:auto;display:flex;align-items:center;gap:7px;min-height:38px;padding:5px 12px 5px 6px;border:1px solid rgba(77,60,50,.18);border-radius:99px;background:rgba(250,246,237,.94);color:#56473e;box-shadow:0 4px 10px rgba(65,45,34,.12);font-size:9px;font-weight:800;backdrop-filter:blur(8px)}.open-view .plain-back::before,.string-view .plain-back::before{content:"‹";display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#273f42;color:#fff;font:700 20px/1 Georgia,serif;padding-bottom:2px}.open-view .plain-back:active,.string-view .plain-back:active{transform:translateY(1px);box-shadow:0 2px 5px rgba(65,45,34,.12)}.open-view .plain-back:focus-visible,.string-view .plain-back:focus-visible{outline:3px solid rgba(243,201,82,.75);outline-offset:2px}.open-view .open-copy{margin-top:55px}.string-view .string-heading{margin-top:55px}

/* Cleaning correction: no fake mud dots; the physical cloth remains on the table. */
.clean-view .clean-pearl::after{background:repeating-linear-gradient(132deg,rgba(94,91,76,.13) 0 3px,transparent 3px 10px),linear-gradient(145deg,rgba(113,107,88,.78),rgba(79,88,76,.67));opacity:var(--dirt)}.clean-view .wipe-cloth{width:82px;height:64px;margin:-32px 0 0 -41px;border-color:#617d7a;border-radius:9px 18px 11px 16px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.25) 0 4px,transparent 4px 13px),repeating-linear-gradient(0deg,rgba(64,93,89,.08) 0 1px,transparent 1px 9px),#9fbcb7;box-shadow:inset -10px -9px 15px rgba(55,79,75,.16),3px 6px 10px rgba(49,54,49,.24)}.clean-view .wipe-cloth::before{left:9px;top:8px;width:54px;height:34px}.clean-view .wipe-cloth.resting{left:calc(100% - 54px)!important;top:calc(100% - 45px)!important;opacity:1;transform:rotate(-11deg) scale(.92)}.clean-view .wipe-cloth.wiping{transform:rotate(5deg) scale(1)}
.market-shell::after{content:"";position:absolute;width:52px;height:68px;border-radius:50%;border:1px solid rgba(255,255,255,.42);transform:rotate(var(--tilt));box-shadow:inset 0 0 0 7px rgba(255,255,255,.07),inset 0 0 0 15px rgba(52,72,73,.06)}
.clues .shell-grade{background:#fff0bf;color:#765f2b;font-weight:900}
.shell-type-akoya .market-shell::before{width:58px;height:84px;border-radius:58% 42% 47% 53%/68% 64% 36% 32%}
.shell-type-mabe .market-shell::before{width:76px;height:67px;border-radius:61% 39% 52% 48%/48% 53% 47% 52%;transform:rotate(calc(var(--tilt) - 8deg))}
.shell-type-mabe .market-shell::after{width:62px;height:52px}
.shell-type-southsea .market-shell::before{width:74px;height:91px;border-width:2px}
.shell-type-akoya .shell-grade,.shell-type-mabe .shell-grade,.shell-type-southsea .shell-grade{background:#dcebf2;color:#315d70}
.stock-card.shell-type-akoya .stock-visual.shell::before{width:31px;height:43px}
.stock-card.shell-type-mabe .stock-visual.shell::before{width:42px;height:34px;border-radius:61% 39% 54% 46%}
.stock-card.shell-type-southsea .stock-visual.shell::before{width:39px;height:45px;border-width:2px}
.game-oyster[class*="shell-kind-"] .game-shell-top{background:radial-gradient(ellipse at 68% 25%,rgba(255,255,255,.55) 0 5%,transparent 18%),repeating-radial-gradient(ellipse at 69% 23%,transparent 0 17px,rgba(35,60,57,.25) 19px 21px,rgba(255,255,255,.15) 22px 24px,transparent 26px 34px),linear-gradient(157deg,var(--open-shell-light) 0 18%,var(--open-shell-dark) 58%,#4b5552 100%)}
.game-oyster.shell-kind-akoya{transform:rotate(2deg) scale(.94)}
.game-oyster.shell-kind-mabe{transform:rotate(-5deg) scaleX(1.04) scaleY(.9)}
.game-oyster.shell-kind-southsea{transform:rotate(-1deg) scale(1.04)}
.game-oyster.shell-kind-mabe .game-shell{border-radius:58% 42% 54% 46%/48% 52% 48% 52%}
.pearl-dot.half-pearl,.clean-pearl.half-pearl{border-radius:50% 50% 34% 34%/63% 63% 37% 37%;transform:scaleY(.82)}
.pearl-dot.drop-pearl,.clean-pearl.drop-pearl{border-radius:64% 36% 58% 42%/66% 42% 58% 34%;transform:rotate(38deg) scale(.9)}
.product-beads .half-bead{border-radius:50% 50% 35% 35%/62% 62% 38% 38%;transform:scale(var(--art-scale,1)) scaleY(.82)}
.product-beads .drop-bead{border-radius:64% 36% 58% 42%;transform:rotate(38deg) scale(var(--art-scale,1))}
.strung-beads button.half-pearl{border-radius:50% 50% 34% 34%/63% 63% 37% 37%;transform:scaleY(.82)}
.strung-beads button.drop-pearl{border-radius:64% 36% 58% 42%;transform:rotate(38deg) scale(.9)}
.game-oyster.open .game-pearl.half-pearl{border-radius:50% 50% 34% 34%/63% 63% 37% 37%;transform:scaleY(.82)}
/* Replica badge entrance */
.viceme-replica-pill-preview{
  position:fixed;
  right:16px;
  bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 16px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:#ffffff;
  color:#1f2937;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  transition:transform .15s ease,box-shadow .15s ease;
}
.viceme-replica-pill-preview:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}
.viceme-replica-pill-preview:active{
  transform:translateY(0);
}
.viceme-replica-pill-preview:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}

