/* GoodRise Games site - playful extras (Fable pass 17.11.2026). Loaded after mk.css. transform / opacity only. */
:root { --seat: #7c6cff; }

/* pops */
.fun-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.fun-p { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 2px; animation: fun-fly .85s cubic-bezier(.15,.7,.3,1) forwards; }
.fun-p.flake { width: auto; height: auto; font: 16px/1 sans-serif; font-style: normal; }
@keyframes fun-fly { from { transform: translate3d(0,0,0) rotate(0) scale(1); opacity: 1; } to { transform: translate3d(var(--dx), calc(var(--dy) + 70px), 0) rotate(var(--r)) scale(.5); opacity: 0; } }
.fun-snow { position: absolute; margin: -6px 0 0 -6px; color: #dff1ff; font-style: normal; line-height: 1; text-shadow: 0 0 6px rgba(120,190,255,.7); animation: fun-fall 1.25s ease-in forwards; }
@keyframes fun-fall { from { transform: translate3d(0,0,0) rotate(0); opacity: .95; } to { transform: translate3d(var(--sx), 90px, 0) rotate(160deg); opacity: 0; } }
.fun-bubble { position: absolute; transform: translate(-50%, -110%); padding: 4px 12px; border-radius: 999px; background: #fff; color: #0b1530; font-weight: 800; font-size: .95rem; border: 3px solid #0b1530; animation: fun-bubble 1s ease-out forwards; white-space: nowrap; }
@keyframes fun-bubble { 0% { transform: translate(-50%, -80%) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -120%) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -170%) scale(1); opacity: 0; } }
.fun-bounce { animation: fun-bounce .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes fun-bounce { 0% { transform: scale(1); } 30% { transform: scale(1.28) rotate(-8deg); } 60% { transform: scale(.92) rotate(5deg); } 100% { transform: scale(1); } }
.fun-honk { animation: fun-honk .6s ease; }
@keyframes fun-honk { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg) scale(1.2); } 50% { transform: rotate(14deg) scale(1.2); } 75% { transform: rotate(-8deg); } }

/* our painted icons invite a tap */
.ico, .cast-img, .iw-ico, .skill-ico, .goal-ico, .mode-ico, .qa-ico, .ny-ico, .home-ico { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a .ico, button .ico, summary .qa-ico, .btn-ico, .chip-ico, .tab-ico, .h-ico { cursor: inherit; }
@media (hover: hover) {
	.mode:hover { animation: fun-wiggle .5s ease; }
	.mode:hover .mode-ico { transform: rotate(14deg) scale(1.15); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
	.skill:hover .skill-ico, .goal:hover .goal-ico, .cast:hover .cast-img { animation: fun-nod .7s ease; }
	.btn-primary:hover .btn-ico { animation: fun-spin .6s ease; }
}
@keyframes fun-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -1.2deg; } 60% { rotate: 1deg; } }
@keyframes fun-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg) scale(1.08); } 65% { transform: rotate(8deg) scale(1.08); } }
@keyframes fun-spin { to { transform: rotate(360deg); } }
#sound-toggle { min-width: 40px; }
#sound-toggle[aria-pressed="true"] { background: var(--gold, #ffc94a); color: #1d1405; border-color: transparent; }

