/* The front door (public/landing.html): built on the site's tokens from styles.css, lapis theme only.
   One centered column, like a classic faucet welcome page. */
.front-links{margin-left:auto;display:flex;gap:4px;flex-wrap:wrap}
.front-links a{color:var(--nav-ink);text-decoration:none;font-family:var(--display);letter-spacing:.05em;font-size:.92rem;padding:6px 14px;border-radius:999px;border:1px solid transparent;
  transition:background-color .18s,border-color .18s}
.front-links a:hover{background:var(--nav-chip);border-color:var(--nav-chip-line)}

/* the faucet page's two-column grid doesn't apply here */
.front-main{display:flex;flex-direction:column;gap:28px;max-width:860px;margin:0 auto;padding-block:10px 56px}

/* welcome + sign-in, centered, with a soft gold glow behind the seal */
.front-hero{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:14px}
.front-hero::before{content:"";position:absolute;top:-30px;left:50%;width:520px;max-width:100%;height:320px;transform:translateX(-50%);pointer-events:none;z-index:-1;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--gold) 16%,transparent),transparent)}
.front-seal{width:132px;height:132px;border-radius:50%;border:1px solid var(--gold);box-shadow:0 0 0 5px var(--bg),0 0 0 6px var(--line),0 14px 40px rgba(0,0,0,.45)}
.front-hero h1{margin-top:18px;font-size:clamp(2.2rem,6vw,3.4rem);letter-spacing:.06em}
.front-hero .lede{margin-top:.3rem;font-size:1.1rem}
.front-signin{width:min(560px,100%);margin-top:24px;padding:20px 22px;text-align:left;display:flex;flex-direction:column;gap:8px}
.front-row{display:flex;gap:10px;flex-wrap:wrap}
.front-row input{flex:1;min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:11px 12px}
.front-row input:focus{border-color:var(--gold);outline:none}
.front-row .btn{padding:11px 22px}
#signMsg:empty{display:none}
.front-note{margin:4px 0 0;font-size:.84rem;line-height:1.45;color:var(--muted)}
.front-note a{color:var(--gold)}

/* the three ways to earn */
.front-ways{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.front-ways li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:14px 10px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--surface) 60%,transparent)}
.front-ways svg{width:26px;height:26px;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
.front-ways svg .sand{fill:var(--gold);stroke:none}
.front-ways b{font-family:var(--display);font-weight:400;letter-spacing:.05em;color:var(--gold-hi)}
.front-ways span{font-size:.88rem;color:var(--lede)}

/* v0.20.1: the thin banner (320 × 50, the Captcha Gate's AADS unit) under the three ways to earn.
   ads.css styles the live slot; ads.js shrinks it on phones narrower than 320 px. */
.front-thin{display:flex;justify-content:center;margin:-8px 0}
.front-thin:empty{display:none}
.front-thin .ad-gate{width:100%;max-width:320px}
.front-thin .ad-gate:not(.is-live){height:50px} /* test mode without a unit number: the empty frame */

/* castle totals: the big earned figure under the gold coin, then five tiles in one row */
.front-earned{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.front-coin{width:72px;height:72px;border-radius:50%;margin-bottom:8px;box-shadow:0 0 0 1px rgba(244,221,148,.55),0 0 22px rgba(244,221,148,.3)}
.front-earned strong{display:block;font-size:clamp(2rem,5vw,2.6rem);font-weight:500;line-height:1.15;color:var(--gold-hi);overflow-wrap:anywhere}
.front-sub{display:block;font-size:.85rem;color:var(--muted)}
.front-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.front-tiles > div{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;padding:12px 8px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.front-tiles svg{width:22px;height:22px;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:6px}
.front-tiles .mono{font-size:1.35rem;line-height:1.25;overflow-wrap:anywhere}
.front-tiles .label{font-size:.64rem;margin-top:2px}
.front-tiles small{font-size:.72rem;color:var(--muted);margin-top:2px}
.front-tiles small:empty{display:none}

/* side ad + recent payouts side by side, stacked on phones */
.front-foot{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}
.front-foot > .adslot{margin:0}
.front-foot > :only-child{grid-column:1/-1}

@media (max-width:720px){
  .front-ways{grid-template-columns:minmax(0,1fr)}
  .front-ways li{flex-direction:row;justify-content:center;gap:8px;padding:10px 12px}
  .front-ways svg{width:20px;height:20px;margin:0}
  .front-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .front-tiles > div:last-child{grid-column:1/-1}
  .front-foot{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:480px){.front-seal{width:104px;height:104px}.front-row .btn{width:100%}}

/* ---------- v1.42: the castle at a glance, Why choose us, Only at Tartaria BTC ---------- */
/* small gold tags under the welcome line */
.front-tags{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:14px 0 0;padding:0}
.front-tags li{font-family:var(--display);font-size:.82rem;letter-spacing:.06em;color:var(--gold-hi);padding:4px 12px 4px 10px;border-radius:999px;
  border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 70%,transparent);display:flex;align-items:center;gap:7px}
.front-tags li::before{content:"";width:6px;height:6px;transform:rotate(45deg);background:var(--gold);box-shadow:0 0 6px rgba(244,221,148,.6)}

/* a section heading between two gold rules, each ending in a diamond */
.fx{display:flex;flex-direction:column;gap:18px}
.fx-head{display:flex;align-items:center;gap:16px}
.fx-head h2{font-size:clamp(1.35rem,3.4vw,1.75rem);color:var(--gold-hi);letter-spacing:.08em;white-space:nowrap;text-align:center}
.fx-rule{flex:1;height:1px;position:relative;background:linear-gradient(90deg,transparent,var(--gold))}
.fx-rule + h2 + .fx-rule{background:linear-gradient(90deg,var(--gold),transparent)}
.fx-rule::after{content:"";position:absolute;top:50%;width:7px;height:7px;background:var(--gold);transform:translateY(-50%) rotate(45deg)}
.fx-head .fx-rule:first-child::after{right:-3px}
.fx-head .fx-rule:last-child::after{left:-3px}

/* Why choose us: six medallion cards */
.fx-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.fx-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:22px 14px 18px;border-radius:12px;overflow:hidden;
  border:1px solid var(--line);background:linear-gradient(180deg,color-mix(in srgb,var(--surface-2) 70%,transparent),color-mix(in srgb,var(--surface) 80%,transparent));
  transition:transform .2s,border-color .2s,box-shadow .2s}
.fx-card::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120px 70px at 50% 0,color-mix(in srgb,var(--gold) 14%,transparent),transparent 70%)}
.fx-card::after{content:"";position:absolute;left:50%;bottom:-1px;width:40%;height:2px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.7}
.fx-card:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:0 12px 28px rgba(0,0,0,.35)}
.fx-medal{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin-bottom:8px;
  background:radial-gradient(circle at 35% 30%,var(--stone-hi),var(--stone) 45%,var(--stone-deep));
  box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--gold),0 6px 16px rgba(0,0,0,.4),inset 0 2px 6px rgba(255,255,255,.12)}
