/* Ringfield v4: wallet gate, HYPE payments, tab layout. */

/* tabs: every tab visible. Desktop shows two even rows, phones show four tabs plus a More sheet. */
.tab-more{display:none!important}
.more-sheet[hidden]{display:none}
@media (min-width:861px){
  .tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
  .tabs button{justify-content:center;min-width:0;padding:9px 6px}
  .tabs button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (min-width:861px) and (max-width:1120px){
  .tabs button svg{display:none}
  .tabs button{font-size:13px}
}
@media (max-width:860px){
  .tabs{overflow:visible}
  .tabs [data-sec]{display:none}
  .tabs button,.tab-more{flex:1 1 0;min-width:0}
  .tab-more{display:flex!important}
  .tabs button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
  .more-sheet{position:fixed;left:8px;right:8px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:31;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;border-radius:14px;
    background:rgba(7,25,30,.97);border:1px solid var(--line-hi);box-shadow:0 -20px 50px -10px rgba(0,0,0,.6)}
  .more-sheet button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:10px;color:var(--muted);font-size:13px;position:relative}
  .more-sheet button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
  .more-sheet button[aria-selected=true]{background:var(--btn);color:var(--night)}
  .more-sheet .dot::after{content:"";position:absolute;top:8px;right:14px;width:7px;height:7px;border-radius:50%;background:var(--amber);box-shadow:0 0 8px var(--amber)}
}

/* wallet chip in the header */
.addr{color:var(--gold-hi);gap:7px}
.addr .live{width:6px;height:6px;background:var(--pos);animation:none}
.addr:hover{border-color:var(--line-hi)}
.addr[hidden]{display:none}
.addr b{white-space:nowrap}
@media (max-width:480px){ .addr .addr-tail{display:none} }
@media (max-width:860px){ .tabs button,.tab-more{padding:7px 3px} .tabs button span{font-size:11px;letter-spacing:-.02em} }

/* gate */
body.gated{overflow:hidden}
.gate{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;
  background:radial-gradient(70% 60% at 50% 30%, rgba(22,78,92,.35), rgba(2,12,14,.78));backdrop-filter:blur(14px) saturate(.85)}
.gate[hidden]{display:none}
.gate-card{width:min(470px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:28px 26px 22px;border-radius:18px;text-align:left;
  background:linear-gradient(180deg,rgba(14,42,49,.96),rgba(7,19,23,.97));border:1px solid var(--line-hi);box-shadow:0 50px 100px -30px rgba(0,0,0,.75)}
.gate-mark{width:54px;height:54px;display:block;margin-bottom:16px}
.gate h1{font-family:var(--f-display);font-weight:600;font-size:30px;letter-spacing:-.035em;color:var(--ivory);line-height:1.05}
.gate .lede{color:var(--muted);font-size:15px;line-height:1.5;margin-top:10px}
.steps{list-style:none;margin:20px 0 18px;padding:0;display:grid;gap:2px;position:relative}
.steps li{display:grid;grid-template-columns:28px 1fr;gap:12px;align-items:start;padding:8px 0;color:var(--dim)}
.steps li b{display:block;font-weight:600;font-size:15px;color:inherit}
.steps li small{display:block;font-size:13px;color:var(--dim);margin-top:2px}
.steps .n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-family:var(--f-mono);font-size:13px;border:1px solid var(--line)}
.steps li.now{color:var(--ivory)}
.steps li.now small{color:var(--muted)}
.steps li.now .n{border-color:var(--aether);color:var(--aether);box-shadow:0 0 0 4px rgba(52,183,221,.12)}
.steps li.done{color:var(--muted)}
.steps li.done .n{background:var(--aether);border-color:var(--aether);color:var(--night);font-weight:600}
.wallet-opts{display:grid;gap:8px}
.wallet-opts .buy{width:100%;padding:13px 14px;font-size:16px}
.wallet-opts .ghost{width:100%;padding:11px}
.gate-err{color:#FF9EA1;font-size:14px;margin-bottom:10px}
.demo-note{margin-top:16px;font-size:12px;color:var(--dim);line-height:1.45}
.gate .btns{display:flex;justify-content:flex-start;margin-top:12px}

/* transaction panel, shared by the gate and the Treasury */
.tx{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-align:left;background:rgba(0,0,0,.18)}
.tx div{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;font-size:14px}
.tx div + div{border-top:1px solid var(--line)}
.tx dt{color:var(--muted)}
.tx dd{margin:0;font-family:var(--f-mono);font-size:13px;color:var(--gold-hi);text-align:right;min-width:0;overflow-wrap:anywhere}
.tx dd b{font-weight:500;color:var(--ivory);font-size:14px}
.tx-status{display:flex;align-items:center;gap:10px;margin-top:12px;padding:11px 12px;border-radius:12px;font-size:14px;text-align:left;
  background:rgba(52,183,221,.08);color:var(--gold-hi);border:1px solid rgba(52,183,221,.22)}
.tx-status .spin{flex:none;width:16px;height:16px;border-radius:50%;border:2px solid rgba(147,217,238,.25);border-top-color:var(--aether);animation:spin .8s linear infinite}
.tx-status[data-st=ok]{background:rgba(59,191,154,.1);border-color:rgba(59,191,154,.35);color:#9BE8CF}
.tx-status[data-st=ok] .spin{animation:none;border:0;background:var(--pos);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
@keyframes spin{to{transform:rotate(360deg)}}
.modal-card .tx{margin-top:16px}
.wallet-info{margin-top:14px}
@media (prefers-reduced-motion:reduce){ .tx-status .spin{animation-duration:2.4s} }
@media (max-width:420px){ .gate-card{padding:22px 18px 18px} .gate h1{font-size:26px} }