/* ---------- home */
.mk .home-hero { min-height: 0; display: block; padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.home-hero .hero-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); line-height: 1.05; margin-bottom: 14px; }
.home-hero h1 em { font-style: normal; color: var(--gold); display: inline-block; animation: fun-hop 2.6s ease-in-out infinite; }
@keyframes fun-hop { 0%, 80%, 100% { transform: translateY(0) rotate(0); } 88% { transform: translateY(-8px) rotate(-3deg); } 94% { transform: translateY(0) rotate(2deg); } }
.rink-wrap { position: relative; }
.rink-box { position: relative; border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.5); aspect-ratio: 640 / 400; background: #0b1530; }
#rink { display: block; width: 100%; height: 100%; border-radius: 26px; touch-action: pan-y; cursor: grab; }
.rink-box.playing #rink { touch-action: none; cursor: none; }
.rink-hint { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); margin: 0; padding: 6px 16px; border-radius: 999px; background: rgba(11,21,48,.8); color: #fff; font-weight: 800; font-size: .95rem; white-space: nowrap; pointer-events: none; animation: fun-hop 2.2s ease-in-out infinite; }
.rink-start, .rink-stop { position: absolute; font: inherit; font-weight: 800; border: 0; border-radius: 999px; cursor: pointer; }
.rink-start { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; background: var(--yarn); color: var(--yarn-ink); box-shadow: 0 10px 30px rgba(0,0,0,.45); display: none; }
.rink-stop { right: 10px; top: 10px; width: 40px; height: 40px; background: rgba(11,21,48,.75); color: #fff; display: none; }
@media (pointer: coarse) { .rink-start { display: block; } .rink-hint { display: none; } .rink-box.playing .rink-start { display: none; } .rink-box.playing .rink-stop { display: block; } }
@media (prefers-reduced-motion: reduce) { .rink-start { display: block; } .rink-box.playing .rink-start { display: none; } .rink-box.playing .rink-stop { display: block; } }
.rink-score { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-weight: 800; }
.rink-score span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.rink-score b { font-size: 1.3rem; min-width: 1.2ch; text-align: center; }
.rink-score .you b { color: var(--seat); } .rink-score .dr b { color: #ff8a6b; } .rink-score .best { opacity: .8; font-size: .9rem; }
.peek { position: absolute; right: -18px; top: -44px; width: clamp(72px, 9vw, 110px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--gold), 0 12px 28px rgba(0,0,0,.45); transform: translateY(40%) rotate(8deg); transition: transform .5s cubic-bezier(.3,1.5,.5,1); z-index: -1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.rink-wrap:hover .peek, .peek.up { transform: translateY(-6%) rotate(-6deg); }

.knights { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.knight { font: inherit; color: inherit; cursor: pointer; text-align: center; width: 100%; background: var(--surface); border: 3px solid var(--line); border-radius: 22px; padding: 16px 10px 14px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.3,1.5,.5,1), border-color .2s; -webkit-tap-highlight-color: transparent; }
.knight:hover { transform: translateY(-6px) rotate(-2deg); }
.knight:nth-child(even):hover { transform: translateY(-6px) rotate(2deg); }
.knight.on { border-color: var(--k); }
.knight-pic { position: relative; display: block; width: 104px; height: 104px; margin: 0 auto 10px; border-radius: 50%; box-shadow: 0 0 0 6px var(--k), 0 10px 22px rgba(0,0,0,.25); }
.knight-pic img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.knight:hover .knight-pic img { animation: fun-nod .7s ease; }
.knight-base { display: block; width: 86px; height: 18px; margin: -6px auto 8px; border-radius: 50%; background: var(--k); box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); }
.knight b { display: block; } .knight small { color: var(--muted); }
.knight.on small::after { content: " ✓"; color: var(--k); font-weight: 800; }

.home-game { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.home-game-art { position: relative; display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.home-game-art img { width: 100%; transition: transform .8s ease; }
.home-game-art:hover img { transform: scale(1.04); }
.home-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; padding: 0; list-style: none; }
.home-ico { width: 56px; height: 56px; border-radius: 50%; transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.home-ico:hover { transform: translateY(-4px) scale(1.1) rotate(6deg); }
.values { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.values li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.cta-big { text-align: center; padding: clamp(56px, 9vw, 110px) 0; }
.cta-big .btn-big { font-size: 1.25rem; padding: 18px 34px; animation: fun-breathe 2.4s ease-in-out infinite; }
@keyframes fun-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

@media (max-width: 900px) {
	.home-hero .hero-grid, .home-game { grid-template-columns: 1fr; }
	.knights { grid-template-columns: repeat(2, 1fr); }
	.values { grid-template-columns: 1fr; }
	.peek { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.home-hero h1 em, .rink-hint, .cta-big .btn-big, .fun-bounce, .fun-honk { animation: none !important; }
	.mode:hover, .knight:hover, .home-ico:hover { animation: none !important; transform: none !important; }
	.peek { transition: none; transform: translateY(-6%) rotate(-6deg); }
}

/* feedback block (shown only when FEEDBACK_URL is set in Tools/site/build_mk_page.py) */
.feedback-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; box-shadow: var(--shadow); }
.feedback-card h2 { margin-bottom: 6px; }
@media (max-width: 600px) { .feedback-card { grid-template-columns: 1fr; text-align: center; } .feedback-card .ny-ico { margin: 0 auto; } }

#sound-toggle.off { opacity: .55; text-decoration: line-through; }
