/* GrindPixel Studio · the studio's site (grindpixel.studio). Jewelverse's night: deep indigo, gold, the seven gems. */
@font-face{font-family:Cinzel; src:url(fonts/cinzel-latin.woff2) format('woff2'); font-weight:400 900; font-display:swap}
@font-face{font-family:Cinzel; src:url(fonts/cinzel-latin-ext.woff2) format('woff2'); font-weight:400 900; font-display:swap; unicode-range:U+0100-024F}
@font-face{font-family:Tiny5; src:url(fonts/tiny5-latin.woff2) format('woff2'); font-display:swap}
@font-face{font-family:Tiny5; src:url(fonts/tiny5-latin-ext.woff2) format('woff2'); font-display:swap; unicode-range:U+0100-024F}

:root{
  --bg:#0b0c20; --bg2:#13153a; --card:#171a44; --line:#2c3070;
  --fg:#eceaf8; --muted:#a6a9cf; --gold:#e8bf5c; --gold2:#fff1c4; --goldd:#8a5d10;
  --ruby:#e8475b; --sapphire:#4c8dff; --emerald:#3fd17a; --amethyst:#b46cff; --topaz:#ff9d3c; --citrine:#ffe14d; --pearl:#e9f0ff;
  --radius:4px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0; background:var(--bg); color:var(--fg); font:17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing:antialiased}
