/* ============================================================ game board */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; }
.board-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.board-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 86px; }
@media (max-width: 1120px) { .board { grid-template-columns: minmax(0, 1fr); } .board-side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 760px) { .board-side { grid-template-columns: minmax(0, 1fr); } }

/* block header */
.bh { position: relative; border-radius: var(--r); padding: 20px 22px 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.bh-top { display: grid; grid-template-columns: auto auto 1fr; gap: 30px; align-items: end; }
.bh-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bh-idrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bh-id b { font-size: 28px; font-weight: 700; line-height: 1.1; }
.bh-id b .pre { font-size: 19px; font-weight: 600; }
.bh-timer { display: flex; flex-direction: column; gap: 4px; padding-left: 26px; border-left: 1px solid var(--line); }
.bh-timer b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; }
.bh-timer.late b { color: var(--bad); animation: pulse .9s ease-in-out infinite; }
.bh-mult { justify-self: end; display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 4px; align-items: baseline; }
.bh-mult .label { grid-column: 1 / -1; }
.bh-mult b { font-size: 28px; color: #fff; line-height: 1.1; }
.bh-mult .hint { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.bh-bar { position: relative; height: 6px; margin: 18px 0 16px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.bh-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--eth); transition: width .25s linear; }
.bh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.bh-stats div { min-width: 0; }
.bh-stats dt { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.bh-stats dd { margin: 3px 0 0; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-stats dd .pre { font-size: 15px; }
.bh-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.bh-note:empty { display: none; }
.seal-banner { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; font-weight: 600; color: #fff; pointer-events: none; opacity: 0; background: rgba(10, 20, 40, .96); }
.seal-banner span { display: inline-flex; align-items: center; gap: 12px; }
.board.sealing .seal-banner { animation: sealFlash 1.9s ease-out 1; }
@keyframes sealFlash { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .bh { padding: 16px 14px 14px; }
  .bh-top { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .bh-timer { padding-left: 14px; }
  .bh-timer b { font-size: 36px; }
  .bh-mult { grid-column: 1 / -1; justify-self: stretch; grid-template-columns: auto auto 1fr; }
  .bh-mult .label { grid-column: auto; }
  .bh-mult b { font-size: 20px; }
  .bh-stats dd { font-size: 16px; }
}
.notice { padding: 12px 14px; border-radius: var(--r-s); font-size: 14px; font-weight: 600; color: var(--warn); border: 1px solid rgba(255, 193, 99, .35); }
.notice.bad { color: var(--bad); border-color: rgba(255, 111, 142, .45); }

/* zones */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.zone {
  position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; text-align: left; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .15s;
}
.zone:hover, .zone:focus-visible { border-color: color-mix(in srgb, var(--z) 60%, transparent); }
.zone.sel { border-color: var(--z); box-shadow: inset 0 0 0 1px var(--z); }
.zones.dragging .zone { border-color: color-mix(in srgb, var(--z) 50%, transparent); }
.zones.dragging .zone .zone-drop, .zones.hint .zone .zone-drop { opacity: 1; }
.zones.hint .zone { animation: nudge .9s ease 1; }
@keyframes nudge { 30% { transform: translateY(-4px); } 60% { transform: translateY(0); } }
.zone.over { border-color: var(--z); box-shadow: inset 0 0 0 1px var(--z); }
.zone.pulse { animation: zpulse 1s ease-out 1; }
@keyframes zpulse { 0% { box-shadow: inset 0 0 0 1px var(--z); } 30% { box-shadow: inset 0 0 0 2px var(--z); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.zone-art { position: relative; height: 164px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.zone-art svg { width: 100%; max-width: 290px; height: auto; }
.zone-svg .zglow { opacity: .35; }
.zcube.drop { animation: cubeDrop .8s cubic-bezier(.25, 1.6, .5, 1) 1 both; }
@keyframes cubeDrop { 0% { transform: translateY(-80px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(0); } }
.zone-drop { position: absolute; left: 10px; right: 10px; top: 10px; height: 144px; display: grid; place-items: center; border-radius: var(--r-s); border: 1.5px dashed var(--z); background: rgba(4, 9, 21, .7); color: var(--z-l); font-weight: 700; font-size: 16px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 3; }
.zone-badge { position: absolute; top: 10px; left: 10px; z-index: 4; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #0a1428; color: var(--z-l); border: 1px solid color-mix(in srgb, var(--z) 50%, transparent); }
.zone-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.zone-head { display: flex; align-items: center; gap: 8px; }
.zone-head::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--z); flex: none; }
.zone-head h3 { font-size: 20px; color: #fff; }
.zone-tag { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; }
.zone-cap { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.zc-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; align-items: baseline; font-size: 13px; color: var(--ink-3); }
.zc-row b { margin-left: auto; font-family: var(--f-mono); font-size: 14.5px; color: #fff; white-space: nowrap; }
.zc-row.sub b { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.zc-row b .pre { font-size: 13px; }
.zc-row small { color: var(--ink-3); font-size: 11.5px; }
.capbar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.capbar span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--z); transition: width .5s ease; }
.zone-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.zone-stats div { min-width: 0; }
.zone-stats dt { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.zone-stats dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-stats dd .pre { font-size: 13px; }
.zone-stats .hl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.zone-stats .hl dt { color: var(--ink-2); font-size: 13px; }
.zone-stats .hl dd { font-size: 15.5px; color: #fff; margin: 0; }
.board.pre .zone-stats { grid-template-columns: 1fr; gap: 5px; }
.board.pre .zone-stats div:not(.hl) { display: flex; justify-content: space-between; gap: 8px; }
.board.pre .zone-stats dd { margin: 0; }
.board.pre .zc-row.sub b { white-space: nowrap; }
.zone-est { margin-top: auto; font-size: 13px; color: var(--ink-2); padding-top: 9px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.zone-est b { font-family: var(--f-mono); color: #fff; }
.zone-est .em-note { font-size: 13px; color: var(--ink-2); }
.zone-est:empty { display: none; }
@media (max-width: 960px) {
  .zones { grid-template-columns: minmax(0, 1fr); }
  .zone { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .zone-art { height: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
  .zone-drop { height: auto; bottom: 10px; right: auto; width: calc(42% - 20px); }
  .zone-tag { min-height: 0; }
}
@media (max-width: 560px) {
  .zone { grid-template-columns: minmax(0, 1fr); }
  .zone-art { height: 140px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .zone-art svg { max-width: 250px; }
  .zone-drop { width: auto; right: 10px; bottom: auto; height: 120px; }
  .zone-stats dd { font-size: 14px; }
}

/* feed */
.feed { padding: 14px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; max-height: 180px; overflow: auto; }
.feed-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.feed-list li .who { font-family: var(--f-mono); color: #fff; text-decoration: none; }
.feed-list li .amt { font-family: var(--f-mono); color: #fff; font-weight: 700; }
.feed-list li .pw { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.feed-list li.empty { color: var(--ink-3); }
.feed-list li.me .who { color: var(--cyan); }
@media (max-width: 560px) { .feed-list li { flex-wrap: wrap; } .feed-list li .pw { margin-left: 15px; } }

/* deploy panel */
.deploy { display: flex; flex-direction: column; gap: 12px; }
.deploy .panel-h { margin-bottom: 2px; }
.dp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dp-label { font-weight: 600; font-size: 14px; }
.dp-bal { font-size: 13px; color: var(--ink-3); }
.dp-bal b { color: var(--ink-2); font-weight: 600; }
.dp-input { display: flex; align-items: center; height: 54px; padding: 0 14px; border-radius: var(--r-s); background: var(--sunk); border: 1px solid var(--line-2); transition: border-color .15s; }
.dp-input:focus-within { border-color: var(--eth); }
.dp-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--f-mono); font-size: 22px; font-weight: 700; color: #fff; }
.dp-input input::placeholder { color: var(--ink-3); opacity: .5; }
.dp-unit { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); font-weight: 600; }
.dp-chips { display: flex; gap: 6px; align-items: center; }
.dp-min { font-size: 13px; color: var(--ink-3); margin-right: auto; }
.dp-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dz { display: inline-flex; align-items: center; justify-content: center; gap: 0; min-height: 38px; padding: 0 8px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 13.5px; transition: border-color .15s, color .15s; }
.dz:hover { border-color: var(--z); color: #fff; }
.dz.on { border-color: var(--z); color: #fff; box-shadow: inset 0 0 0 1px var(--z); }
.dp-node { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-s); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; position: relative;
  border: 1px dashed var(--line-2); background: transparent; transition: border-color .15s; }
.dp-node:hover { border-color: rgba(160, 200, 255, .45); }
.dp-node:active { cursor: grabbing; }
.dp-node.lifted { opacity: .35; }
.dp-node-sprite svg { width: 48px; height: auto; animation: floaty 3s ease-in-out infinite; }
.dp-node-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dp-node-txt b { font-size: 14.5px; color: #fff; }
.dp-node-txt small { color: var(--ink-3); font-size: 12.5px; }
.dp-grip { margin-left: auto; width: 10px; height: 18px; background: radial-gradient(var(--ink-3) 1.4px, transparent 1.7px) 0 0 / 5px 6px; opacity: .8; }
.drag-ghost { position: fixed; z-index: 70; pointer-events: none; left: 0; top: 0; }
.drag-ghost svg { width: 60px; height: auto; }
.drag-ghost .gl { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; font-weight: 700; background: #fff; color: #0b1428; padding: 2px 7px; border-radius: 5px; }
.drag-ghost.fly { transition: transform .35s cubic-bezier(.3, .8, .4, 1), opacity .35s; }
.dp-est { margin: 0; display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp-est div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dp-est dt { font-size: 13.5px; color: var(--ink-2); }
.dp-est dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.dp-est .em dt { color: #fff; font-weight: 600; }
.dp-est .em dd { font-size: 17px; color: #fff; }
.est-note { margin-top: -4px; }
.zname { font-family: var(--f-body); font-weight: 700; display: inline-flex; align-items: center; color: var(--z-l); }
.tx { font-size: 13.5px; line-height: 1.45; }
.tx:empty { display: none; }
.tx .row { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: var(--r-s); border: 1px solid var(--line); }
.tx .row.ok { color: var(--good); border-color: rgba(63, 224, 162, .3); }
.tx .row.bad { color: #ffb7c6; border-color: rgba(255, 111, 142, .35); }
.tx a { color: inherit; font-weight: 700; }
.spin { flex: none; width: 13px; height: 13px; margin-top: 3px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--eth); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* claim panel */
.claim { display: flex; flex-direction: column; gap: 12px; }
.cl-big { display: flex; flex-direction: column; gap: 2px; }
.cl-big b { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.15; }
.cl-big b .pre { font-size: 15px; }
.cl-big small { font-size: 13px; color: var(--ink-2); }
.cl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cl-stats dt { font-size: 12.5px; color: var(--ink-3); }
.cl-stats dd { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-mine { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.cl-mine-zones { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-mine-zones span { font-family: var(--f-mono); font-size: 12px; padding: 1px 7px; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--z) 45%, transparent); color: var(--z-l); font-weight: 600; }
.cl-mine-est { color: var(--ink-2); }
.cl-mine-est b { color: #fff; }
.btn-wallet.got { animation: got .9s ease-out 1; }
@keyframes got { 0% { box-shadow: 0 0 0 0 rgba(63, 224, 162, .9); } 40% { box-shadow: 0 0 0 6px rgba(63, 224, 162, 0); } 100% { box-shadow: none; } }
.zcube.me { filter: brightness(1.3); }
