/* ================= PENALES (hidden arcade game) ================= */
.pk-game { display: grid; justify-items: center; gap: 16px; padding-bottom: clamp(50px, 8vh, 90px); }
.pk-stage {
  position: relative; width: min(100%, 1240px); aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: #050505; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 60px rgba(255,0,43,.12);
  user-select: none; -webkit-user-select: none;
}
.pk-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pk-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,.55), rgba(255,0,43,.35) 50%, transparent 75%); opacity: 0; }
.pk-flash.on { animation: pkFlash .7s ease-out; }
@keyframes pkFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* pixel font for everything inside the arcade */
.pk-stage, .pk-kick { font-family: "Silkscreen", "Barlow", monospace; }

/* ---------- HUD (score / level / penalties / record) ---------- */
.pk-hud { position: absolute; top: 3%; right: 2.4%; display: grid; gap: 8px; width: clamp(120px, 15%, 190px); pointer-events: none; }
.pk-box { padding: 8px 12px 10px; background: rgba(10,10,10,.86); border: 2px solid rgba(255,255,255,.28); border-radius: 6px; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px rgba(0,0,0,.6); }
.pk-box small { display: block; font-size: clamp(9px, .8vw, 11px); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pk-box b { display: block; margin-top: 2px; font-size: clamp(18px, 2.1vw, 30px); font-weight: 700; color: var(--red); line-height: 1; }
.pk-best-box b { color: #fff; font-size: clamp(14px, 1.5vw, 20px); }
.pk-shots { display: flex; gap: 6px; margin-top: 6px; }
.pk-shots i { width: clamp(12px, 1.3vw, 18px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.pk-shots i.ok { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px rgba(255,0,43,.7); }
.pk-shots i.ko { background: #333; border-color: #555; position: relative; }
.pk-shots i.ko::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: #bbb; line-height: 1; }

/* ---------- power ---------- */
.pk-power { position: absolute; right: 2.4%; bottom: 4%; width: clamp(190px, 28%, 340px); padding: 8px 12px 12px; background: rgba(10,10,10,.88); border: 2px solid rgba(255,255,255,.28); border-radius: 6px; box-shadow: 0 0 0 2px #000; pointer-events: none; }
.pk-power small { display: block; font-size: clamp(9px, .8vw, 11px); letter-spacing: .14em; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.pk-row { display: flex; align-items: center; gap: 10px; }
.pk-row .pk-bar { flex: 1; }
.pk-pct { min-width: 3.2em; text-align: right; font-size: clamp(12px, 1.2vw, 16px); color: #fff; }
.pk-bar { position: relative; height: 16px; background: repeating-linear-gradient(90deg, #222 0 9px, #111 9px 11px); border: 2px solid #000; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.pk-sweet { position: absolute; top: -4px; bottom: -4px; border: 2px solid #fff; box-shadow: 0 0 10px rgba(255,255,255,.4); }
.pk-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, var(--red) 0 9px, #b0001d 9px 11px); }

/* ---------- messages ---------- */
.pk-help {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%); pointer-events: none;
  padding: 8px 14px; background: rgba(0,0,0,.72); font-size: clamp(10px, 1vw, 14px); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.pk-help:empty { display: none; }
.pk-result {
  position: absolute; left: 0; right: 0; top: 18%; display: grid; justify-items: center; gap: 8px; pointer-events: none; opacity: 0;
  text-align: center;
}
.pk-result b { font-size: clamp(42px, 8.4vw, 120px); line-height: 1; font-weight: 700; color: #fff; text-transform: uppercase;
  text-shadow: 0 6px 0 var(--red), 0 12px 0 #000, 0 0 40px rgba(255,0,43,.7); }
.pk-result.miss b { color: #e9e9e9; text-shadow: 0 6px 0 #444, 0 12px 0 #000; }
.pk-result small { font-size: clamp(11px, 1.2vw, 16px); padding: 6px 12px; background: rgba(0,0,0,.75); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- kick button: inside the scene, under the ball ("SHOOT ▶") ---------- */
.pk-kick {
  position: absolute; left: 50%; bottom: 2.2%; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 18px; padding: 10px 26px 10px 32px; cursor: pointer;
  background: var(--red); color: #fff; border: 3px solid #fff; border-radius: 6px;
  box-shadow: 0 5px 0 #7a0012, 0 0 0 3px #000, 0 0 30px rgba(255,0,43,.45);
  font-size: clamp(13px, 1.6vw, 22px); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  transition: transform .12s, box-shadow .12s, opacity .2s;
}
.pk-kick i { font-style: normal; font-size: .8em; }
.pk-kick:active { transform: translateX(-50%) translateY(4px); box-shadow: 0 1px 0 #7a0012, 0 0 0 3px #000; }
.pk-kick:disabled { opacity: .45; }
.pk-keys { font: 500 11px/1.4 "Barlow", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); text-align: center; }

/* ---------- panels: intro / level / game over ---------- */
.pk-panel {
  position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: clamp(10px, 2vh, 18px);
  padding: 4% 6%; text-align: center; cursor: default;
  background: radial-gradient(70% 80% at 50% 40%, rgba(40,0,6,.78), rgba(0,0,0,.92));
}
.pk-kicker { font-size: clamp(10px, .9vw, 13px); letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.pk-rules { list-style: none; display: grid; gap: 8px; font-size: clamp(10px, 1vw, 14px); color: rgba(255,255,255,.85); text-align: left; }
.pk-rules b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; background: var(--red); color: #fff; }
.pk-big { font-size: clamp(38px, 6.5vw, 96px); font-weight: 700; text-transform: uppercase; line-height: 1; text-shadow: 0 6px 0 var(--red), 0 12px 0 #000; }
.pk-sub { font-size: clamp(11px, 1.1vw, 15px); color: rgba(255,255,255,.8); }
.pk-stats { display: flex; gap: clamp(14px, 3vw, 40px); }
.pk-stats div { display: grid; gap: 4px; }
.pk-stats dt { font-size: clamp(9px, .8vw, 11px); letter-spacing: .2em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.pk-stats dd { font-size: clamp(20px, 2.6vw, 36px); font-weight: 700; color: var(--red); }
.pk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pk-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px; cursor: pointer;
  background: var(--red); color: #fff; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 6px 0 #7a0012, 0 0 0 3px #000, 0 0 30px rgba(255,0,43,.35);
  font: 700 clamp(12px, 1.2vw, 16px)/1 "Silkscreen", monospace; text-transform: uppercase; letter-spacing: .06em;
  transition: transform .15s, box-shadow .15s;
}
.pk-btn svg { width: 18px; }
.pk-btn:hover { transform: translateY(-2px); }
.pk-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a0012, 0 0 0 3px #000; }
.pk-btn.ghost { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px #000; }
.pk-btn:disabled { opacity: .7; cursor: default; }
.pk-rank { min-height: 20px; }
.pk-rank-title { font-size: clamp(10px, .9vw, 12px); letter-spacing: .14em; color: rgba(255,255,255,.7); text-transform: uppercase; }
.pk-rank-title b { color: #fff; }
.pk-rank ol { list-style: none; display: grid; gap: 4px; margin-top: 8px; counter-reset: r; font-size: clamp(10px, .95vw, 13px); }
.pk-rank li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: baseline; text-align: left; min-width: min(360px, 70vw); }
.pk-rank li::before { content: counter(r); color: var(--red); }
.pk-rank li small { color: rgba(255,255,255,.5); }

/* intro: Penalty Shootout logo over the live stadium */
.pk-start { background: radial-gradient(70% 80% at 50% 45%, rgba(40,0,6,.35), rgba(0,0,0,.78)); cursor: pointer; }
.pk-logo { width: min(64%, 620px); margin: -1% 0; }
.pk-logo img { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 0 rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(255,0,43,.45)); animation: pkFloat 3.2s ease-in-out infinite; }
@keyframes pkFloat { 50% { transform: translateY(-6px) scale(1.01); } }
.pk-press { font-size: clamp(13px, 1.5vw, 20px); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 var(--red), 0 0 18px rgba(255,0,43,.6); animation: pkBlink 1.1s steps(2, start) infinite; }
@keyframes pkBlink { to { visibility: hidden; } }
.pk-start .pk-rules { opacity: .85; }

/* ---------- hidden overlay ---------- */
.pk-overlay { position: fixed; inset: 0; z-index: 72; overflow: hidden; }
.pk-curtain { position: absolute; inset: 0; }
.pk-curtain:nth-of-type(1) { background: var(--red); }
.pk-curtain:nth-of-type(2) { background: #070707; }
.pk-wrap { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr; overflow-y: auto; padding: calc(var(--pad) + 6px) clamp(16px, 4vw, 60px) 20px; }
.pk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pk-tag { font: 500 12px/1 "Barlow", sans-serif; letter-spacing: .42em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pk-overlay .pk-game { align-content: center; padding-bottom: 10px; }
.pk-overlay .pk-stage { width: min(100%, calc((100svh - 190px) * 16 / 9), 1240px); }

/* the secret door: "ARG" in the home tag, indistinguishable from the other words */
.tag-egg { color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .25s; }
.tag-egg::after { content: " ▶"; color: var(--red); }
.tag-egg:hover { color: var(--red); }
.tag-egg:focus { outline: none; }
.tag { pointer-events: auto; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .pk-rules { display: none; }
  /* the menus sit under the field instead of covering it */
  .pk-stage { aspect-ratio: auto; }
  .pk-canvas { height: auto; aspect-ratio: 16 / 9; }
  .pk-panel { position: relative; inset: auto; padding: 22px 16px 26px; }
  .pk-panel:not([hidden]) ~ .pk-hud { display: none; }
  /* score row and power bar go under the field, the goal stays clear */
  .pk-hud { position: static; width: auto; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; }
  .pk-box { padding: 5px 7px 7px; }
  .pk-box b { font-size: 16px; }
  .pk-shots i { width: 11px; }
  .pk-power { position: static; width: auto; margin: 0 6px 6px; padding: 6px 8px 9px; }
  .pk-help { top: 3%; left: 3%; right: 3%; transform: none; font-size: 9px; padding: 5px 8px; white-space: normal; text-align: center; }
  .pk-kick { position: static; transform: none; margin: 8px auto 4px; display: flex; width: calc(100% - 12px); justify-content: center; }
  .pk-kick:active { transform: translateY(3px); }
  .pk-logo { width: 86%; }
}

/* while the intro / level / game-over panels are up, the in-game HUD steps aside */
.pk-stage:has(.pk-panel:not([hidden])) :is(.pk-hud, .pk-power, .pk-kick, .pk-help) { display: none; }