body{background:linear-gradient(180deg, #0b0c20 0%, #121440 55%, #1d1546 100%) fixed}
#sky{position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none}
a{color:var(--gold)} a:hover{color:var(--gold2)}
img{max-width:100%; height:auto; display:block}
.wrap{max-width:1080px; margin:0 auto; padding:0 16px}
.px{font-family:Tiny5, monospace; letter-spacing:.06em; text-transform:uppercase}

/* the bar */
.bar{position:sticky; top:0; z-index:10; background:transparent; border-bottom:1px solid transparent; transition:background .3s, border-color .3s}
.bar.solid{background:#0b0c20e0; backdrop-filter:blur(8px); border-bottom-color:var(--line)}
.bar .wrap{display:flex; align-items:center; gap:20px; height:60px}
.bar .logo img{height:30px; width:auto}
.bar nav{margin-left:auto; display:flex; gap:18px; flex-wrap:wrap}
.bar nav a{font-family:Tiny5, monospace; font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); text-decoration:none}
.bar nav a:hover, .bar nav a[aria-current]{color:var(--gold)}
@media (max-width:560px){ .bar .wrap{height:auto; padding-top:10px; padding-bottom:10px; flex-wrap:wrap; gap:8px} .bar nav{margin-left:0; gap:14px} .bar .logo img{height:24px} }

/* headings: Cinzel in gold, a filigree rule with a diamond */
h1, h2, h3{font-family:Cinzel, Georgia, serif; font-weight:700; line-height:1.2; margin:0 0 .5em}
h1{font-size:clamp(34px, 6vw, 60px); color:var(--gold2); text-shadow:0 2px 0 var(--goldd), 0 0 28px #e8bf5c44}
h2{font-size:clamp(26px, 4vw, 38px); color:var(--gold); text-align:center}
h3{font-size:21px; color:var(--gold2)}
.orn{display:flex; align-items:center; justify-content:center; gap:10px; margin:-4px auto 28px; max-width:360px}
.orn::before, .orn::after{content:""; flex:1; height:1px; background:linear-gradient(90deg, transparent, var(--gold))}
.orn::after{transform:scaleX(-1)}
.orn i{width:9px; height:9px; background:var(--gold); transform:rotate(45deg); box-shadow:0 0 10px var(--gold)}
.lead{color:var(--muted); font-size:19px; max-width:62ch}
.center{text-align:center} .center .lead{margin-left:auto; margin-right:auto}

section{padding:72px 0}
section + section{border-top:1px solid #ffffff0d}

/* buttons: a gold plate with a dark edge, pixel text */
.btn{display:inline-flex; align-items:center; gap:10px; padding:12px 22px; border:2px solid #000; border-radius:var(--radius);
  background:linear-gradient(180deg, #ffe08a, #d9a23a 55%, #b07a1c); color:#2a1a00; text-decoration:none;
  font-family:Tiny5, monospace; font-size:16px; letter-spacing:.1em; text-transform:uppercase; box-shadow:inset 0 2px 0 #fff6, inset 0 -3px 0 #0003, 0 4px 0 #000}
.btn:hover{color:#2a1a00; filter:brightness(1.08)}
.btn.ghost{background:transparent; color:var(--gold); border-color:var(--gold); box-shadow:none}
.tag{display:inline-block; font-family:Tiny5, monospace; font-size:13px; letter-spacing:.1em; text-transform:uppercase; padding:3px 10px; border:1px solid currentColor; border-radius:2px}
.tag.soon{color:var(--emerald)} .tag.dev{color:var(--muted)}

/* phone shots */
.phone{border:3px solid #000; outline:2px solid var(--goldd); border-radius:10px; overflow:hidden; background:#000; box-shadow:0 18px 40px #0008}
.phone img{width:100%; aspect-ratio:540/959; object-fit:cover}

/* grids and cards */
.grid{display:grid; gap:22px}
.g2{grid-template-columns:repeat(auto-fit, minmax(min(420px, 100%), 1fr))}
.g3{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}
.g5{grid-template-columns:repeat(auto-fill, minmax(180px, 1fr))}
.card{background:linear-gradient(180deg, var(--card), #12143a); border:1px solid var(--line); border-radius:6px; padding:22px}
.card p{margin:.3em 0 0; color:var(--muted)}
.card h3{margin:0}

/* a land: its picture, name and rule */
.land{background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; display:flex; flex-direction:column}
.land img{aspect-ratio:540/700; object-fit:cover; object-position:top}
.land div{padding:12px 14px 16px}
.land .n{font-family:Tiny5, monospace; font-size:12px; letter-spacing:.1em; color:var(--muted)}
.land h3{font-size:17px; margin:2px 0 4px}
.land b{font-family:Tiny5, monospace; font-weight:400; font-size:13px; letter-spacing:.08em; text-transform:uppercase}
.land p{margin:2px 0 0; font-size:14px; line-height:1.45; color:var(--muted)}

/* a feature row: shot + words, alternating */
.feat{display:grid; grid-template-columns:minmax(0, 260px) 1fr; gap:40px; align-items:center; margin:0 auto 56px; max-width:900px}
.feat.r{grid-template-columns:1fr minmax(0, 260px)} .feat.r .phone{order:2}
.feat ul{padding-left:1.1em; color:var(--muted)} .feat li{margin:.25em 0}
@media (max-width:700px){ .feat, .feat.r{grid-template-columns:1fr; gap:22px} .feat .phone, .feat.r .phone{order:0; max-width:260px; margin:0 auto} }

/* the seven gems as a little row of pixel diamonds */
.gems{display:flex; gap:8px; justify-content:center; margin:18px 0}
.gems i{width:12px; height:12px; transform:rotate(45deg); border:2px solid #000; box-shadow:inset 2px 2px 0 #fff8}
.gems i:nth-child(1){background:var(--ruby)} .gems i:nth-child(2){background:var(--topaz)} .gems i:nth-child(3){background:var(--citrine)}
.gems i:nth-child(4){background:var(--emerald)} .gems i:nth-child(5){background:var(--sapphire)} .gems i:nth-child(6){background:var(--amethyst)} .gems i:nth-child(7){background:var(--pearl)}

.langs{display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:18px}
.langs span{padding:4px 12px; border:1px solid var(--line); border-radius:2px; font-size:15px; color:var(--muted); background:#ffffff06}

/* long text pages (privacy, deletion) */
.doc{max-width:72ch; margin:0 auto; padding:48px 16px 72px}
.doc h1{font-size:clamp(28px, 5vw, 40px)}
.doc h2{text-align:left; font-size:23px; margin-top:1.8em}
.doc p, .doc li{color:#d4d5ea}
.doc .small{color:var(--muted); font-size:15px}
.doc hr{border:0; border-top:1px solid var(--line); margin:3.5em 0}

footer{border-top:1px solid var(--line); padding:36px 0 48px; color:var(--muted); font-size:15px}
footer .wrap{display:flex; flex-wrap:wrap; gap:14px 28px; align-items:center}
footer img{height:22px; width:auto; opacity:.8}
footer nav{display:flex; flex-wrap:wrap; gap:18px; margin-left:auto}
footer a{color:var(--muted)}

/* ---- life (js/sitio.js) ---- */
[data-rv], [data-rv-kids] > *{opacity:0; transform:translateY(28px); transition:opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s)}
[data-rv].in, [data-rv-kids] > .in{opacity:1; transform:none}
@media (prefers-reduced-motion: reduce){ [data-rv], [data-rv-kids] > *{opacity:1; transform:none; transition:none} }
.tilt{position:relative; transition:transform .25s ease, box-shadow .25s; transform-style:preserve-3d; will-change:transform}
.tilt::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .25s;
  background:radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #ffffff22, transparent 45%)}
.tilt:hover{box-shadow:0 24px 50px #0009, 0 0 0 1px var(--gold)}
.tilt:hover::after{opacity:1}
.crumb{font-family:Tiny5, monospace; font-size:14px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 14px}
.crumb a{color:var(--muted); text-decoration:none} .crumb a:hover{color:var(--gold)}

/* the home's mark */
.hero{min-height:calc(100vh - 60px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px 16px}
#marca{width:min(560px, 92vw); cursor:pointer; display:block; margin:0 auto}
.hero .lead{margin:26px auto 0; opacity:0; animation:up 1s ease 2.6s forwards}
.hero .btns{margin-top:30px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; opacity:0; animation:up 1s ease 3s forwards}
.scroll{margin-top:48px; width:22px; height:34px; border:2px solid var(--muted); border-radius:12px; position:relative; opacity:0; animation:up 1s ease 3.4s forwards}
.scroll::after{content:""; position:absolute; left:50%; top:6px; width:4px; height:6px; margin-left:-2px; background:var(--gold); animation:wheel 1.6s ease infinite}
@keyframes up{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}
@keyframes wheel{0%{transform:translateY(0); opacity:1} 70%{transform:translateY(12px); opacity:0} 100%{opacity:0}}
@media (prefers-reduced-motion: reduce){ .hero .lead, .hero .btns, .scroll{animation:none; opacity:1} }

/* a franchise card (home) */
.franq{display:grid; grid-template-columns:1.2fr 1fr; gap:32px; align-items:center; text-decoration:none; color:inherit; padding:18px}
.franq-img{border-radius:6px; overflow:hidden; border:2px solid #000; outline:2px solid var(--goldd)}
.franq-img img{transition:transform 6s ease} .franq:hover .franq-img img{transform:scale(1.08)}
@media (max-width:760px){ .franq{grid-template-columns:1fr} }

/* the game's hero: title and the playable board */
.ghero{display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; padding:40px 0 20px}
@media (max-width:860px){ .ghero{grid-template-columns:1fr; text-align:center} .ghero .orn{margin-left:auto; margin-right:auto} .ghero .lead{margin-left:auto; margin-right:auto} }
.ghero h1{font-size:clamp(44px, 7vw, 84px); margin-bottom:.2em}
.ghero .orn{margin-left:0}
.ghero .kicker{font-family:Tiny5, monospace; letter-spacing:.2em; color:var(--gold); font-size:15px}
.play{background:linear-gradient(180deg, #1a1d4c, #10122f); border:2px solid #000; outline:2px solid var(--goldd); border-radius:12px; padding:16px; box-shadow:0 30px 60px #000a, 0 0 80px #b46cff22; max-width:420px; margin:0 auto; width:100%}
.play .top{display:flex; justify-content:space-between; align-items:center; font-family:Tiny5, monospace; letter-spacing:.08em; font-size:14px; color:var(--muted); margin-bottom:10px}
.play .top b{color:var(--gold2); font-weight:400}
#tablero{width:100%; image-rendering:pixelated; display:block; cursor:pointer; touch-action:manipulation; border-radius:4px}
#tHearts{display:flex; gap:6px}
#tHearts i{width:14px; height:12px; background:var(--ruby); clip-path:polygon(0 25%, 25% 0, 50% 25%, 75% 0, 100% 25%, 100% 50%, 50% 100%, 0 50%); transition:transform .2s, background .2s}
#tHearts i.off{background:#3a3f72; transform:scale(.8)}
.play .bot{display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:44px; margin-top:12px}
#tMsg{font-size:15px; color:var(--gold2)}
.play .btn{padding:8px 14px; font-size:13px}
.play .hint{font-size:13px; color:var(--muted); text-align:center; margin:8px 0 0}

/* numbers */
.stats{display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; text-align:center}
.stats div{padding:18px 6px; border:1px solid var(--line); border-radius:6px; background:#ffffff06}
.stats b{display:block; font-family:Cinzel, serif; font-size:clamp(32px, 5vw, 52px); color:var(--gold2); line-height:1; text-shadow:0 0 22px #e8bf5c55}
.stats span{font-family:Tiny5, monospace; letter-spacing:.1em; text-transform:uppercase; font-size:13px; color:var(--muted)}
@media (max-width:640px){ .stats{grid-template-columns:repeat(2, 1fr)} .stats div:last-child{grid-column:span 2} }

/* the lands' carousel */
#aventura{--land:#b46cff; background:radial-gradient(ellipse 70% 60% at 50% 60%, color-mix(in srgb, var(--land) 22%, transparent), transparent 70%); transition:background .8s}
.cwrap{position:relative}
.carrusel{display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; padding:10px max(16px, calc(50% - 150px)) 24px; scrollbar-width:none}
.carrusel::-webkit-scrollbar{display:none}
.carrusel .land{flex:0 0 300px; scroll-snap-align:center}
.carrusel .land img{aspect-ratio:540/820}
.cbtn{position:absolute; top:42%; width:46px; height:46px; border-radius:50%; border:2px solid var(--gold); background:#0b0c20cc; color:var(--gold); font-size:22px; cursor:pointer; z-index:2}
.cbtn:hover{background:var(--gold); color:#2a1a00}
.cprev{left:8px} .cnext{right:8px}
@media (max-width:640px){ .cbtn{display:none} }
.cdots{display:flex; justify-content:center; gap:8px}
.cdots button{width:10px; height:10px; transform:rotate(45deg); border:1px solid var(--gold); background:transparent; padding:0; cursor:pointer; transition:background .3s}
.cdots button.on{background:var(--gold); box-shadow:0 0 8px var(--gold)}

/* phones float a little */
.float{animation:float 6s ease-in-out infinite}
@keyframes float{0%, 100%{transform:translateY(0)} 50%{transform:translateY(-10px)}}
@media (prefers-reduced-motion: reduce){ .float{animation:none} }

/* the languages scroll by */
.marquee{overflow:hidden; mask-image:linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent)}
.marquee .langs{flex-wrap:nowrap; width:max-content; animation:mq 40s linear infinite}
@keyframes mq{to{transform:translateX(-50%)}}
[hidden]{display:none !important}

/* the seven gems orbit the franchise's name */
.orbit-box{position:relative; display:grid; place-items:center; height:clamp(220px, 34vw, 340px); margin:0 auto 10px}
.orbit{position:absolute; width:clamp(300px, 70vw, 640px); height:clamp(120px, 22vw, 210px); animation:spin 24s linear infinite; transform-style:preserve-3d}
.orbit i{position:absolute; left:50%; top:50%; width:18px; height:18px; margin:-9px; border:2px solid #000; box-shadow:inset 3px 3px 0 #fff9, 0 0 18px currentColor;
  offset-path:ellipse(50% 50% at 50% 50%); offset-rotate:0deg; animation:orbit 14s linear infinite; transform:rotate(45deg)}
.orbit i:nth-child(1){background:var(--ruby); color:var(--ruby); animation-delay:0s}
.orbit i:nth-child(2){background:var(--topaz); color:var(--topaz); animation-delay:-2s}
.orbit i:nth-child(3){background:var(--citrine); color:var(--citrine); animation-delay:-4s}
.orbit i:nth-child(4){background:var(--emerald); color:var(--emerald); animation-delay:-6s}
.orbit i:nth-child(5){background:var(--sapphire); color:var(--sapphire); animation-delay:-8s}
.orbit i:nth-child(6){background:var(--amethyst); color:var(--amethyst); animation-delay:-10s}
.orbit i:nth-child(7){background:var(--pearl); color:var(--pearl); animation-delay:-12s}
@keyframes orbit{from{offset-distance:0%} to{offset-distance:100%}}
@keyframes spin{from{transform:rotate(-8deg)} 50%{transform:rotate(8deg)} to{transform:rotate(-8deg)}}
.orbit-box h1{position:relative; z-index:1}
@media (prefers-reduced-motion: reduce){ .orbit, .orbit i{animation:none} }
