@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

:root{
	--bg:#fff;
	--text:#1a1a1a;
	--muted:#666;
	--primary:#007bff; /* bright blue */
	--accent:#e63946; /* red for cap */
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Varela Round', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; color:var(--text);background:var(--bg)}
.container{max-width:900px;margin:0 auto;padding:18px;display:flex;flex-direction:column;gap:18px;align-items:center}
.site-header{text-align:center}
.site-logo img{width:320px;max-width:95%;height:auto;display:block;margin:0 auto}
.tag{color:var(--muted);margin:6px 0 12px}
.header-actions{margin-top:6px}
.btn{background:var(--primary);color:#fff;border:none;padding:10px 14px;border-radius:10px;font-weight:600;cursor:pointer}
.btn:active{transform:translateY(1px)}
.play-btn{padding:10px 16px;font-size:15px;background:#96a607;color:#fff;border-radius:12px;border:none;box-shadow:0 6px 18px rgba(150,166,7,0.18);cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.play-btn:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(150,166,7,0.22)}
.play-btn:active{transform:translateY(0);box-shadow:0 6px 18px rgba(150,166,7,0.14)}

/* Game */
.game-section{width:100%;display:flex;flex-direction:column;align-items:center}
.swing-wrapper{width:220px;height:220px;display:flex;align-items:flex-start;justify-content:center;overflow:visible}
.swing-container{width:160px;height:160px;display:flex;align-items:center;justify-content:center;transform-origin:50% 0%;overflow:hidden;border-radius:12px;border:1px solid #eef2f6}
.swingy{width:100%;height:auto;display:block;transform-origin:50% 0%;
	/* initial animation paused on the image (old style) */
	animation: swinging 1s ease-in-out paused;}
/* removed .cap styling since the cap image was removed from markup */

@keyframes swinging{
	0%{transform:rotate(-15deg)}
	50%{transform:rotate(15deg)}
	100%{transform:rotate(-6deg)}
}

.swing-container:focus{outline:3px solid rgba(0,123,255,0.25);border-radius:12px}
.hint{font-size:13px;color:var(--muted);text-align:center}
.swing-message{font-size:14px;color:var(--primary);font-weight:700;text-align:center;margin-top:8px}



/* Generic hidden helper used for sections hidden until reveal */
.hidden{display:none !important}

/* Inline progress used inside the game area */
.progress-inline{width:100%;max-width:680px;margin-bottom:10px;display:flex;flex-direction:column;align-items:center}
.progress-inline .progress{height:18px;border-radius:12px;width:100%}

.progress-title{margin:0 0 6px;font-size:15px;color:var(--text);font-weight:700;text-align:center}

/* Helper: add `.no-cap` to `.progress-inline` to hide the cap if desired */
.progress-inline.no-cap .progress-bar::after{display:none}

/* Reward */
.reward{width:100%;max-width:680px;padding:14px;border-radius:12px;background:#f8f9fb;border:1px solid #eef2f6;text-align:center}
.reward.hidden{display:none}

.reward-content{display:flex;flex-direction:column;align-items:center;gap:8px}
.reward-img{width:160px;max-width:60%;height:auto;border-radius:10px}
.link{color:var(--primary);font-weight:700}

/* Progress */
.goal{width:100%;max-width:680px}
.progress{background:#eee;border-radius:14px;overflow:hidden;height:28px}
.progress-bar{background:var(--primary);height:100%;color:#fff;display:flex;align-items:center;justify-content:flex-end;padding-right:36px;font-weight:700;position:relative}
.progress-bar::after{content:'🧢';position:absolute;right:6px;font-size:20px;color:var(--accent)}

/* Cards */
.favorites{width:100%;max-width:900px}
.cards{display:grid;grid-template-columns:1fr;gap:12px}
.card{background:#fff;border:1px solid #eef2f6;border-radius:12px;padding:12px;display:flex;align-items:center;gap:12px;box-shadow:0 6px 18px rgba(10,10,10,0.03)}
.card-img{width:72px;height:72px;object-fit:cover;border-radius:8px}
.card-title{margin:0;font-size:16px}
.view-btn{margin-left:auto;background:#96a607;color:#fff;padding:8px 12px;border-radius:8px}

/* Responsive */
@media(min-width:640px){
	.cards{grid-template-columns:repeat(3,1fr)}
	.swing-wrapper{width:300px;height:300px}
	.swing-container{width:220px;height:220px}
	.swingy{width:170px}
}

