/* Ringfield v5: language menu, tab guides, first-run walkthrough. */

/* fonts for non-Latin languages: DM Sans has no Cyrillic, Chinese or Korean glyphs */
:root[data-lang=ru]{--f-display:"DM Sans","Segoe UI",Roboto,"Helvetica Neue",system-ui,sans-serif;--f-body:var(--f-display)}
:root[data-lang=zh]{--f-display:"DM Sans","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;--f-body:var(--f-display)}
:root[data-lang=ko]{--f-display:"DM Sans","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,sans-serif;--f-body:var(--f-display)}
:root[data-lang=zh] .tabs button span,:root[data-lang=ko] .tabs button span{letter-spacing:0}

/* language button and menu */
.lang-btn{gap:6px;color:var(--gold-hi)}
.lang-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6}
.lang-btn b{font-weight:500}
.lang-btn:hover,.lang-btn[aria-expanded=true]{border-color:var(--line-hi)}
.lang-menu{position:fixed;z-index:95;min-width:180px;padding:6px;border-radius:12px;background:rgba(9,30,35,.98);border:1px solid var(--line-hi);box-shadow:0 24px 50px -12px rgba(0,0,0,.7)}
.lang-menu[hidden]{display:none}
.lang-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border-radius:8px;font-size:15px;color:var(--ivory);text-align:left}
.lang-menu button:hover,.lang-menu button:focus-visible{background:rgba(147,217,238,.1);outline:none}
.lang-menu button[aria-checked=true]{color:var(--aether)}
.lang-menu i{font-style:normal}
.gate-card{position:relative}
.gate-lang{position:absolute;top:18px;right:18px}

/* "?" buttons */
.help-dot{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:10px;border-radius:50%;vertical-align:middle;
  font:600 13px/1 var(--f-mono);color:var(--gold);border:1px solid var(--line-hi);background:rgba(147,217,238,.06);transition:background .2s,color .2s}
.help-dot:hover{background:rgba(147,217,238,.16);color:var(--ivory)}
.bal-label{display:flex;align-items:center;justify-content:center}
.bal-label .help-dot{width:20px;height:20px;margin-left:8px;font-size:12px}

/* tab guide */
.guide{margin:0 0 20px;padding:16px 18px 14px;border-radius:14px;overflow:hidden;
  background:linear-gradient(135deg,rgba(52,183,221,.12),rgba(52,183,221,.03) 60%);border:1px solid rgba(52,183,221,.3)}
.guide-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.guide-h b{font-size:15px;color:var(--gold-hi)}
.guide-x{width:28px;height:28px;border-radius:8px;font-size:20px;color:var(--muted)}
.guide-x:hover{background:rgba(255,255,255,.06);color:var(--ivory)}
.guide ul{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.guide li{position:relative;padding-left:18px;font-size:14.5px;line-height:1.5;color:var(--ivory)}
.guide li::before{content:"";position:absolute;left:3px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--aether)}
.guide-tip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border-radius:10px;
  background:rgba(242,195,91,.08);border:1px solid rgba(242,195,91,.3);font-size:14px;line-height:1.45;color:#F7DDA0}