.fx-medal svg{width:30px;height:30px;fill:none;stroke:var(--gold-hi);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}
.fx-medal svg .fill{fill:var(--gold-hi);stroke:none}
.fx-card b{font-family:var(--display);font-weight:400;font-size:1.05rem;letter-spacing:.05em;color:var(--ink)}
.fx-card > span:last-child{font-size:.86rem;line-height:1.35;color:var(--muted)}

/* Only at Tartaria BTC: two showcase cards */
.fx-show{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:16px}
.fx-tv,.fx-gm{position:relative;border:1px solid var(--gold);border-radius:14px;overflow:hidden;background:var(--surface);
  box-shadow:inset 0 0 0 4px var(--surface),inset 0 0 0 5px var(--line),0 14px 34px rgba(0,0,0,.35)}
.fx-tv h3,.fx-gm h3{font-size:1.35rem;color:var(--gold-hi);letter-spacing:.06em}
.fx-tv p,.fx-gm p{margin:6px 0 0;font-size:.92rem;line-height:1.45;color:var(--lede)}

/* watch & earn: a little screen with a LIVE tag, and coins floating up from it */
.fx-tv{padding:20px 20px 18px;display:flex;flex-direction:column;
  background:radial-gradient(260px 160px at 50% 18%,rgba(61,95,224,.35),transparent 70%),var(--surface)}
