/* FloatCraft · on top of Float's tokens (app.css): the voxel wordmark hero, the hotbar, the miner, the crafting table, the day clock, the block wall */
:root { --ore: #3d8bff; --chest: #e9eef7; --tnt: #e14b3f; --gold: #f3c24f; --slot: rgba(255, 255, 255, .035); --slot-b: rgba(255, 255, 255, .08); }
.on-home .hdr { position: absolute; left: 0; right: 0; }
.brand span { letter-spacing: .01em; }

/* ---------------- hero: Float's centred lockup, the O is a 3D voxel block, logo blocks afloat all around */
.fch { position: relative; min-height: max(660px, 100svh); height: auto; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6.2rem 1.25rem 8.2rem; }
.fch::after { display: none; }
.hstage { position: absolute; inset: 0; }
.hstage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 52% at 50% 40%, rgba(16, 48, 112, .55) 0%, rgba(4, 13, 34, .35) 52%, rgba(2, 7, 19, 0) 80%); }
.hstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.hstage.live canvas { opacity: 1; }
.hcopy2 { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; width: min(1120px, 100%); }
.hcopy2 a, .hcopy2 button, .hcopy2 .capill { pointer-events: auto; }
.wm { display: flex; align-items: center; justify-content: center; gap: 0; font: 900 120px/.86 var(--font); letter-spacing: -.055em; color: #fff; white-space: nowrap; user-select: none; text-shadow: 0 10px 40px rgba(61, 139, 255, .18); }
.wm .w1, .wm .w2 { display: inline-flex; align-items: center; }
.wm .oslot { position: relative; display: inline-block; width: .74em; height: .8em; margin: 0 .035em 0 .02em; }
.wm .oslot img { position: absolute; inset: 4% 6%; width: 88%; height: 92%; object-fit: contain; transition: opacity .5s ease; }
.hstage.live ~ .hcopy2 .oslot img { opacity: 0; }
.wm.stack { flex-direction: column; line-height: .84; }
.hl { margin: 1.5rem 0 0; font-size: clamp(1.55rem, 3.6vw, 2.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.hsub { margin: .85rem auto 0; max-width: 34rem; color: var(--muted); font-size: clamp(.9rem, 1.6vw, 1rem); line-height: 1.55; text-wrap: pretty; }
.ctas { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.ctas .cta { margin: 0; width: auto; max-width: none; min-width: 13.5rem; padding: .95rem 1.6rem; font-size: .86rem; letter-spacing: .04em; box-shadow: 0 10px 40px -10px rgba(61, 139, 255, .75); }
.ctas .btn2 { padding: .95rem 1.4rem; background: rgba(9, 23, 46, .72); }
.cta.going { background: #fff; color: #06132e; box-shadow: 0 10px 40px -12px rgba(255, 255, 255, .45); }
.cta .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.cta.going .dot { background: var(--accent); animation: fcblink 1s ease-in-out infinite; }
@keyframes fcblink { 50% { opacity: .25; } }
#hero-pill { margin-top: 1.1rem; min-height: 0; }
.hmeta { margin-top: 1.1rem; display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; align-items: center; font-size: .75rem; color: var(--faint); }
.hmeta a:hover { color: var(--muted); }
.hmeta .day { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-family: var(--mono); }
.hmeta .day i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.breaktip { position: absolute; z-index: 3; left: 50%; bottom: 5.4rem; transform: translateX(-50%); font-size: .72rem; color: var(--faint); pointer-events: none; white-space: nowrap; }

/* ---------------- block icons (3D sprites) + CSS iso cube for any image */
.blk { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 10px rgba(0, 4, 16, .45)); }
.iso { --s: 30px; position: relative; display: inline-block; width: calc(var(--s) * 1.42); height: calc(var(--s) * 1.64); vertical-align: middle; }
.iso .c { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform-style: preserve-3d; transform: rotateX(-35.264deg) rotateY(-45deg); }
.iso .c i { position: absolute; inset: 0; background: #f7f9fd var(--img) center / cover no-repeat; border-radius: 14%; backface-visibility: hidden; }
.iso .c .f { transform: translateZ(calc(var(--s) / 2)); filter: brightness(.9); }
.iso .c .r { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.74); }
.iso .c .t { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }

/* ---------------- hotbar (Minecraft's nine slots, Float's glass) */
.hotbar { position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 31; transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.hotbar.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hb { display: flex; align-items: center; gap: .55rem; padding: .4rem .45rem .4rem .55rem; border-radius: 16px; background: rgba(5, 15, 34, .9); border: 1px solid var(--border-strong); box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .7); }
.hb-slots { display: grid; grid-template-columns: repeat(9, 42px); gap: 4px; }
.hb-slot { position: relative; width: 42px; height: 42px; border-radius: 10px; background: var(--slot); border: 1px solid var(--slot-b); display: grid; place-items: center; }
.hb-slot.sel { border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hb-slot img.blk, .hb-slot .iso { width: 34px; height: 34px; }
.hb-slot .iso { --s: 21px; }
.hb-slot b { position: absolute; right: 3px; bottom: 1px; font: 700 .68rem var(--mono); color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.hb-slot.bump { animation: fcbump .38s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fcbump { 40% { transform: scale(1.18); } }
.hb-meta { display: flex; flex-direction: column; gap: .05rem; font-size: .7rem; color: var(--muted); white-space: nowrap; min-width: 6.6rem; }
.hb-meta b { color: var(--text); font: 700 .78rem var(--mono); }
.hb-x { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--card-hover); color: var(--muted); }
.hb-x:hover { color: var(--text); }
.hb-x svg { width: 15px; height: 15px; }
.flyblk { position: fixed; z-index: 60; width: 46px; height: 46px; pointer-events: none; will-change: transform, opacity; }
.flyblk img { width: 100%; height: 100%; }

/* ---------------- sections */
.kick { display: inline-block; margin-bottom: .7rem; color: var(--accent); font: 600 .78rem var(--mono); letter-spacing: .02em; }
.minerc { margin-top: 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1rem; }
.mpanel { padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.mbig { display: flex; align-items: center; gap: 1rem; }
.mbig .cta { margin: 0; width: auto; max-width: none; flex: 1; padding: 1rem 1.2rem; }
.mstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.mstats div { padding: .7rem .8rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.mstats small { display: block; color: var(--faint); font-size: .72rem; }
.mstats b { display: block; font: 700 1rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnote { margin: 0; color: var(--faint); font-size: .78rem; }
.mpick { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-align: left; width: 100%; }
.mpick:hover { border-color: var(--border-strong); }
.mpick .mi { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.mpick .tx { flex: 1; min-width: 0; }
.mpick b { display: block; font-size: .9rem; }
.mpick small { display: block; color: var(--faint); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpick .chg { font-size: .74rem; color: var(--accent); font-weight: 600; }
.stream { padding: 1rem 1.1rem; display: flex; flex-direction: column; min-height: 22rem; }
.stream h3 { margin: 0; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.stream h3 small { color: var(--faint); font-weight: 500; font-size: .74rem; }
.slist { margin-top: .8rem; display: flex; flex-direction: column; gap: .35rem; font: 500 .74rem var(--mono); overflow: hidden; flex: 1; }
.srow { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); animation: fcin .35s cubic-bezier(.2, .8, .2, 1); }
.srow .h { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); }
.srow .h em { font-style: normal; color: #fff; }
.srow .bt { color: var(--accent); white-space: nowrap; }
.srow .w { color: var(--muted); white-space: nowrap; }
.srow img { width: 20px; height: 20px; flex: none; }
.sempty { margin: auto; text-align: center; color: var(--faint); font: 400 .84rem/1.5 var(--font); max-width: 22rem; }
.sempty img { width: 74px; height: 74px; margin: 0 auto .7rem; opacity: .9; }
@keyframes fcin { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------- crafting table */
.craftc { margin-top: 1.6rem; padding: 1.4rem; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.ctable { display: grid; grid-template-columns: repeat(3, var(--cs, 74px)); grid-template-rows: repeat(3, var(--cs, 74px)); gap: 8px; padding: 12px; border-radius: 22px; background: linear-gradient(180deg, #0c1d3d, #081530); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 60px -30px rgba(0, 0, 0, .8); }
.cslot { position: relative; border-radius: 14px; background: rgba(2, 8, 22, .55); border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 7px; transition: border-color .15s, transform .15s, background .15s; }
.cslot:hover { border-color: rgba(255, 255, 255, .35); background: rgba(61, 139, 255, .08); }
.cslot:active { transform: scale(.95); }
.cslot img.blk { width: 100%; height: 100%; }
.cslot.pair { background: rgba(61, 139, 255, .14); border-color: rgba(61, 139, 255, .55); }
.cslot .lbl { position: absolute; left: 50%; bottom: -1px; transform: translate(-50%, 50%); font: 700 .58rem var(--mono); letter-spacing: .04em; color: #cfe0ff; background: #0d2a66; border-radius: 999px; padding: .1rem .4rem; white-space: nowrap; pointer-events: none; }
.cslot.pop { animation: fcpop .32s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes fcpop { 0% { transform: scale(.7); } }
.carrow { color: var(--faint); display: grid; place-items: center; }
.carrow svg { width: 42px; height: 42px; }
.cout { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.coutrow { display: flex; align-items: center; gap: 1rem; }
.coutbox { width: 132px; height: 132px; flex: none; border-radius: 24px; background: radial-gradient(70% 70% at 50% 40%, rgba(61, 139, 255, .22), rgba(9, 23, 46, .2)); border: 1px solid var(--border-strong); position: relative; }
.coutbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.coutbox img.blk { position: absolute; inset: 14%; width: 72%; height: 72%; }
.coutt b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.coutt small { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.inv { display: flex; gap: .45rem; flex-wrap: wrap; }
.invb { display: flex; align-items: center; gap: .5rem; padding: .35rem .65rem .35rem .4rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 600; }
.invb img { width: 30px; height: 30px; }
.invb small { color: var(--faint); font-weight: 500; font-family: var(--mono); }
.invb.on { border-color: var(--accent); background: rgba(61, 139, 255, .12); }
.splitbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.splitbar i { display: block; height: 100%; transition: flex-grow .35s ease; }
.splitbar .s-ore { background: var(--ore); } .splitbar .s-chest { background: var(--chest); } .splitbar .s-tnt { background: var(--tnt); } .splitbar .s-gold { background: var(--gold); }
.splitkey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; font-size: .74rem; color: var(--muted); }
.splitkey div { display: flex; flex-direction: column; gap: .1rem; }
.splitkey b { color: var(--text); font: 700 .95rem var(--mono); }
.splitkey i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .3rem; }
.presets { display: flex; gap: .4rem; flex-wrap: wrap; }
.presets button { font-size: .74rem; font-weight: 600; color: var(--muted); padding: .35rem .6rem; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); }
.presets button:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------------- day clock */
.dayc { margin-top: 1.6rem; padding: 1.6rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.6rem; align-items: center; overflow: hidden; }
.arcw { position: relative; aspect-ratio: 2 / 1.08; }
.arcw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arcw .sun { position: absolute; width: 54px; height: 54px; transform: translate(-50%, -50%); }
.dayt { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.dayt b { display: block; font: 800 clamp(2rem, 5vw, 3rem) var(--mono); letter-spacing: -.04em; }
.dayt small { color: var(--muted); font-size: .8rem; }
.steps3 { display: flex; flex-direction: column; gap: .7rem; }
.st3 { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.st3 img { width: 46px; height: 46px; flex: none; }
.st3 b { display: block; font-size: .95rem; }
.st3 p { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; }

/* ---------------- block wall (every Float market is a block) */
.wall { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wrow { display: flex; gap: 1rem; width: max-content; animation: fcwall 70s linear infinite; }
.wrow.rev { animation-direction: reverse; animation-duration: 84s; }
.wrow.slow { animation-duration: 96s; }
.wall:hover .wrow { animation-play-state: paused; }
.wblk { width: 128px; flex: none; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.wblk img { width: 116px; height: 116px; }
.wblk span { font: 600 .72rem var(--mono); color: var(--muted); }
@keyframes fcwall { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wrow { animation: none; } .cta.going .dot { animation: none; } }

/* ---------------- coins as mines */
.cc .rmini { display: flex; gap: 3px; margin-left: auto; }
.cc .rmini i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.rmini .ore { background: var(--ore); } .rmini .chest { background: var(--chest); } .rmini .tnt { background: var(--tnt); } .rmini .gold { background: var(--gold); }
.cc .mine-b { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--accent); }
.cc .pays { gap: .6rem; }
.cc .pays small { color: var(--faint); }
.mrow { display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); }
.mrow b { color: var(--text); font-family: var(--mono); }

.page .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .page .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- create page */
.cgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin-top: 1.6rem; align-items: start; }
.tablec { padding: 1.3rem; display: flex; flex-direction: column; gap: 1.1rem; }
.tablerow { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.legend div { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--muted); }
.legend img { width: 30px; height: 30px; flex: none; }
.legend b { color: var(--text); font-weight: 600; display: block; font-size: .82rem; }

/* ---------------- responsive */
@media (max-width: 980px) {
  .minerc, .dayc, .cgrid2 { grid-template-columns: minmax(0, 1fr); }
  .craftc { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .carrow { transform: rotate(90deg); }
  .cout { width: 100%; }
}
@media (max-width: 640px) {
  .fch { padding: 5.2rem 1rem 9.5rem; min-height: max(620px, 100svh); }
  .hl { margin-top: 1.1rem; }
  .ctas .cta, .ctas .btn2 { width: 100%; min-width: 0; }
  .ctas { width: 100%; max-width: 22rem; }
  .hb-slots { grid-template-columns: repeat(9, 31px); gap: 3px; }
  .hb-slot { width: 31px; height: 31px; border-radius: 8px; }
  .hb-slot img.blk { width: 25px; height: 25px; }
  .hb-slot .iso { --s: 15px; }
  .hb { flex-wrap: wrap; justify-content: center; gap: .35rem; padding: .4rem; }
  .hb-meta { flex-direction: row; gap: .7rem; min-width: 0; order: -1; width: calc(100% - 44px); justify-content: center; }
  .ctable { --cs: 62px; }
  .wblk { width: 84px; } .wblk img { width: 74px; height: 74px; }
  .breaktip { display: none; }
  .splitkey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
