/* Diavola Pro — pizzasütő játék */
.game-wrap { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 9vw, 110px); }
.game-head { max-width: 720px; margin-bottom: 36px; }
.game-head h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 0 0 0.4em; }
.game-intro { color: var(--ink-soft); font-size: 1.1rem; }
.game-intro strong { color: var(--ink); }

.game-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }

/* Színpad — sötét sütőtér */
.game-stage {
	position: relative; border-radius: 20px; overflow: hidden;
	background: radial-gradient(120% 90% at 50% 115%, #3a1206 0%, #1c0d07 45%, #100807 100%);
	border: 1px solid #2a1a12; aspect-ratio: 1 / 1;
	box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
	touch-action: none; user-select: none;
}
#pizza-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.game-stage.dragging #pizza-canvas { cursor: grabbing; }

.game-hud {
	position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3;
	display: flex; gap: 10px; pointer-events: none;
}
.hud-item {
	background: rgba(10,6,4,0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.08);
	border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px;
}
.hud-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,220,190,0.6); }
.hud-item b { font-family: var(--mono); font-size: 1rem; color: #ffcf9e; }

.game-tip {
	position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3;
	background: rgba(10,6,4,0.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.08);
	color: #f3e6d6; font-size: 0.86rem; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
	max-width: calc(100% - 32px); text-align: center; pointer-events: none;
}

/* Eredmény overlay */
.game-result { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(8,5,3,0.72); backdrop-filter: blur(4px); animation: fadein 0.4s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.result-card { text-align: center; color: #fff; padding: 30px; max-width: 320px; }
.result-emoji { font-size: 3.4rem; }
.result-score { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 3.4rem; line-height: 1; color: #ff7a3c; }
.result-card h2 { color: #fff; font-size: 1.6rem; margin: 6px 0 8px; }
.result-card p { color: rgba(255,240,230,0.8); font-size: 0.98rem; margin-bottom: 20px; }

/* Vezérlők */
.game-controls { display: flex; flex-direction: column; gap: 22px; }
.ctrl-block { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ctrl-label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.ctrl-label b { font-family: var(--mono); color: var(--signal); font-size: 0.95rem; }
.ctrl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: linear-gradient(90deg, #e8d9b5, #df3417); outline: none; }
.ctrl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25); cursor: pointer; }
.ctrl-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; cursor: pointer; }
.ctrl-hint { font-size: 0.82rem; color: var(--mute); margin: 12px 0 0; }

.topping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topping-btn { font-family: var(--sans); font-size: 0.9rem; padding: 11px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; transition: 0.2s; text-align: left; }
.topping-btn:hover { border-color: var(--signal); }
.topping-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ctrl-clear { margin-top: 12px; background: none; border: 0; color: var(--mute); font-family: var(--mono); font-size: 0.74rem; cursor: pointer; text-decoration: underline; }
.ctrl-clear:hover { color: var(--signal); }

.game-out { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.game-out:hover { background: var(--signal); border-color: var(--signal); }
.game-rotate-hint { text-align: center; font-size: 0.86rem; color: var(--signal); font-weight: 600; margin: 4px 0 0; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (max-width: 900px) {
	.game-layout { grid-template-columns: 1fr; }
	.game-stage { max-width: 560px; margin-inline: auto; width: 100%; }
	.game-controls { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.game-rotate-hint { animation: none; }
}
