/* RatBrain · game sections: escape map, sign-up, my file, reservoir, archive, recruit card, rules, FAQ, owner console */

/* ============ week chip ============ */
.week-chip { display: grid; gap: 8px; justify-items: end; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(33,26,58,.07); }
.wc-t { margin: 0; font: 600 16px/1.2 var(--f-display); white-space: nowrap; }
.daydots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.daydots li { position: relative; width: 26px; height: 8px; border-radius: 5px; background: rgba(33,26,58,.1); }
.daydots li.past { background: rgba(122,92,240,.35); }
.daydots li.now { background: var(--holo); background-size: 200% 100%; animation: holoPan 4s linear infinite; box-shadow: 0 0 10px rgba(182,156,255,.8); }
.daydots li.now::after { content: ""; position: absolute; left: 50%; top: -7px; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }

/* ============ escape map ============ */
.mappanel { padding: clamp(14px, 1.8vw, 22px); }
.map-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 4px 6px 12px; }
.map-status { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; min-width: 0; }
.map-prog { font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); }
.map-prog b { color: var(--ink); font-weight: 600; }
.map-cap { font-size: 11px; color: var(--faint); }
.map-note { display: flex; align-items: center; gap: 14px; margin: 0 4px 14px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(100deg, rgba(111,243,255,.16), rgba(182,156,255,.16) 45%, rgba(255,143,216,.14)); box-shadow: inset 0 0 0 1px rgba(122,92,240,.2); }
.mn-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: var(--holo); animation: bob 2.6s ease-in-out infinite; }
.mn-ico img { width: 40px; height: 40px; border-radius: 50%; }
.mn-t { margin: 0; font: 600 15px/1.35 var(--f-display); }
.mn-b { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.mn-b b { font-family: var(--f-mono); color: var(--ink); }
.map-stage { position: relative; width: 100%; border-radius: 22px; overflow: hidden; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.map-svg text { font-family: var(--f-display); }
.map-svg .mono, .map-svg .t-mono { font-family: var(--f-mono); }
.map-svg .flow { stroke-dasharray: 2 16; stroke-linecap: round; animation: mapFlow 1.1s linear infinite; }
@keyframes mapFlow { to { stroke-dashoffset: -36; } }
.map-svg .door-leaf { transform-box: fill-box; transition: transform 1s cubic-bezier(.4,1.6,.5,1); }
.map-svg .door.open .door-leaf { transform: var(--open, perspective(0) rotateY(0)); }
.map-svg .door .lock { transition: opacity .4s, transform .6s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: 50% 50%; }
.map-svg .door.open .lock { opacity: 0; transform: translateY(-14px) scale(.6); }
.map-svg .door .okring { opacity: 0; transition: opacity .6s; }
.map-svg .door.open .okring { opacity: 1; }
.map-svg .door.next .halo { animation: doorHalo 2s ease-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.map-svg .door:not(.next) .halo { display: none; }
@keyframes doorHalo { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.9); } }
.map-svg .door { cursor: pointer; }
.map-svg .door:focus { outline: none; }
.map-svg .door:focus-visible .door-hit { stroke: var(--violet); stroke-width: 3; }
.map-svg .token-bob { animation: tokBob 1.6s ease-in-out infinite; }
@keyframes tokBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.map-svg .token-pulse { animation: tokPulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes tokPulse { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.map-svg .cam { animation: camSweep 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0% 50%; }
@keyframes camSweep { from { transform: rotate(-14deg); } to { transform: rotate(18deg); } }
.map-svg .blink { animation: blinkDot 1.8s ease-in-out infinite; }
.map-svg .sun { animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.map-svg .fan { animation: spin 2.4s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.map-svg .guard { cursor: pointer; transition: opacity .3s; }
.map-svg .guard .g-body { transform-box: fill-box; transform-origin: 50% 100%; animation: guardFidget 3.4s ease-in-out infinite; }
.map-svg .guard.jump .g-body { animation: guardJump .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes guardFidget { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 60% { transform: rotate(2deg) translateY(-1px); } }
@keyframes guardJump { 0% { transform: translateY(0); } 40% { transform: translateY(-18%) rotate(-4deg); } 100% { transform: translateY(0); } }
.map-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.runsci { position: absolute; width: clamp(56px, 9%, 118px); aspect-ratio: 1; margin: calc(clamp(56px, 9%, 118px) / -1.2) 0 0 calc(clamp(56px, 9%, 118px) / -2); will-change: transform; }
.runsci img { width: 100%; height: 100%; animation: sciHop .26s ease-in-out infinite alternate; }
.runsci.flip img { transform: scaleX(-1); animation-name: sciHopFlip; }
@keyframes sciHop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8%) rotate(3deg); } }
@keyframes sciHopFlip { from { transform: scaleX(-1) translateY(0) rotate(-3deg); } to { transform: scaleX(-1) translateY(-8%) rotate(3deg); } }
.paperfx { position: absolute; width: 18px; height: 22px; border-radius: 3px; background: linear-gradient(135deg, #fff, #E7E0F6); box-shadow: inset 0 0 0 1.5px #3A2D5C; }
.paperfx::before { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 8px; background: repeating-linear-gradient(#B6ABD6 0 2px, transparent 2px 4px); }
.confetti { position: absolute; width: 12px; height: 7px; border-radius: 4px; box-shadow: inset 0 0 0 1.2px #3A2D5C; }
.door-toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; justify-items: center; gap: 4px; width: max-content; padding: 16px 26px; border-radius: 22px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1.5px rgba(122,92,240,.35), 0 24px 50px -20px rgba(58,36,120,.55); text-align: center; animation: toastPop .6s cubic-bezier(.2,1.5,.4,1); max-width: calc(100% - 32px); }
.door-toast b { font: 800 clamp(22px, 3vw, 34px)/1.1 var(--f-display); background: var(--holo-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holoPan 3s linear infinite; }
.door-toast span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) {
  .door-toast { padding: 12px 16px; border-radius: 18px; }
  .door-toast b { font-size: 20px; }
  .door-toast span { font-size: 12.5px; }
}
@keyframes toastPop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-4deg); } to { opacity: 1; transform: translate(-50%, -50%); } }

.doors { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.doors li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.doors li:hover { background: #fff; transform: translateY(-2px); }
.doors li.sel { box-shadow: inset 0 0 0 1.5px rgba(122,92,240,.5); background: #fff; }
.doors .d-n { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 16px/1 var(--f-mono); color: #8C86A3; background: rgba(33,26,58,.06); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1); }
.doors .d-t { font: 600 14px/1.25 var(--f-display); min-width: 0; }
.doors .d-s { font: 500 11.5px/1.35 var(--f-mono); color: var(--muted); min-width: 0; }
.doors li.open .d-n { color: #fff; background: linear-gradient(135deg, #8FE000, #3FB6A8); box-shadow: 0 6px 14px -6px rgba(111,174,0,.8); }
.doors li.next .d-n { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(182,156,255,.25); }
.doors li.open .d-s { color: var(--ok); }
.doors li .d-line { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); display: none; }
.doors li.sel .d-line { display: block; }

/* ============ operation cards ============ */
.op-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.op-row2 { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 18px; align-items: start; }
.op-grid .panel { display: flex; flex-direction: column; }
.ring-wrap { position: relative; width: min(200px, 82%); aspect-ratio: 1; margin: 0 auto; }
.cring { width: 100%; height: 100%; overflow: visible; }
.cring .arc { transition: stroke-dasharray .9s linear; }
.cring .dot-run { transform-box: view-box; }
.ring-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-read b { font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ring-read span { font-size: 11px; color: var(--muted); margin-top: 3px; max-width: 9.5em; line-height: 1.35; }
.op-clock .why { text-align: center; }
.tick-box { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--hair-2); }
.tick-box .why { text-align: left; margin-top: 0; margin-bottom: 8px; }

.op-event .p-head { margin-bottom: 10px; }
.ven-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 99px; font: 600 12px/1 var(--f-display); color: #8A2B72; background: linear-gradient(90deg, rgba(255,143,216,.25), rgba(212,255,106,.3)); box-shadow: inset 0 0 0 1px rgba(221,58,174,.35); animation: venGlow 2.4s ease-in-out infinite; }
.ven-badge svg { width: 20px; height: 20px; }
@keyframes venGlow { 50% { box-shadow: inset 0 0 0 1px rgba(221,58,174,.35), 0 0 16px rgba(255,143,216,.7); } }
.ev-body { display: flex; align-items: center; gap: 14px; }
.ev-icon { position: relative; flex: none; width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #fff, rgba(233,226,250,.8)); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1), 0 12px 24px -16px rgba(58,36,120,.5); }
.ev-icon svg { width: 58px; height: 58px; }
.ev-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 27px; padding: 2px; background: var(--holo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.op-event[data-ev="reveal"] .ev-icon svg { animation: evShuffle .5s steps(1) infinite; }
@keyframes evShuffle { 50% { transform: rotate(-8deg) scale(.92); } }
.op-event[data-ev="1"] .ev-icon, .op-event[data-ev="3"] .ev-icon, .op-event[data-ev="4"] .ev-icon { animation: evPop 2.6s ease-in-out infinite; }
@keyframes evPop { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) rotate(-2deg); } }
.ev-name { margin: 0; font: 700 21px/1.2 var(--f-display); }
.ev-mult { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.ev-mult b { font-size: 18px; color: var(--ink); }
.ev-mult.up b { color: #3F8A00; }
.ev-mult.down b { color: var(--warn); }
.ev-desc { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.ev-route { margin: 8px 0 0; padding: 7px 10px; border-radius: 10px; font-size: 13px; background: rgba(255,143,216,.12); box-shadow: inset 0 0 0 1px rgba(221,58,174,.25); color: #8A2B72; }
.ev-route.win { background: rgba(143,224,0,.12); box-shadow: inset 0 0 0 1px rgba(111,174,0,.3); color: #3F6B00; }
.ev-odds { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; justify-content: space-between; gap: 4px; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--hair-2); }
.ev-odds li { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .55; transition: opacity .3s, transform .3s; }
.ev-odds li.on { opacity: 1; transform: translateY(-2px); color: var(--ink); font-weight: 600; }
.ev-odds svg { width: 26px; height: 26px; }
.ev-odds, .op-event .ev-odds { margin-top: auto; }
.op-event .ev-route + .ev-odds, .op-event .ev-desc + .ev-odds { margin-top: 14px; }

.risk-num { margin: 4px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.risk-num b { font-size: clamp(36px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.risk-num span { font: 500 14px/1 var(--f-mono); color: var(--muted); }
.risk-num b.is-empty { font-size: 22px; }
.rbar { margin-top: 16px; }
.rbar-track { position: relative; height: 14px; border-radius: 8px; background: rgba(33,26,58,.07); box-shadow: inset 0 1px 2px rgba(33,26,58,.14); }
.rbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: 8px; background: linear-gradient(90deg, #FFB3E4, #FF5FBE 70%, #DD3AAE); box-shadow: 0 0 12px rgba(255,95,190,.5); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.rbar.pass .rbar-fill { background: linear-gradient(90deg, #D4FF6A, #8FE000); box-shadow: 0 0 12px rgba(143,224,0,.6); }
.rbar-line { position: absolute; left: 33.333%; top: -6px; bottom: -6px; border-left: 2px dashed var(--ink); }
.rbar-scale { position: relative; display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.rb-mark { position: absolute; left: 33.333%; transform: translateX(-50%); color: var(--ink); font-weight: 600; }
.op-risk .link-more { margin-top: auto; padding-top: 10px; }

.op-money .money-split { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--hair-2); }
.op-money .money-split .muted { margin: 0; font-size: 13px; }
.op-money > .mid { margin-top: 2px; }

.op-tomorrow .big { font-size: clamp(38px, 4vw, 52px); }
.next-door { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; background: rgba(182,156,255,.12); box-shadow: inset 0 0 0 1px rgba(122,92,240,.22); color: var(--ink-2); }
.next-door b { color: var(--ink); font-family: var(--f-mono); }

.op-feed .p-head { margin-bottom: 6px; }
.feed-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--f-mono); color: var(--muted); }
.feed-live i { width: 7px; height: 7px; border-radius: 50%; background: #E23FAE; animation: blinkDot 1.4s ease-in-out infinite; }
.feed-list { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; }
.feed-list li { display: grid; grid-template-columns: 58px 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px dashed var(--hair); font-size: 14px; }
.feed-list li:last-child { border-bottom: 0; }
.feed-list .ft { font: 500 12px/1 var(--f-mono); color: #A6A1B8; }
.feed-list .fd { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--dc, #B69CFF); box-shadow: 0 0 8px var(--dc, #B69CFF); }
.feed-list .fx-txt { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-list .fa { font: 500 13px/1 var(--f-mono); color: var(--ink); white-space: nowrap; text-decoration: none; }
.feed-list a.fa:hover { color: var(--violet); }
.feed-list li.new { animation: rowIn .6s cubic-bezier(.2,.8,.2,1); }
.feed-list li.new .fd::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--dc); animation: dropRippleSm .9s ease-out forwards; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes dropRippleSm { from { transform: scale(1); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }

/* ============ sign-up ============ */
.join-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.join-side { display: grid; gap: 20px; min-width: 0; }
.order { padding: clamp(20px, 2.6vw, 32px); }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; align-items: center; gap: 8px; }
.steps li { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); flex: 1 1 0; }
.steps li:last-child { flex: 0 0 auto; }
.steps li:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 12px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(33,26,58,.2) 0 4px, transparent 4px 8px); }
.steps li.done:not(:last-child)::after { background: linear-gradient(90deg, #8FE000, #3FB6A8); }
.steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-mono); font-style: normal; background: rgba(33,26,58,.06); box-shadow: inset 0 0 0 1px rgba(33,26,58,.14); }
.steps span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.steps li.cur { color: var(--ink); font-weight: 600; }
.steps li.cur i { color: #fff; background: var(--ink); box-shadow: 0 0 0 4px rgba(182,156,255,.35); animation: stepPulse 1.4s ease-in-out infinite; }
.steps li.done { color: var(--ok); }
.steps li.done i { color: #fff; background: #8FE000; box-shadow: none; }
.steps li.err i { color: #fff; background: var(--warn); }
@keyframes stepPulse { 50% { box-shadow: 0 0 0 7px rgba(182,156,255,.12); } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.f-meta { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.field .why { min-height: 1.5em; }
.stamp-zone { position: relative; margin-top: 20px; }
.stamp { position: relative; display: block; width: 100%; min-height: 88px; border: 0; padding: 7px; border-radius: 24px; cursor: pointer; color: #fff; background: #211A3A; box-shadow: 0 20px 36px -18px rgba(33,26,58,.8), inset 0 1px 0 rgba(255,255,255,.2); transform: rotate(-.5deg); transition: transform .15s ease, box-shadow .2s, background-color .2s, color .2s; isolation: isolate; overflow: hidden; -webkit-tap-highlight-color: transparent; touch-action: manipulation; font: inherit; }
.stamp::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--holo); background-size: 200% 200%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: holoPan 6s linear infinite; z-index: -1; }
.stamp::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite; z-index: -1; }
.stamp:hover { transform: rotate(-.5deg) translateY(-2px); box-shadow: 0 26px 40px -18px rgba(90,60,200,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.stamp:active { transform: rotate(-.5deg) translateY(3px) scale(.985); box-shadow: 0 8px 16px -10px rgba(33,26,58,.8); }
.stamp-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 74px; border-radius: 18px; border: 2px dashed rgba(255,255,255,.42); padding: 8px 14px; }
.stamp-label { font: 700 clamp(19px, 2vw, 23px)/1.2 var(--f-display); letter-spacing: .04em; text-align: center; }
.stamp-sub { margin-top: 5px; font-size: 11px; letter-spacing: .14em; opacity: .7; text-align: center; }
.stamp[disabled] { cursor: not-allowed; color: #8F8AA5; background: rgba(33,26,58,.045); box-shadow: inset 0 0 0 1.5px rgba(33,26,58,.14); transform: rotate(-.5deg); }
.stamp[disabled]::before, .stamp[disabled]::after { display: none; }
.stamp[disabled] .stamp-inner { border-color: rgba(33,26,58,.2); }
.stamp.busy { cursor: progress; }
.stamp.busy .stamp-label::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.stamp.thump { animation: thump .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes thump { 0% { transform: rotate(-.5deg) scale(1); } 30% { transform: rotate(-.5deg) scale(.95) translateY(4px); } 100% { transform: rotate(-.5deg) scale(1); } }
.stamp-mark { position: absolute; right: clamp(10px, 4%, 30px); top: -22px; z-index: 2; display: grid; justify-items: center; padding: 6px 14px 5px; border-radius: 12px; border: 3px solid #DD3AAE; color: #DD3AAE; background: rgba(255,255,255,.82); font: 800 20px/1.1 var(--f-display); letter-spacing: .14em; transform: rotate(-12deg) scale(.6); opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(221,58,174,.35); }
.stamp-mark small { font-size: 9px; letter-spacing: .16em; font-weight: 600; opacity: .85; }
.stamp-mark.on { opacity: .92; transform: rotate(-12deg) scale(1); }
.stamp-mark.hit { animation: stampHit .55s cubic-bezier(.2,1.3,.4,1) forwards; }
@keyframes stampHit { 0% { opacity: 0; transform: rotate(-12deg) scale(1.9); } 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: .92; transform: rotate(-12deg) scale(1); } }
.stamp-why { text-align: center; margin-top: 10px; }
.lock-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; color: var(--ink-2); background: rgba(33,26,58,.035); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); }
.lock-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--violet); }
.crew-line { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.crew-line code { font-family: var(--f-mono); color: var(--ink); }
.order-more { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--hair-2); }
.order-more .why { margin: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 6px; background: var(--holo); box-shadow: inset 0 0 0 1px rgba(33,26,58,.25); }
.check-list li::after { content: ""; position: absolute; left: 5px; top: 6px; width: 5px; height: 8px; border-right: 2px solid #211A3A; border-bottom: 2px solid #211A3A; transform: rotate(40deg); }
.check-list b { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
.vote-line { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.vote-card .btn:not([disabled]) { color: #fff; background: linear-gradient(100deg, #DD3AAE, #7A5CF0); box-shadow: 0 14px 28px -14px rgba(221,58,174,.7); }

/* ============ my file ============ */
.me-empty { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; }
.me-empty img { width: 220px; height: 220px; animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 80%; }
.me-empty h3 { margin: 0; font: 700 24px/1.2 var(--f-display); }
.me-empty p { margin: 8px 0 18px; color: var(--ink-2); max-width: 44ch; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015, .985); } }
.wallet { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; padding: 14px 20px; margin-bottom: 18px; border-radius: 18px; background: rgba(255,255,255,.58); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(33,26,58,.07); font-size: 14px; color: var(--ink-2); }
.wallet > span { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.wallet em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.wallet b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.wallet .w-who { align-items: center; font-family: var(--f-mono); color: var(--ink); }
.me-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.me-grid .panel { display: flex; flex-direction: column; }
.lockline { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lockline .pill { font-size: 12.5px; padding: 5px 9px; }
.unstake { margin-top: auto; padding-top: 16px; display: grid; gap: 10px; }
.unstake .why { margin-top: 0; }
.me-claim .btn { margin-top: 14px; }
.bonus { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--hair-2); }
.me-claim .bonus { margin-top: 16px; }
.bonus .muted { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; min-height: 84px; align-items: center; }
.badge-row .medal { position: relative; width: 64px; height: 64px; animation: medalIn .7s cubic-bezier(.3,1.6,.5,1) both; }
.badge-row .medal svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(213,155,12,.35)); }
.badge-row .medal b { position: absolute; right: -4px; bottom: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font: 600 11px/1 var(--f-mono); color: #fff; background: var(--ink); }
.badge-row .ghost { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed rgba(33,26,58,.2); display: grid; place-items: center; color: #B3AEC5; font: 500 11px/1.2 var(--f-mono); text-align: center; }
.badge-count { font: 600 40px/1 var(--f-mono); margin-left: 6px; }
@keyframes medalIn { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.cal { margin-top: 18px; }
.cal-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.lg { width: 12px; height: 12px; border-radius: 4px; background: rgba(33,26,58,.06); box-shadow: inset 0 0 0 1px rgba(33,26,58,.14); margin-left: 8px; flex: none; }
.lg:first-child { margin-left: 0; }
.lg-on { background: var(--holo); box-shadow: none; }
.lg-today { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.cal-rows { display: grid; gap: 12px; }
.cal-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
.cal-row > b { font: 600 13.5px/1.3 var(--f-display); }
.cal-row > b small { display: block; font: 500 11px/1.3 var(--f-mono); color: var(--muted); }
.cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cd { position: relative; display: grid; justify-items: center; gap: 2px; padding: 9px 2px 8px; border-radius: 14px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1); min-width: 0; }
.cd .cd-i { font: 500 10.5px/1 var(--f-mono); color: var(--muted); }
.cd .cd-d { font: 600 15px/1.2 var(--f-mono); }
.cd .cd-s { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; background: rgba(33,26,58,.06); color: transparent; }
.cd .cd-s svg { width: 14px; height: 14px; }
.cd.on { background: linear-gradient(160deg, rgba(111,243,255,.28), rgba(182,156,255,.28) 50%, rgba(255,143,216,.26)); box-shadow: inset 0 0 0 1px rgba(122,92,240,.35); }
.cd.on .cd-s { color: #fff; background: var(--ink); box-shadow: 0 0 0 3px rgba(182,156,255,.35); animation: medalIn .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: var(--dl, 0s); }
.cd.past { opacity: .55; }
.cd.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cd.today::after { content: "今天"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 6px; font: 600 10px/1 var(--f-display); color: #fff; background: var(--ink); white-space: nowrap; }
.cd.renew { box-shadow: inset 0 0 0 1.5px var(--magenta); }

/* ============ reservoir ============ */
.res-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.res-grid > .panel { display: flex; flex-direction: column; }
.res-grid .tiers { margin-top: auto; }
.res-grid .res-body { margin-bottom: 20px; }
.reservoir .big { font-size: clamp(34px, 3.6vw, 48px); }
.res-body { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 20px; align-items: center; }
.cyl { width: 100%; height: auto; overflow: visible; }
.cyl text { font-family: var(--f-mono); }
.liquid { transform: translateY(var(--lvl, 280px)); transition: transform 1.8s cubic-bezier(.3,.7,.2,1); }
.level { transform: translateY(var(--ly, 316px)); transition: transform 1.8s cubic-bezier(.3,.7,.2,1); }
.wave { animation: waveMove 3.2s linear infinite; }
.wave-b { animation-duration: 5s; animation-direction: reverse; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(80px); } }
.bubbles circle { animation: bubble 4.2s var(--d) ease-in infinite; opacity: 0; }
@keyframes bubble { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 90% { opacity: .7; } 100% { transform: translate(var(--x), -150px); opacity: 0; } }
.drip { opacity: 0; animation: drip 2.8s ease-in infinite; }
.drip.d2 { animation-delay: 1.4s; }
@keyframes drip { 0% { transform: translateY(-6px) scale(.4); opacity: 0; } 25% { transform: translateY(0) scale(1); opacity: 1; } 55% { transform: translateY(0) scale(1); opacity: 1; } 78% { transform: translateY(30px) scale(.9); opacity: 1; } 80%, 100% { transform: translateY(32px) scale(.2); opacity: 0; } }
.drip, .splash { transform-box: fill-box; transform-origin: 50% 50%; }
.splash { opacity: 0; animation: splash 1.4s .78s ease-out infinite; }
@keyframes splash { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.6); } }
.flowline { stroke-dasharray: 5 9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.cyl.dry .drips, .cyl.dry .splash, .cyl.dry .bubbles { display: none; }
.cyl.dry .flowline { animation: none; opacity: .3; }
.res-read .muted { margin: 0; font-size: 13px; }
.res-read .big { margin-top: 6px; }
.res-split { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--hair-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rs-row .mid { font-size: clamp(18px, 1.8vw, 24px); }
.expl { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.tiers { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--hair-2); }
.tiers-t { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.tier-table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.tier-table th { text-align: left; font: 500 12px/1.3 var(--f-display); color: var(--muted); width: 26%; padding: 0 4px 0 0; }
.tier-table td { text-align: center; padding: 8px 2px; border-radius: 10px; font: 600 13px/1 var(--f-mono); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); transition: background .4s, color .4s, box-shadow .4s; }
.tier-table tbody td { background: linear-gradient(0deg, rgba(182,156,255, calc(var(--t, 0) * .28)), rgba(182,156,255, calc(var(--t, 0) * .28))), rgba(255,255,255,.7); }
.tier-table td.cur { color: #fff; background: var(--ink); box-shadow: 0 8px 16px -10px rgba(33,26,58,.8); }
.tier-table tbody td.cur { background: var(--holo-deep); background-size: 200% 100%; animation: holoPan 5s linear infinite; }
.pp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.pp-note { margin: 0; max-width: 32ch; font-size: 14px; color: var(--ink-2); }
.pp-note b { font-family: var(--f-mono); color: var(--ink); }
.plate-wrap { margin-top: 20px; }
.splitbar { display: flex; height: 26px; border-radius: 13px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(33,26,58,.12); background: rgba(33,26,58,.05); }
.splitbar i { display: block; width: var(--w); height: 100%; transition: width 1s ease; position: relative; }
.splitbar i + i { box-shadow: -1.5px 0 0 #fff; }
.sb-owner { background: linear-gradient(135deg, #CFC7E4, #A79CC8); }
.sb-res { background: linear-gradient(135deg, #9FF3FF, #3FC7E6); }
.sb-pot { background: linear-gradient(135deg, #FFE08A, #F2B413); }
.sb-yield { background: linear-gradient(115deg, #B69CFF, #FF8FD8 60%, #D4FF6A); }
.splitbar.unknown .sb-owner { background: repeating-linear-gradient(135deg, #DCD6EA 0 6px, #EFEBF7 6px 12px); }
.split-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.split-legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.split-legend li i { width: 14px; height: 14px; border-radius: 5px; }
.split-legend b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.calc .calc-out { margin-top: auto; }
.calc .calc-grid + .calc-out { margin-top: 16px; }
.calc .p-head .tag { margin-left: auto; color: var(--warn); border-color: rgba(176,69,126,.4); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cf { display: grid; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.calc-out { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 18px; background: linear-gradient(110deg, rgba(111,243,255,.12), rgba(182,156,255,.14), rgba(255,143,216,.12)); box-shadow: inset 0 0 0 1px rgba(122,92,240,.18); }
.calc-out .muted { margin: 0; font-size: 12.5px; }
.calc-out .mid { font-size: clamp(18px, 1.9vw, 25px); }

/* ============ archive ============ */
.arch-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.arch-list { display: grid; gap: 14px; min-width: 0; }
.arch-empty { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.arch-empty img { width: 150px; height: 150px; animation: bob 2.8s ease-in-out infinite; }
.arch-empty h3 { margin: 0; font: 700 21px/1.25 var(--f-display); }
.arch-empty p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.season { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 16px 20px; }
.season::before, .season::after { display: none; }
.s-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-head h3 { margin: 0; font: 700 19px/1.2 var(--f-display); }
.s-pips { display: flex; gap: 6px; margin-top: 10px; }
.s-pips i { width: 28px; height: 10px; border-radius: 6px; background: rgba(33,26,58,.08); }
.s-pips i.on { background: linear-gradient(90deg, #8FE000, #3FB6A8); box-shadow: 0 0 8px rgba(143,224,0,.5); }
.s-days { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.s-days span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); font: 500 10px/1 var(--f-mono); color: var(--faint); position: relative; }
.s-days svg { width: 22px; height: 22px; }
.s-days span.ven::after { content: ""; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: #FF5FBE; box-shadow: 0 0 6px #FF5FBE; }
.s-days span.risky { box-shadow: inset 0 0 0 1.5px rgba(221,58,174,.5); }
.s-right { text-align: right; }
.s-right .muted { margin: 0; font-size: 12px; }
.s-right .mid { font-size: 22px; }
.s-meta { margin: 8px 0 0; font: 500 12px/1.4 var(--f-mono); color: var(--muted); }
.day177 { text-align: left; overflow: hidden; }
.day177::before { display: none; }
.d177-num { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.d177-num span { font-size: 13px; color: var(--muted); letter-spacing: .2em; }
.d177-num b { font-size: clamp(64px, 7vw, 92px); line-height: .9; font-weight: 700; letter-spacing: -.04em; color: transparent; background: var(--holo-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: holoPan 8s linear infinite; }
.day177 h3 { margin: 6px 0 0; font: 700 20px/1.2 var(--f-display); }
.day177 p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
.d177-bar { margin-top: 14px; height: 10px; border-radius: 6px; background: rgba(33,26,58,.07); overflow: hidden; }
.d177-bar i { display: block; height: 100%; width: var(--p); border-radius: 6px; background: var(--holo); transition: width 1.2s ease; }
.day177.lit { box-shadow: inset 0 0 0 2px rgba(213,155,12,.5), 0 0 40px rgba(255,210,63,.35), var(--shadow); }

/* ============ recruit card ============ */
.recruit-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: center; }
.card-preview { position: relative; margin: 0; }
.card-preview img { width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 26px; background: linear-gradient(160deg, #fff, #EFEAF8); box-shadow: 0 0 0 1px rgba(33,26,58,.08), 0 40px 70px -40px rgba(58,36,120,.55); transform: rotate(-1.2deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); -webkit-touch-callout: default; }
.card-preview:hover img { transform: rotate(0) translateY(-4px); }
.card-cap { margin: 22px 0 0; text-align: center; font-size: 11.5px; color: var(--faint); }
.recruit-line { margin: 0; font-size: 15px; color: var(--ink-2); }
.recruit-line b { color: var(--ink); }
.recruit-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.invite { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--hair-2); }
.invite code { display: block; padding: 12px 14px; border-radius: 12px; background: rgba(33,26,58,.04); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }

/* ============ rules ============ */
.rules-card { padding: clamp(20px, 2.8vw, 34px); }
.six { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; }
.six li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.six-i { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #fff, rgba(233,226,250,.85)); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1), 0 10px 20px -14px rgba(58,36,120,.5); color: var(--violet); overflow: hidden; }
.six-i svg { width: 36px; height: 36px; }
.six-i img { width: 100%; height: 100%; }
.six p { margin: 2px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink); }
.rule-notes { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rn { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(33,26,58,.07); }
.rn b { display: block; font: 600 15px/1.3 var(--f-display); }
.rn b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--holo); vertical-align: 1px; }
.rn p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.tables { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th { text-align: left; font: 500 12px/1.3 var(--f-display); color: var(--muted); padding: 0 8px 8px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.rtable td { padding: 9px 8px 9px 0; border-bottom: 1px dashed var(--hair); white-space: nowrap; }
.rtable td:first-child { display: flex; align-items: center; gap: 8px; white-space: normal; }
.rtable tr:last-child td { border-bottom: 0; }
.ti { width: 24px; height: 24px; flex: none; }
.formula-line { margin: 16px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.qa { border-radius: 20px; background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(33,26,58,.07), 0 16px 30px -26px rgba(58,36,120,.4); overflow: hidden; }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font: 600 16px/1.4 var(--f-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 10px no-repeat, rgba(33,26,58,.06); transition: transform .3s; }
.qa[open] summary::after { transform: rotate(45deg); background-color: rgba(182,156,255,.3); }
.qa[open] { background: rgba(255,255,255,.85); }
.qa-a { padding: 0 22px 18px; }
.qa-a p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.qa-a p:last-child { margin-bottom: 0; }

/* ============ owner console ============ */
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.own-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.own-stat { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); min-width: 0; }
.own-stat p { margin: 0; font-size: 12.5px; color: var(--muted); }
.own-stat b { display: block; margin-top: 6px; font: 600 20px/1.2 var(--f-mono); overflow-wrap: anywhere; }
.own-form { display: grid; gap: 10px; align-content: start; }
.own-form .f-l { margin: 0; }
.own-form .amt input { font-size: 14px; font-weight: 500; }
.preview { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.6; background: rgba(33,26,58,.04); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1); color: var(--ink-2); }
.preview b { color: var(--ink); font-family: var(--f-mono); }
.preview.danger { background: rgba(201,42,74,.07); box-shadow: inset 0 0 0 1.5px rgba(201,42,74,.4); color: #7A1830; }
.preview.danger b { color: var(--stop); }
.confirm { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #7A1830; cursor: pointer; }
.confirm input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--stop); flex: none; }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .doors li { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .doors .d-n { grid-row: auto; }
}
@media (max-width: 1060px) {
  .join-grid, .res-grid, .arch-grid, .tables { grid-template-columns: minmax(0, 1fr); }
  .me-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-badges { grid-column: 1 / -1; }
  .rule-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recruit-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .op-row2 { grid-template-columns: minmax(0, 1fr); }
  .six { grid-template-columns: minmax(0, 1fr); }
  .own-grid { grid-template-columns: minmax(0, 1fr); }
  .recruit-grid { grid-template-columns: minmax(0, 1fr); }
  .card-preview { max-width: 380px; margin: 0 auto; }
  .sec-head-row { align-items: flex-start; }
  .week-chip { justify-items: start; }
}
@media (max-width: 760px) {
  .doors { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .doors li { grid-template-columns: 34px minmax(0, 1fr); justify-items: stretch; padding: 9px 12px; }
  .doors .d-n { grid-row: span 2; width: 34px; height: 34px; font-size: 14px; }
  .map-note { align-items: flex-start; padding: 12px; }
  .mn-ico { width: 36px; height: 36px; }
  .mn-ico img { width: 32px; height: 32px; }
  .me-empty { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .me-empty img { width: 170px; height: 170px; }
  .me-empty p { margin-inline: auto; }
  .arch-empty { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .arch-empty img { width: 90px; height: 90px; }
  .season { grid-template-columns: minmax(0, 1fr); }
  .s-right { text-align: left; }
}
@media (max-width: 640px) {
  .op-grid { grid-template-columns: minmax(0, 1fr); }
  .me-grid { grid-template-columns: minmax(0, 1fr); }
  .res-body { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
  .cyl { max-width: 104px; margin: 0; }
  .reservoir .big { font-size: 32px; }
  .res-split { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; }
  .rs-row .mid { font-size: 19px; }
  .expl { font-size: 13px; }
  .rule-notes { grid-template-columns: minmax(0, 1fr); }
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .own-stats { grid-template-columns: minmax(0, 1fr); }
  .cal-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cal-days { gap: 4px; }
  .cd { padding: 8px 0 7px; border-radius: 11px; }
  .cd .cd-d { font-size: 13px; }
  .cd .cd-s { width: 18px; height: 18px; }
  .cd .cd-s svg { width: 12px; height: 12px; }
  .cal-legend { margin-left: 0; }
  .feed-list li { grid-template-columns: 12px minmax(0, 1fr) auto; row-gap: 2px; }
  .feed-list .ft { grid-column: 2 / 4; grid-row: 2; font-size: 11px; }
  .feed-list .fd { grid-row: 1; }
  .feed-list .fx-txt { white-space: normal; font-size: 13.5px; line-height: 1.45; }
  .wallet { gap: 8px 18px; padding: 12px 16px; }
  .steps { gap: 4px; }
  .steps li { font-size: 12px; gap: 6px; }
  .steps i { width: 22px; height: 22px; }
  .qa summary { padding: 16px 50px 16px 18px; font-size: 15px; }
  .qa-a { padding: 0 18px 16px; }
  .tier-table th { width: 22%; font-size: 11px; }
  .tier-table td { font-size: 11.5px; padding: 7px 0; }
  .daydots li { width: 20px; }
  .ev-icon { width: 66px; height: 66px; }
  .ev-icon svg { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .liquid, .level, .pbar-fill, .rbar-fill { transition: none !important; }
  .runsci { display: none; }
  .drip, .splash, .bubbles circle { opacity: 0 !important; }
  .stamp-mark.hit { animation: none; opacity: .92; transform: rotate(-12deg) scale(1); }
}

/* ============ wallet modal ============ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(33,26,58,.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2); background: linear-gradient(165deg, rgba(255,255,255,.97), rgba(255,255,255,.9)); }
.modal-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(33,26,58,.06); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-lead { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wallet-list button, .wallet-list a { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(33,26,58,.12); font: 600 15px/1.2 var(--f-display); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.wallet-list button:hover, .wallet-list a:hover { box-shadow: inset 0 0 0 1.5px var(--violet); background: #fff; }
.wallet-list img, .wallet-list .wl-i { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.wallet-list .wl-i { display: grid; place-items: center; background: var(--holo); color: #211A3A; font: 700 14px/1 var(--f-mono); }
.wallet-list small { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } }
.feed-list li.minor { opacity: .62; }
.feed-list li.minor .fx-txt { font-size: 13px; }
.own-form .btn-danger:not([disabled]) { animation: none; }
.twostep { display: grid; gap: 8px; }

/* ============ my-file empty state features ============ */
.me-empty { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); }
.me-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.me-feats li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); }
.me-feats svg { grid-row: span 2; width: 34px; height: 34px; color: var(--violet); }
.me-feats b { font: 600 14px/1.3 var(--f-display); }
.me-feats span { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ============ FAQ + science card ============ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.faq { max-width: none; }
.science { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); overflow: hidden; }
.sci-art { position: absolute; right: 10px; top: 8px; width: 92px; height: 92px; opacity: .95; animation: bob 3s ease-in-out infinite; pointer-events: none; }
.science .p-head { padding-right: 96px; min-height: 84px; align-content: flex-start; }
.sci-list { margin: 6px 0 0; display: grid; gap: 12px; }
.sci-list div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--hair-2); }
.sci-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.sci-list dt { font-weight: 700; font-size: 17px; color: transparent; background: var(--holo-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.sci-list dd { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.sci-src { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sci-src a { color: var(--violet); }
@media (max-width: 1060px) {
  .me-empty { grid-template-columns: 180px minmax(0, 1fr); }
  .me-empty img { width: 180px; height: 180px; }
  .me-feats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .science { position: relative; top: 0; }
}
@media (max-width: 760px) {
  .me-empty { grid-template-columns: minmax(0, 1fr); }
  .me-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
}
@media (max-width: 420px) {
  .me-feats { grid-template-columns: minmax(0, 1fr); }
  .sci-list div { grid-template-columns: 72px minmax(0, 1fr); }
}

/* money flow row (tax → vault → reservoir → nightly release → registrants) */
.flowrow { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px dashed var(--hair-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.split-card .split-legend + .why + .flowrow, .split-card .why + .flowrow { margin-top: 18px; }
.flowrow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.flowrow li + li::before { content: ""; position: absolute; top: 20px; right: calc(50% + 26px); width: calc(100% - 42px); border-top: 1.5px dashed rgba(33,26,58,.3); }
.flowrow li + li::after { content: ""; position: absolute; top: 16px; left: -8px; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; transform: rotate(-135deg); background: var(--holo); box-shadow: inset 0 0 0 1px rgba(33,26,58,.3); animation: flowDrop 2.4s ease-in-out infinite; }
.flowrow li:nth-child(3)::after { animation-delay: .8s; }
.flowrow li:nth-child(4)::after { animation-delay: 1.6s; }
@keyframes flowDrop { 0% { transform: translateX(-60px) rotate(-135deg); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateX(-4px) rotate(-135deg); opacity: 1; } 100% { transform: translateX(0) rotate(-135deg); opacity: 0; } }
.fr-i { position: relative; width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(33,26,58,.12), 0 8px 16px -10px rgba(58,36,120,.4); margin-bottom: 6px; display: grid; place-items: center; overflow: hidden; }
.fr-i svg { width: 30px; height: 30px; }
.fr-i img { width: 100%; height: 100%; }
.fr-tax::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF3C2, #F2B413 70%); box-shadow: inset 0 0 0 1.5px rgba(33,26,58,.45); }
.flowrow b { font: 600 13px/1.3 var(--f-display); }
.flowrow em { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 420px) {
  .flowrow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .flowrow li:nth-child(3)::before, .flowrow li:nth-child(3)::after { display: none; }
}

.feed-list li.mine .fx-txt { color: var(--ink); font-weight: 600; }
.feed-list li.mine .fx-txt::before { content: "我"; display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; font: 600 11px/1.5 var(--f-display); color: #fff; background: var(--violet); vertical-align: 1px; }

.me-badges { overflow: hidden; }
.badge-art { position: absolute; right: 6px; bottom: 6px; width: 132px; height: 132px; pointer-events: none; animation: winJump 1.8s cubic-bezier(.3,0,.4,1) infinite; transform-origin: 50% 90%; }
.me-badges .p-head, .me-badges .badge-row, .me-badges .why { position: relative; z-index: 1; max-width: calc(100% - 96px); }
@keyframes winJump { 0%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(0) scale(1.04, .95); } 40% { transform: translateY(-7%) scale(.98, 1.03); } 70% { transform: translateY(0) scale(1.03, .97); } }
@media (max-width: 640px) { .badge-art { width: 104px; height: 104px; } }
