/* Fair Dinkum game cards. Used on /games and the homepage "More free games" row. */
:root{--gx-dgreen:#133f27}
.gx-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(min-width:640px){.gx-grid{grid-template-columns:repeat(3,1fr);gap:18px}}
@media(min-width:960px){.gx-grid{grid-template-columns:repeat(4,1fr)}}
.gx-card{display:flex;flex-direction:column;background:#fff;border:3px solid var(--gx-dgreen);border-radius:20px;overflow:hidden;box-shadow:0 5px 0 var(--gx-dgreen);text-decoration:none;color:var(--dark,#1C1208);transition:transform .15s,box-shadow .15s}
.gx-card:hover{transform:translateY(-4px);box-shadow:0 9px 0 var(--gx-dgreen)}
.gx-card:active{transform:translateY(3px);box-shadow:0 1px 0 var(--gx-dgreen)}
.gx-thumb{position:relative;aspect-ratio:1;border-bottom:3px solid var(--gx-dgreen);overflow:hidden;background:var(--green,#1A5C38)}
.gx-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s}
.gx-card:hover .gx-thumb img{transform:scale(1.07)}
.gx-new{position:absolute;top:8px;left:8px;background:var(--gold,#D4A017);color:var(--dark,#1C1208);font-weight:900;font-size:.68rem;letter-spacing:.1em;padding:4px 9px;border-radius:999px;border:2px solid var(--dark,#1C1208);transform:rotate(-4deg)}
.gx-thumb{display:flex;flex-direction:column}
.gx-thumb img{flex:1 1 0;min-height:0}
.gx-pill{position:static;flex:0 0 auto;background:#133F27;color:#fff;font-weight:700;font-size:.74rem;padding:5px 10px;text-align:center;border-radius:0}
.gx-body{padding:11px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.gx-body h3{margin:0;font-family:'Righteous',cursive;font-size:1.12rem;line-height:1.15;font-weight:400}
.gx-body p{margin:0;font-size:.86rem;line-height:1.32;color:var(--mid,#5C4A2A);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gx-play{margin-top:auto;padding-top:8px;font-weight:800;color:var(--green,#1A5C38);font-size:.9rem}
.gx-play span{display:inline-block;transition:transform .15s}
.gx-card:hover .gx-play span{transform:translateX(4px)}
/* swipe row (homepage) */
.gx-home{max-width:1100px;margin:28px auto 0;padding:0 1rem}
.gx-h{display:flex;align-items:center;gap:12px;font-family:'Righteous',cursive;font-size:1.4rem;font-weight:400;margin:0 0 14px;color:var(--dark,#1C1208)}
.gx-h::after{content:"";flex:1;height:3px;background:rgba(28,18,8,.14);border-radius:3px;order:1}
.gx-h a{order:2;font-family:'DM Sans',sans-serif;font-size:.92rem;font-weight:800;color:var(--green,#1A5C38);text-decoration:none;white-space:nowrap}
.gx-row{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gx-row::-webkit-scrollbar{display:none}
.gx-row .gx-card{flex:0 0 min(60vw,232px);scroll-snap-align:start}
@media(min-width:960px){.gx-row{overflow:visible}.gx-row .gx-card{flex:1 1 0;min-width:0}}
.gx-allbtn-wrap{text-align:center;margin:4px 0 0}
.gx-allbtn{display:inline-block;background:var(--green,#1A5C38);color:var(--gold,#D4A017);font-weight:800;font-size:1.02rem;padding:13px 26px;border-radius:999px;border:3px solid var(--gx-dgreen);box-shadow:0 4px 0 var(--gx-dgreen);text-decoration:none}
.gx-allbtn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--gx-dgreen)}
/* /games page */
.gx-wrap{max-width:1120px;margin:0 auto;padding:26px 16px 80px}
.gx-eyebrow{display:inline-block;background:var(--gold,#D4A017);color:var(--dark,#1C1208);font-weight:800;font-size:.72rem;letter-spacing:.14em;padding:5px 12px;border-radius:999px}
.gx-wrap h1{font-family:'Righteous',cursive;font-size:clamp(2.1rem,6vw,3.4rem);line-height:1.05;margin:12px 0 8px;font-weight:400}
.gx-wrap h1 em{font-family:'Bitter',serif;color:var(--green,#1A5C38);font-style:italic}
.gx-sub{margin:0;font-size:1.05rem;line-height:1.5;color:var(--mid,#5C4A2A);max-width:44em}
.gx-chips{display:flex;gap:8px;overflow-x:auto;padding:16px 2px 6px;scrollbar-width:none}
.gx-chips::-webkit-scrollbar{display:none}
.gx-chip{flex:0 0 auto;border:2.5px solid var(--gx-dgreen);background:#fff;color:var(--gx-dgreen);font:inherit;font-weight:800;font-size:.92rem;padding:8px 16px;border-radius:999px;cursor:pointer}
.gx-chip.on{background:var(--green,#1A5C38);color:var(--gold,#D4A017);box-shadow:0 3px 0 var(--gx-dgreen)}
.gx-hero{position:relative;margin-top:14px;background:#1A5C38;border:3px solid var(--gold,#D4A017);border-radius:24px;overflow:hidden;display:grid;grid-template-columns:1fr;box-shadow:0 6px 0 rgba(19,63,39,.35);text-decoration:none;color:#fff}
.gx-hero .txt{padding:22px 20px 8px}
.gx-hero .tagline{display:inline-block;background:var(--gold,#D4A017);color:var(--dark,#1C1208);font-weight:800;font-size:.72rem;letter-spacing:.14em;padding:5px 12px;border-radius:999px}
.gx-hero h2{font-family:'Righteous',cursive;font-size:clamp(1.9rem,5vw,2.8rem);margin:10px 0 6px;line-height:1.05;font-weight:400;color:#fff}
.gx-hero p{margin:0 0 14px;color:#e9e3c8;font-size:1rem;max-width:30em;line-height:1.45}
.gx-hero .btn{display:inline-block;background:var(--gold,#D4A017);color:var(--dark,#1C1208);font-weight:800;font-size:1.02rem;padding:12px 22px;border-radius:999px;box-shadow:0 4px 0 #8f6a0c}
.gx-hero .pic{position:relative;height:190px;margin-top:4px}
.gx-hero .pic img{position:absolute;right:-10px;bottom:-8px;height:100%;width:auto;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 24%),linear-gradient(to bottom,transparent 0,#000 24%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 24%),linear-gradient(to bottom,transparent 0,#000 24%);mask-composite:intersect}
@media(min-width:760px){.gx-hero{grid-template-columns:1.1fr .9fr}.gx-hero .txt{padding:30px}.gx-hero .pic{height:auto;min-height:250px}.gx-hero .pic img{height:112%;right:0;bottom:-10px}}
.gx-daily{margin-top:16px}
.gx-sec{margin-top:30px}
.gx-sec h2{display:flex;align-items:center;gap:12px;font-family:'Righteous',cursive;font-size:1.5rem;font-weight:400;margin:0 0 14px}
.gx-sec h2::after{content:"";flex:1;height:3px;background:rgba(28,18,8,.14);border-radius:3px}
.gx-tools{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:760px){.gx-tools{grid-template-columns:repeat(3,1fr)}}
.gx-tool{display:flex;align-items:center;gap:14px;background:#fff;border:3px solid var(--gx-dgreen);border-radius:18px;padding:12px;box-shadow:0 4px 0 var(--gx-dgreen);text-decoration:none;color:var(--dark,#1C1208);transition:transform .15s}
.gx-tool:hover{transform:translateY(-3px)}
.gx-tool i{flex:0 0 auto;width:58px;height:58px;border-radius:14px;display:grid;place-items:center;font-size:1.9rem;font-style:normal;border:2.5px solid var(--gx-dgreen)}
.gx-tool h3{margin:0;font-family:'Righteous',cursive;font-size:1.05rem;font-weight:400}
.gx-tool p{margin:2px 0 0;font-size:.84rem;color:var(--mid,#5C4A2A);line-height:1.3}
.gx-hide{display:none!important}
.gx-about{margin-top:34px;max-width:46em;color:var(--mid,#5C4A2A);line-height:1.65;font-size:.98rem}
.gx-about a{color:var(--green,#1A5C38);font-weight:700}

/* Today's games box (same rules as the homepage, so /games can show it too) */
/* Daily hub: today's games, progress ring and combined streak */
#fdDaily { max-width:900px; margin:18px auto 0; padding:0 1.5rem; }
.fd-hub__card { background:linear-gradient(135deg,#1A5C38,#123F27); border:1px solid #D4A017; border-radius:14px; padding:14px 18px 12px; color:#fff; box-shadow:0 4px 14px rgba(18,63,39,.18); }
.fd-hub__head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.fd-hub__ring { position:relative; width:56px; height:56px; flex-shrink:0; }
.fd-hub__ring svg { width:100%; height:100%; transform:rotate(-90deg); display:block; }
.fd-hub__ring circle { fill:none; stroke-width:6; }
.fd-hub__track { stroke:rgba(255,255,255,.2); }
.fd-hub__prog { stroke:#D4A017; stroke-linecap:round; animation:fdRingIn .9s .15s cubic-bezier(.3,.8,.3,1) backwards; }
@keyframes fdRingIn { from { stroke-dashoffset:var(--fd-ring-from); } }
.fd-hub__frac { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font:700 .85rem 'DM Sans',sans-serif; }
.fd-hub__title { flex:1; min-width:140px; display:flex; flex-direction:column; }
.fd-hub__title strong { font-family:'Righteous',cursive; font-size:1.05rem; font-weight:400; }
.fd-hub__title span { font-size:.78rem; color:#E8C766; }
.fd-hub__streak { display:flex; align-items:center; gap:6px; background:rgba(255,255,255,.1); border:1px solid rgba(212,160,23,.55); border-radius:999px; padding:6px 14px; font:700 .9rem 'DM Sans',sans-serif; white-space:nowrap; }
.fd-hub__flame { font-size:1.15rem; line-height:1; }
.fd-hub__num { font-family:'Righteous',cursive; font-size:1.3rem; color:#E8C766; min-width:.7em; text-align:center; }
.fd-hub__unit { font-size:.8rem; }
.fd-hub__best { font-size:.7rem; font-weight:600; color:#E8C766; margin-left:2px; }
.fd-hub__games { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.fd-hub__game { flex:1 1 170px; display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:10px; padding:9px 12px; color:#fff; text-decoration:none; transition:transform .12s, background .12s; -webkit-tap-highlight-color:transparent; }
.fd-hub__game:hover { background:rgba(255,255,255,.14); transform:translateY(-1px); }
.fd-hub__game:active { transform:scale(.97); }
.fd-hub__game.is-done { border-color:#D4A017; }
.fd-hub__emoji { font-size:1.3rem; line-height:1; }
.fd-hub__name { flex:1; font:700 .85rem 'DM Sans',sans-serif; min-width:0; }
.fd-hub__play { font:700 .78rem 'DM Sans',sans-serif; color:#D4A017; white-space:nowrap; }
.fd-hub__tick { width:24px; height:24px; border-radius:50%; background:#D4A017; display:flex; align-items:center; justify-content:center; flex-shrink:0; animation:fdBadgePop .5s .3s cubic-bezier(.3,.7,.4,1.6) backwards; }
.fd-hub__tick svg { width:14px; height:14px; }
.fd-hub__tick path { fill:none; stroke:#123F27; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:24; stroke-dashoffset:24; animation:fdCheckDraw .4s .6s ease-out forwards; }
.fd-hub__foot { margin:10px 2px 0; font-size:.8rem; color:#E8C766; }
.fd-hub__sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width: 560px) { #fdDaily { padding:0 1rem; } .fd-hub__streak { order:3; flex:1 1 100%; justify-content:center; } .fd-hub__game { flex-basis:100%; } }
@media (prefers-reduced-motion: reduce) { .fd-hub__prog,.fd-hub__tick { animation:none; } .fd-hub__tick path { animation:none; stroke-dashoffset:0; } .fd-hub__game { transition:none; } }
.gx-daily #fdDaily{max-width:none;margin:0;padding:0}

/* /games grid: cards at about 2/3 size, so more fit per row */
.gx-grid{grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:640px){.gx-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}}
.gx-grid .gx-card{border-width:2.5px;border-radius:15px;box-shadow:0 4px 0 var(--gx-dgreen)}
.gx-grid .gx-card:hover{box-shadow:0 7px 0 var(--gx-dgreen)}
.gx-grid .gx-thumb{border-bottom-width:2.5px}
.gx-grid .gx-pill{font-size:.66rem;padding:4px 8px}
.gx-grid .gx-new{top:6px;left:6px;font-size:.6rem;padding:3px 7px}
.gx-grid .gx-body{padding:9px 10px 10px;gap:3px}
.gx-grid .gx-body h3{font-size:.98rem}
.gx-grid .gx-body p{font-size:.76rem;line-height:1.3}
/* Play + play count line */
.gx-foot{margin-top:auto;padding-top:7px;display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.gx-foot .gx-play{margin:0;padding:0;font-size:.82rem}
.gx-count{font-size:.72rem;font-weight:700;color:var(--mid,#5C4A2A);opacity:.85;white-space:nowrap}