.guide-tip span{flex:1 1 220px}
.guide-tip .buy{min-width:0;padding:8px 12px;font-size:14px}
.guide-f{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.guide-f .buy{min-width:0;padding:8px 16px;font-size:14px}
.guide-f .ghost{font-size:14px}

/* walkthrough */
.modal-card.ob-card{width:min(540px,100%);text-align:left}
.ob h2{font-size:26px;text-align:left}
.ob-count{font:500 12px var(--f-mono);color:var(--dim);margin-bottom:8px}
.ob-lede{color:var(--muted);font-size:15px;line-height:1.5;margin:8px 0 16px}
.ob-goal{display:grid;gap:10px}
.ob-goal > div{padding:12px 14px;border-radius:12px;background:rgba(0,0,0,.18);border:1px solid var(--line)}
.ob-goal b{color:var(--gold-hi);font-size:15px}
.ob-goal p{margin:4px 0 0;font-size:14px;line-height:1.5;color:var(--ivory)}
.ob-cur{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ob-cur li{display:grid;grid-template-columns:22px 1fr;gap:12px;align-items:start;padding:9px 12px;border-radius:10px;background:rgba(0,0,0,.16)}
.ob-cur li > i{width:16px;height:16px;margin:2px 0 0 2px;border-radius:50%;display:block}
.ob-cur li > i.ico-scroll{width:9px!important;height:16px;margin-left:5px;border-radius:6px}
.ob-cur li > i.ico-stam{clip-path:polygon(55% 0,10% 58%,45% 58%,35% 100%,90% 40%,55% 40%);border-radius:0}
.oc-pts{background:radial-gradient(circle at 35% 30%,#F2FBFE,#34B7DD 55%,#0F3A46)}
.oc-charge{background:linear-gradient(90deg,#34B7DD 60%,rgba(52,183,221,.25) 60%);border-radius:4px!important;height:10px!important;margin-top:5px!important}
.oc-res{background:conic-gradient(#B1A690 0 33%,#5FD3A0 0 66%,#B79CFF 0)}
.ob-cur b{font-size:14.5px;color:var(--ivory)}
.ob-cur p{margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.ob-steps{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;gap:6px}
.ob-steps li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;column-gap:12px;padding:9px 12px;border-radius:10px;background:rgba(0,0,0,.16)}
.ob-steps li::before{content:counter(s);grid-row:span 2;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font:500 13px var(--f-mono);color:var(--aether);border:1px solid rgba(52,183,221,.45)}
.ob-steps b{font-size:14.5px;color:var(--ivory)}
.ob-steps p{margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.ob-boost{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ob-boost li{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 12px;border-radius:10px;background:rgba(242,195,91,.06);border:1px solid rgba(242,195,91,.22)}
.ob-boost b{font-size:14.5px;color:#F7DDA0}
.ob-boost span{font:500 13px var(--f-mono);color:var(--gold-hi);white-space:nowrap}
.ob-boost p{grid-column:1/-1;margin:0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.ob-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}
.ob-foot .btns{margin-top:0;justify-content:flex-end}
.ob-foot .buy{min-width:96px}
.ob-dots{display:flex;gap:6px}
.ob-dots i{width:7px;height:7px;border-radius:50%;background:rgba(147,217,238,.2);transition:width .25s,background .25s}
.ob-dots i.done{background:rgba(52,183,221,.55)}
.ob-dots i.on{width:20px;border-radius:4px;background:var(--aether)}

/* airdrop line under the points counter */
.drop-line{display:inline-block;margin-top:10px;padding:5px 12px;border-radius:999px;border:1px solid rgba(242,195,91,.3);background:rgba(242,195,91,.07);
  font:400 12.5px var(--f-mono);color:#E9D3A0;transition:background .2s,border-color .2s}
.drop-line b{font-weight:500;color:#F7DDA0}
.drop-line:hover{background:rgba(242,195,91,.14);border-color:rgba(242,195,91,.5)}

/* season ranking */
.drop-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;padding:22px 24px;border-radius:16px;
  background:radial-gradient(120% 140% at 0% 0%,rgba(242,195,91,.16),rgba(242,195,91,0) 55%),rgba(7,19,23,.7);border:1px solid rgba(242,195,91,.32)}
.drop-card span{display:block;font-size:13px;color:var(--muted)}
.drop-card b{display:block;font:500 clamp(34px,4.4vw,52px)/1.05 var(--f-mono);letter-spacing:-.04em;color:#F7DDA0;margin:6px 0 4px;font-variant-numeric:tabular-nums}
.drop-card small{font-size:13px;color:var(--muted)}
.dc-rank{text-align:right}
.dc-rank b{color:var(--ivory)}
.pools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pool{padding:14px 16px;border-radius:14px;background:rgba(7,19,23,.6);border:1px solid var(--line)}
.pool-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.pool-h b{font-size:16px;color:var(--ivory)}
.pool-h span{font:500 14px var(--f-mono);color:#F7DDA0}
.pool p{margin:4px 0 10px;font-size:13px;line-height:1.45;color:var(--muted);min-height:2.9em}
.pool-bar{height:4px;border-radius:2px;background:rgba(147,217,238,.1);overflow:hidden}
.pool-bar i{display:block;height:100%;background:var(--aether);border-radius:2px;transition:width .6s}
.pool dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 0}
.pool dt{font-size:12px;color:var(--dim)}
.pool dd{margin:2px 0 0;font:500 14px var(--f-mono);color:var(--ivory);font-variant-numeric:tabular-nums}
.drop-rank .row{grid-template-columns:44px 1fr auto 96px;align-items:center}
.drop-rank .row h3{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drop-rank .dr-share{font:400 13px var(--f-mono);color:var(--muted);text-align:right}
.drop-rank .score{text-align:right;color:#F7DDA0}
.drop-rank .gap{min-height:0;padding-top:2px;padding-bottom:2px}
.drop-rank .gap .pos{font-size:16px;color:var(--dim)}

/* header room on phones */
@media (max-width:480px){
  .wallet [data-cur=scrolls].cur{display:none}
  .lang-btn{padding:4px 8px 4px 7px}
  .lang-btn svg{display:none}
  .gate-lang{top:14px;right:14px}
  .ob-foot{flex-direction:column-reverse;align-items:stretch}
  .ob-foot .btns{justify-content:stretch}
  .ob-foot .btns > *{flex:1}
  .ob-dots{justify-content:center}
  .drop-card{padding:18px}
  .pools{grid-template-columns:1fr}
  .pool p{min-height:0}
  .drop-rank .row{grid-template-columns:44px 1fr auto 72px;gap:8px}
  .drop-rank .pos{font-size:17px}
  .drop-rank .dr-share{font-size:12px}
}
@media (prefers-reduced-motion:reduce){ .ob-dots i{transition:none} }
