/* Scoped activity views; the main Wiki shell remains unchanged. */
.ci-market.city-work-modal{width:min(940px,calc(100vw - 28px));padding:25px;max-height:calc(100dvh - 28px)}
.ci-market .city-work-tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:14px}
.ci-market .city-work-tabs button{position:relative;padding:12px 0;font-size:15px;color:var(--muted)}
.ci-market #city-work-account{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px;color:var(--muted);font-size:13px}
.ci-market #city-work-account strong{font-family:var(--mono);color:#eed8e9;font-size:14px;font-weight:500}
.ci-market .city-work-muted{font-size:13px;color:var(--subtle);padding:13px 0}
.ci-market .scratch-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:5px 0 20px}
.ci-market .scratch-toolbar h3{font-size:21px;font-weight:650;color:#f5d9ec}
.ci-market .scratch-toolbar p{font-size:13px;margin-top:5px;color:var(--muted)}
.ci-market .scratch-tier-label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-top:10px}
.ci-market .scratch-tier-label select{font-size:13px;padding:6px 10px;min-height:35px}
.ci-market .scratch-ticket{position:relative;aspect-ratio:974/1619;width:min(100%,560px);margin:0 auto;overflow:hidden;background:#20202a;border-radius:7px}
.ci-market .scratch-ticket>img{width:100%;height:100%;display:block;object-fit:contain;user-select:none;pointer-events:none}
.ci-market .scratch-progress{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:14px 0 23px;font-size:13px;color:var(--muted)}
.ci-market .scratch-buy-confirm{padding:16px;margin:0 0 20px;border:1px solid #875775;border-radius:9px;background:#382437}
.ci-market .scratch-buy-confirm>p{font-size:15px;color:#f4d1e7;margin-bottom:13px}
.ci-market .scratch-buy-confirm>div{display:flex;gap:12px;justify-content:flex-end}
.ci-market .scratch-odds{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}
.ci-market .scratch-odds summary{color:#e6b4d1;font-size:14px;cursor:pointer}
.ci-market .scratch-odds p{font-size:12px;color:var(--muted);margin:14px 0}
.ci-market .scratch-odds table{max-width:520px}
.ci-market .scratch-history{padding-top:20px}
.ci-market .scratch-history h3{font-size:15px;margin-bottom:9px}
.ci-market .scratch-history .table-wrap{max-height:220px}
@media(max-width:600px){.ci-market.city-work-modal{padding:18px;width:calc(100vw - 20px)}.ci-market .city-work-tabs{gap:23px}.ci-market .city-work-tabs button{font-size:14px}.ci-market #city-work-account{font-size:12px}.ci-market #city-work-account strong{font-size:12px}.ci-market .scratch-toolbar{align-items:flex-start;gap:12px}.ci-market .scratch-toolbar h3{font-size:18px}.ci-market .scratch-toolbar p{font-size:11px}.ci-market .scratch-toolbar .button{padding:9px 12px;min-height:39px;white-space:nowrap;font-size:13px}.ci-market .scratch-progress{font-size:12px}.ci-market .scratch-buy-confirm>p{font-size:14px}}

.ci-market .scratch-instructions{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 18px}
.ci-market .scratch-ticket.is-legacy{aspect-ratio:3/2;width:min(100%,720px)}
.ci-market #scratch-regions{position:absolute;inset:0}
.ci-market .scratch-cell{position:absolute;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;background:#ece7d5;isolation:isolate}
.ci-market .scratch-cell-spot{clip-path:inset(0 0 20% 0)}
.ci-market .scratch-cell-value{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#241f17;line-height:1.15;padding:2px}
.ci-market .scratch-cell-spot .scratch-cell-value{bottom:20%}
.ci-market .scratch-cell-symbol{font:800 clamp(14px,3.3vw,28px)/1 Georgia,"Times New Roman",serif;letter-spacing:-.04em}
.ci-market .scratch-cell-amount{font:600 clamp(7px,1.5vw,11px)/1.2 var(--mono);white-space:nowrap;color:#34271c}
.ci-market .scratch-cell canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.ci-market .scratch-cell canvas:focus-visible{outline:3px solid #f35d96;outline-offset:-4px}
.ci-market .scratch-cell.is-win{background:#fff2c2}
.ci-market .scratch-cell-legacy{aspect-ratio:auto;border-radius:10px;clip-path:none;background:#f8e8e5}
.ci-market .scratch-cell-legacy .scratch-cell-value>strong{font:700 clamp(20px,4vw,36px)/1.4 var(--sans);color:#4c2641}
.ci-market .scratch-result-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 18px;margin-top:18px;border:1px solid #7d526e;border-radius:9px;background:#302032}
.ci-market .scratch-result-summary>div>span{display:block;font-size:13px;color:#d6b9cf}
.ci-market .scratch-result-summary strong{display:block;font:650 26px/1.4 var(--mono);color:#ffe0f0;margin-top:5px}
.ci-market .scratch-result-summary>span{font:500 14px/1.6 var(--mono);text-align:right}
.ci-market .scratch-odds td small{display:block;color:var(--subtle);font-size:10px;margin-top:3px}
@media(max-width:600px){.ci-market .scratch-instructions{font-size:12px}.ci-market .scratch-cell-symbol{font-size:clamp(13px,4.5vw,19px)}.ci-market .scratch-cell-amount{font-size:clamp(7px,2.0vw,9px)}.ci-market .scratch-result-summary{align-items:flex-start;flex-direction:column;gap:7px}.ci-market .scratch-result-summary strong{font-size:24px}}