.fx-screen{position:relative;margin:2px auto 12px;width:min(230px,100%)}
.fx-screen svg{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
.fx-blink{animation:fxBlink 1.6s ease-in-out infinite}
@keyframes fxBlink{50%{opacity:.25}}
.fx-pop{position:absolute;right:14%;top:30%;font-family:var(--mono);font-size:.82rem;color:var(--gold-hi);text-shadow:0 0 8px rgba(244,221,148,.6);opacity:0;animation:fxPop 3s ease-out infinite}
.fx-pop.p2{right:26%;animation-delay:1s}.fx-pop.p3{right:8%;animation-delay:2s}
@keyframes fxPop{0%{opacity:0;transform:translateY(10px)}20%{opacity:1}100%{opacity:0;transform:translateY(-34px)}}
.fx-chips{list-style:none;margin:auto 0 0;padding:14px 0 0;display:flex;flex-direction:column;gap:7px}
.fx-chips li{display:flex;align-items:center;gap:8px;font-size:.84rem;color:var(--ink);padding:7px 11px;border-radius:8px;border:1px solid var(--line);background:var(--bg)}
.fx-chips li:not(:has(.dot))::before{content:"";width:7px;height:7px;flex:none;transform:rotate(45deg);background:var(--gold)}
.fx-chips .dot{width:8px;height:8px;flex:none;border-radius:50%;background:#e5484d;animation:fxPulse 1.8s ease-out infinite}
@keyframes fxPulse{0%{box-shadow:0 0 0 0 rgba(229,72,77,.55)}70%{box-shadow:0 0 0 7px rgba(229,72,77,0)}100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}}

/* Gold Miner: the game's own map as a banner, then its tools as big crisp sprites */
.fx-gm{display:flex;flex-direction:column}
.fx-map{position:relative;height:160px;overflow:hidden}
.fx-map img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 45%;image-rendering:pixelated;transform:scale(1.04);transition:transform 6s ease-out}
.fx-gm:hover .fx-map img{transform:scale(1.12)}
.fx-map::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,color-mix(in srgb,var(--surface) 70%,transparent) 75%,var(--surface))}
.fx-badge{position:absolute;left:12px;top:12px;z-index:1;font-family:var(--display);font-size:.78rem;letter-spacing:.08em;color:var(--gold-ink);
  background:linear-gradient(180deg,var(--gold-hi),var(--gold));padding:3px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.fx-gm-body{padding:0 20px 18px;margin-top:-30px;position:relative;z-index:1}
.fx-gm-body h3{text-shadow:0 2px 8px rgba(0,0,0,.6)}

/* the sprites: 16 px cells drawn at 3× (sheet.png is 16 × 12 cells; items.png one row of 16) */
.spr{--s:48px;display:block;width:var(--s);height:var(--s);flex:none;image-rendering:pixelated;
  background:url(/gold/sheet.png) calc(var(--c) * var(--s) * -1) calc(var(--r) * var(--s) * -1) / calc(var(--s) * 16) calc(var(--s) * 12) no-repeat}
.spr.it{background-image:url(/gold/items.png);background-position:calc(var(--c) * var(--s) * -1) 0;background-size:calc(var(--s) * 16) var(--s)}
.spr.sm{--s:24px}
.spr.mn{background-image:url(/gold/mine.png);background-position:calc(var(--c) * var(--s) * -1) 0;background-size:calc(var(--s) * 16) var(--s)}
.fx-rig li:first-child .spr{filter:brightness(1.6) contrast(1.1)} /* the dark iron pan, lifted off the dark tile */
.fx-rig{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.fx-rig li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;border-radius:10px;border:1px solid var(--line);
  background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--gold) 12%,transparent),transparent 65%),var(--bg);transition:border-color .2s,transform .2s}
.fx-rig li:hover{border-color:var(--gold);transform:translateY(-2px)}
.fx-rig li span{font-size:.72rem;letter-spacing:.04em;color:var(--muted);text-align:center;line-height:1.2}
.fx-points{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.fx-points li{display:flex;align-items:center;gap:10px;font-size:.88rem;color:var(--ink)}

.fx-cta{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:4px 0 0}
.fx-cta .btn{text-decoration:none}
.fx-cta span{font-size:.86rem;color:var(--muted)}

@media (max-width:760px){
  .fx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fx-show{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:480px){
  .fx-grid{gap:10px}
  .fx-card{padding:16px 10px 14px}
  .fx-medal{width:52px;height:52px}.fx-medal svg{width:26px;height:26px}
  .fx-rig{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
  .fx-rig .spr{--s:32px}
  .fx-rig li span{font-size:.64rem}
  .fx-head h2{white-space:normal}
}

/* v1.42.1: days online, a gold-edged pill at the top of the castle totals */
.front-age{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:6px 9px;width:max-content;max-width:100%;margin:-4px auto 18px;padding:7px 16px;
  border-radius:999px;border:1px solid var(--gold);background:linear-gradient(180deg,var(--surface-2),var(--surface));
  box-shadow:inset 0 0 0 3px var(--surface),inset 0 0 0 4px var(--line),0 6px 16px rgba(0,0,0,.3)}
.front-age .age-dot{align-self:center;width:8px;height:8px;border-radius:50%;background:var(--ok);animation:ageBeat 2.4s ease-out infinite}
@keyframes ageBeat{0%{box-shadow:0 0 0 0 rgba(127,211,160,.55)}70%{box-shadow:0 0 0 8px rgba(127,211,160,0)}100%{box-shadow:0 0 0 0 rgba(127,211,160,0)}}
.front-age b{font-size:1.45rem;font-weight:500;line-height:1;color:var(--gold-hi)}
.front-age span{font-family:var(--display);letter-spacing:.06em;color:var(--ink)}
.front-age small{font-size:.82rem;color:var(--muted)}
