/* Hadi Sende Oyunlar — ek oyunların arayüzü (Hızlı Hesap, Genel Kültür Testi, Renk Dizisi, Taş Kâğıt Makas,
   Kaydırmalı Bulmaca, Işıkları Söndür, Hanoi Kuleleri, Tepki Süresi). Önek: hg-m-  |  games.css ile birlikte yüklenir. */
.hg-m-gk [hidden], .hg-btn[hidden] { display: none !important; }
.hg-m-status { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 600; color: #333; text-align: center; }

/* -------------------------------------------------------------- Hızlı Hesap */
.hg-m-box { width: min(100%, 420px); display: grid; gap: 14px; text-align: center; }
.hg-m-q { font-variant-numeric: tabular-nums; font-family: var(--ns-serif, Georgia, serif); font-size: clamp(34px, 9vw, 52px); line-height: 1.1; font-weight: 700; color: #141414; padding: 18px 8px; background: #f7f7f7; border: 1px solid #ececec; border-radius: 14px; }
.hg-m-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hg-m-in { min-width: 0; min-height: 52px; padding: 0 14px; border: 2px solid #d9d9d9; border-radius: 12px; font: inherit; font-size: 24px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; color: #141414; background: #fff; }
.hg-m-in:focus { outline: 0; border-color: var(--hs-pri, #e50914); box-shadow: 0 0 0 3px rgba(229,9,20,.14); }
.hg-m-in.is-bad { border-color: #c62828; background: #fdecec; }
.hg-m-in:disabled { background: #f1f1f1; }
.hg-m-form .hg-btn { min-height: 52px; }

/* -------------------------------------------------------------- Genel Kültür Testi */
.hg-m-gk { width: min(100%, 640px); display: grid; gap: 12px; }
.hg-m-cat { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #b20710; background: #fdecec; padding: 4px 10px; border-radius: 999px; }
.hg-m-gq { margin: 0; font-family: var(--ns-serif, Georgia, serif); font-size: clamp(20px, 3.4vw, 26px); line-height: 1.3; font-weight: 700; color: #141414; outline: 0; }
.hg-m-bar { height: 6px; border-radius: 999px; background: #ececec; overflow: hidden; }
.hg-m-bar i { display: block; height: 100%; width: 100%; background: var(--hs-pri, #e50914); transition: width .22s linear; }
.hg-m-opts { display: grid; gap: 8px; }
.hg-m-opt { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; text-align: left; font: inherit; font-size: 16px; line-height: 1.35; color: #141414; background: #fff; border: 2px solid #e2e2e2; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.hg-m-opt b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f1f1; font-size: 13px; color: #333; }
.hg-m-opt:hover:not(:disabled) { border-color: #bdbdbd; background: #fafafa; }
.hg-m-opt:disabled { cursor: default; }
.hg-m-opt.is-ok { border-color: #168a47; background: #eaf7ef; }
.hg-m-opt.is-ok b { background: #168a47; color: #fff; }
.hg-m-opt.is-bad { border-color: #c62828; background: #fdecec; }
.hg-m-opt.is-bad b { background: #c62828; color: #fff; }
.hg-m-feed { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 600; color: #333; }
.hg-m-feed.is-ok { color: #168a47; } .hg-m-feed.is-bad { color: #b3261e; }
.hg-m-gk .hg-btn { justify-self: start; }
.hg-m-rev { text-align: left; margin-top: 8px; font-size: 14px; }
.hg-m-rev summary { cursor: pointer; font-weight: 700; }
.hg-m-rev ul { margin: 8px 0 0; padding-left: 18px; max-height: 220px; overflow: auto; }
.hg-m-rev li { margin: 0 0 8px; line-height: 1.4; }
.hg-m-rev li b { display: block; font-weight: 700; }
.hg-m-rev li span { color: #5e5e5e; }

/* -------------------------------------------------------------- Renk Dizisi (Simon) */
.hg-m-simon { width: min(100%, 340px); }
.hg-m-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; aspect-ratio: 1; }
.hg-m-pad { appearance: none; display: grid; place-items: center; border: 0; border-radius: 22px; font-size: 40px; line-height: 1; color: rgba(255,255,255,.9); cursor: pointer; opacity: .62; transition: opacity .1s, transform .1s, box-shadow .1s, filter .1s; -webkit-tap-highlight-color: transparent; }
.hg-m-pad:disabled { cursor: default; }
.hg-m-pad--0 { background: #d32f2f; } .hg-m-pad--1 { background: #2457d6; } .hg-m-pad--2 { background: #168a47; } .hg-m-pad--3 { background: #e5a800; color: #141414; }
.hg-m-pad.is-lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 26px 6px rgba(20,20,20,.28); filter: brightness(1.2); }
.hg-m-pad:not(:disabled):hover { opacity: .85; }
.hg-m-pad.is-bad { opacity: .35; }

/* -------------------------------------------------------------- Taş Kâğıt Makas */
.hg-m-rps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: min(100%, 420px); text-align: center; }
.hg-m-lab { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #737373; margin-bottom: 6px; }
.hg-m-hand { display: grid; place-items: center; aspect-ratio: 1; font-size: clamp(48px, 14vw, 72px); line-height: 1; background: #f7f7f7; border: 2px solid #ececec; border-radius: 18px; transition: border-color .2s, background .2s; }
.hg-m-hand.is-win { border-color: #168a47; background: #eaf7ef; } .hg-m-hand.is-lose { border-color: #c62828; background: #fdecec; }
.hg-m-vs { font-weight: 800; color: #9a9a9a; font-size: 14px; }
.hg-m-move { flex-direction: column; gap: 2px; min-width: 92px; min-height: 76px; padding: 8px 14px; }
.hg-m-emo { font-size: 30px; line-height: 1; }

/* -------------------------------------------------------------- Kaydırmalı Bulmaca */
.hg-m-slide { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; width: min(100%, calc(var(--n) * 88px)); padding: 8px; background: #141414; border-radius: 16px; touch-action: none; }
.hg-m-tile { appearance: none; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: #fff; color: #141414; font: inherit; font-weight: 800; font-size: calc(96px / var(--n)); font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .1s, background .15s; -webkit-tap-highlight-color: transparent; }
.hg-m-tile:hover:not(:disabled) { background: #f1f1f1; }
.hg-m-tile:active:not(:disabled) { transform: scale(.95); }
.hg-m-tile.is-home { background: #fdecec; color: #b20710; }
.hg-m-tile.is-empty { background: transparent; cursor: default; }
.hg-m-tile:disabled { cursor: default; }

/* -------------------------------------------------------------- Işıkları Söndür */
.hg-m-lights { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; width: min(100%, calc(var(--n) * 68px)); padding: 8px; background: #141414; border-radius: 16px; }
.hg-m-light { appearance: none; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: #3a3a3a; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.hg-m-light:hover { background: #4a4a4a; }
.hg-m-light:active { transform: scale(.94); }
.hg-m-light.is-on { background: #ffcf33; box-shadow: 0 0 14px 2px rgba(255,207,51,.55); }
.hg-m-light.is-on:hover { background: #ffd95c; }

/* -------------------------------------------------------------- Hanoi Kuleleri */
.hg-m-hanoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 520px); }
.hg-m-peg { appearance: none; position: relative; display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: 3px; min-width: 0; height: calc(var(--discs) * 29px + 44px); padding: 0 0 8px; border: 2px solid #e2e2e2; border-radius: 14px; background: #fafafa; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.hg-m-peg:hover { border-color: #bdbdbd; }
.hg-m-peg.is-sel { border-color: var(--hs-pri, #e50914); background: #fff6f6; }
.hg-m-peg.is-hint { border-color: #2457d6; background: #f1f5ff; }
.hg-m-rod { position: absolute; left: 50%; bottom: 8px; top: 12px; width: 8px; margin-left: -4px; border-radius: 4px; background: #c8c8c8; }
.hg-m-disc { position: relative; display: block; flex: none; width: var(--w); height: 26px; border-radius: 8px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); transition: transform .15s; }
.hg-m-disc.is-lift { transform: translateY(-8px); box-shadow: 0 6px 12px -4px rgba(20,20,20,.4), inset 0 -3px 0 rgba(0,0,0,.14); }
.hg-m-disc--0 { background: #e50914; } .hg-m-disc--1 { background: #141414; } .hg-m-disc--2 { background: #e5a800; } .hg-m-disc--3 { background: #168a47; } .hg-m-disc--4 { background: #2457d6; } .hg-m-disc--5 { background: #8e44ad; }

/* -------------------------------------------------------------- Tepki Süresi */
.hg-m-react { appearance: none; display: grid; align-content: center; justify-items: center; gap: 8px; width: min(100%, 520px); min-height: 260px; padding: 20px; border: 0; border-radius: 18px; color: #fff; font: inherit; text-align: center; cursor: pointer; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .12s; }
.hg-m-react__t { font-family: var(--ns-serif, Georgia, serif); font-size: clamp(30px, 8vw, 48px); line-height: 1.1; font-weight: 700; }
.hg-m-react__s { font-size: 15px; opacity: .92; }
.hg-m-react.is-idle { background: #2457d6; } .hg-m-react.is-wait { background: #b3261e; } .hg-m-react.is-go { background: #168a47; }
.hg-m-react.is-early { background: #e5a800; color: #141414; } .hg-m-react.is-result { background: #2457d6; }
.hg-m-react:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }

/* -------------------------------------------------------------- küçük ekranlar ve hareket azaltma */
@media (max-width: 420px) {
  .hg-m-pad { font-size: 32px; border-radius: 18px; }
  .hg-m-peg { gap: 2px; } .hg-m-disc { height: 22px; } .hg-m-peg { height: calc(var(--discs) * 25px + 44px); }
  .hg-m-opt { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-m-pad, .hg-m-tile, .hg-m-light, .hg-m-disc, .hg-m-opt, .hg-m-bar i, .hg-m-react, .hg-m-hand, .hg-m-peg { transition: none; }
  .hg-m-pad.is-lit { transform: none; }
}
