/* Áss a kincsig! — minijáték */
.game-wrap { max-width: 860px; margin: 0 auto; padding: 140px 20px 90px; }
.game-head { text-align: center; margin-bottom: 26px; }
.game-head .page-tag { justify-content: center; }
.game-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(42px, 8vw, 64px); text-transform: uppercase; line-height: 1; }
.game-sub { margin-top: 14px; font-size: 15px; line-height: 1.75; color: rgba(244,241,236,0.55); }

.game-board-wrap { position: relative; }
.game-hud { display: flex; gap: 2px; margin-bottom: 2px; }
.hud-item { flex: 1; background: var(--dark2); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.hud-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(244,241,236,0.4); }
.hud-value { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--gold); }
.hud-scan { flex: 1.2; background: var(--dark2); border: 1px solid rgba(245,184,0,0.4); color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: .2s; }
.hud-scan:hover:not(:disabled) { background: rgba(245,184,0,0.1); }
.hud-scan:disabled { opacity: .35; cursor: default; }

.game-viewport { position: relative; height: 600px; overflow: hidden; background: linear-gradient(#2a4a6b 0%, #47698c 12%, #6b5334 16%, #3d2f1e 40%, #2b2117 100%); border: 1px solid rgba(255,255,255,0.08); touch-action: manipulation; }
.game-grass { position: absolute; top: 84px; left: 0; right: 0; height: 8px; background: #4a7c3f; z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.game-digger { position: absolute; top: 12px; font-size: 60px; z-index: 4; transition: left .25s ease; transform: translateX(-50%) scaleX(-1); filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }

.game-rows { position: absolute; top: 92px; left: 0; right: 0; transition: transform .3s ease; z-index: 2; }
.g-row { display: grid; grid-template-columns: repeat(5, 1fr); height: 72px; }
.g-cell { position: relative; border: 1px solid rgba(0,0,0,0.25); background: linear-gradient(#5a4630, #4d3b27); display: flex; align-items: center; justify-content: center; font-size: 32px; cursor: default; user-select: -moz-none; user-select: none; }
.g-row:nth-child(even) .g-cell { background: linear-gradient(#52402c, #463523); }
.g-row.diggable .g-cell { cursor: pointer; }
.g-row.diggable .g-cell:hover::after, .g-row.diggable .g-cell:active::after { content: '⛏'; position: absolute; font-size: 26px; opacity: .9; }
.g-cell.dug { background: #1b140d !important; box-shadow: inset 0 0 18px rgba(0,0,0,.8); }
.g-cell.dug::after { display: none !important; }
.g-cell .c-item { pointer-events: none; }
.g-cell.warn::before { content: '⚠️'; position: absolute; top: 2px; right: 4px; font-size: 12px; z-index: 2; }
.g-cell.pipe-hit { animation: pipeFlash .5s steps(2) 3; }
@keyframes pipeFlash { 50% { background: #7a1f1f; } }

/* csővezetékek — csak felfedéskor/bemérésnél látszanak */
.g-cell .c-pipe { position: absolute; left: -1px; right: -1px; top: 50%; height: 18px; transform: translateY(-50%); border-radius: 7px; opacity: 0; }
.g-cell.warn .c-pipe, .g-cell.revealed .c-pipe { opacity: 1; }
.c-pipe.gas { background: linear-gradient(#ffd75e, #d4a017); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.c-pipe.water { background: linear-gradient(#7db8e8, #3a7ab8); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.c-pipe.electric { background: linear-gradient(#e87d7d, #b83a3a); box-shadow: 0 2px 4px rgba(0,0,0,.4); }

.game-overlay { position: absolute; inset: 0; z-index: 10; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; background: rgba(10,10,10,0.92); backdrop-filter: blur(4px); padding: 30px; }
.game-overlay.show { display: flex; }
.ov-boom { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 64px; color: #ff8a3d; text-shadow: 3px 3px 0 rgba(0,0,0,.6); transform: rotate(-6deg); }
.ov-boom.win { transform: none; font-size: 56px; }
.ov-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(26px, 5vw, 38px); text-transform: uppercase; line-height: 1.05; }
.ov-text { font-size: 14.5px; line-height: 1.7; color: rgba(244,241,236,0.65); max-width: 420px; }
.ov-score { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; letter-spacing: 1px; color: rgba(244,241,236,0.8); }
.ov-score strong { color: var(--gold); }
.ov-moral { font-size: 13px; line-height: 1.65; color: rgba(245,184,0,0.85); max-width: 420px; }
.ov-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ov-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; background: var(--gold); color: #0B0B0B; border: none; padding: 15px 28px; cursor: pointer; text-decoration: none; display: inline-block; transition: .2s; }
.ov-btn:hover { background: #ffd233; transform: translateY(-2px); }
.ov-btn.outline { background: transparent; color: var(--warm-white); border: 1px solid rgba(244,241,236,0.35); }
.ov-btn.outline:hover { border-color: var(--gold); color: var(--gold); }

.game-foot { margin-top: 18px; text-align: center; font-size: 13px; color: rgba(244,241,236,0.4); }
.game-foot a { color: var(--gold); }

/* pont-felugrók */
.g-pop { position: absolute; z-index: 5; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; color: var(--gold); pointer-events: none; animation: popUp .8s ease forwards; text-shadow: 1px 1px 2px rgba(0,0,0,.8); }
@keyframes popUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-34px); } }

@media (max-width: 520px) {
  .game-wrap { padding: 116px 12px 60px; }
  .g-row { height: 60px; }
  .g-cell { font-size: 26px; }
  .hud-value { font-size: 17px; }
  .hud-scan { font-size: 12px; }
  .game-viewport { height: 480px; }
  .game-grass { top: 70px; }
  .game-rows { top: 78px; }
  .game-digger { font-size: 48px; }
}
