/* Ponty Kicks (pontardawerfc.com/play, 2026-10-15). The game is a 16:9
   stage on a desktop and an iPad; a phone turned sideways gets the whole
   screen; a phone held upright still plays, with a hint to turn it. */
/* A brush hand, like the club's own match posters (Permanent Marker,
   Apache 2.0, public/fonts/LICENSE-PermanentMarker.txt). */
@font-face { font-family: "Ponty Brush"; src: url(/fonts/permanent-marker-latin-400-normal.woff2) format("woff2"); font-display: swap; }
.game-sec { padding-top: 34px; }
.game { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--head-h) - 40px); margin-inline: auto; border-radius: 22px; overflow: hidden; background: #0b0204; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); user-select: none; -webkit-user-select: none; touch-action: none; color: #fff; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.game canvas:active { cursor: grabbing; }
.game:fullscreen, .game.g-fake-full { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; border-radius: 0; }
.game.g-fake-full { position: fixed; inset: 0; z-index: 400; }

/* Scoreboard */
.g-hud { position: absolute; left: 10px; right: 10px; top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; pointer-events: none; font-family: "Montserrat", sans-serif; }
.g-hud:empty { display: none; }
.g-side { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(10, 2, 4, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); transition: box-shadow .3s, border-color .3s; min-width: 0; }
.g-side.right { justify-content: flex-end; }
.g-side.on { border-color: #f2c14e; box-shadow: 0 0 0 2px rgba(242, 193, 78, .25); }
.g-side b { font: 600 1rem/1 "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-side strong { font: 600 1.7rem/1 "Oswald", sans-serif; color: #f2c14e; min-width: 1.4em; text-align: center; }
.g-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.g-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.g-dots i.hit { background: #3ddc84; }
.g-dots i.miss { background: #e8312f; }
.g-dots i.now { background: #f2c14e; animation: g-pulse 1s ease-in-out infinite; }
@keyframes g-pulse { 50% { transform: scale(1.4); } }
.g-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 14px; background: rgba(10, 2, 4, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; text-align: center; }
.g-round { color: #f2c14e; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.g-wind { display: inline-flex; align-items: center; gap: 6px; }
.g-wind i { width: 34px; height: 10px; position: relative; }
.g-wind i::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: #fff; transform-origin: center; transform: scaleX(calc(.2 + min(1, max(-1, var(--w) / 8)) * min(1, max(-1, var(--w) / 8)) * .8)); }
.g-spot { opacity: .8; font-weight: 600; }

/* Banners and messages */
.g-banner { position: absolute; left: 50%; top: 30%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.4, .4, 1); text-align: center; }
.g-banner.show { opacity: 1; transform: none; }
.g-banner b { font: 600 clamp(1.8rem, 5vw, 3.6rem)/1 "Oswald", Impact, sans-serif; text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 6px 30px rgba(0, 0, 0, .7); }
.g-banner span { font: 700 .9rem/1.2 "Montserrat", sans-serif; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.g-banner.good b { color: #f2c14e; }
.g-banner.bad b { color: #ff8a83; }
.g-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; max-width: 90%; margin: 0; padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, .78); font-size: .9rem; font-weight: 600; text-align: center; z-index: 5; }
.g-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 4; }
.g-tools button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 2, 4, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.g-tools button:hover { transform: translateY(-2px); background: rgba(196, 20, 20, .55); border-color: #f2c14e; }
.g-tools button:active { transform: scale(.92); }
.g-tools svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-tools svg path:first-child { fill: currentColor; fill-opacity: .2; }
[data-g-mute] .i-off, [data-g-mute][aria-pressed="true"] .i-on { display: none; }
[data-g-mute][aria-pressed="true"] .i-off { display: block; }
[data-g-mute][aria-pressed="true"] { color: #ff8a83; }
:fullscreen [data-g-full] svg path { d: path("M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5"); }
.game:not(.playing) .g-tools [data-g-menu-open] { display: none; }

/* The menu and full time */
.g-menu, .g-over { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; overflow: auto; background: radial-gradient(900px 500px at 50% 0%, rgba(196, 20, 20, .45), transparent 70%), rgba(8, 1, 3, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g-menu-in, .g-over-in { width: min(860px, 100%); text-align: center; }
.g-logo { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; text-align: left; }
.g-logo img { width: 64px; height: 64px; border-radius: 16px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); animation: float 5s ease-in-out infinite; }
.g-logo b { display: block; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 "Oswald", Impact, sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.g-logo small { display: block; margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #f2c14e; }
.g-name { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 700; font-size: .9rem; }
.g-name input, .g-join input { font: 600 1rem/1 "Montserrat", sans-serif; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; width: 170px; }
.g-join input { width: 110px; text-transform: uppercase; letter-spacing: .2em; text-align: center; }
.g-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.g-mode { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .25s, transform .25s; }
.g-mode:hover, .g-mode:target { border-color: rgba(242, 193, 78, .6); transform: translateY(-2px); }
.g-mode h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 6px; }
.g-mode p { margin: 0 0 12px; font-size: .86rem; line-height: 1.45; opacity: .85; }
.g-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.g-mode .g-row { justify-content: flex-start; }
.g-join { margin-top: 10px; }
.g-menu .btn-line, .g-over .btn-line { color: #fff; border-color: rgba(255, 255, 255, .5); }
.g-code-label { margin: 14px 0 2px; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #f2c14e; }
.g-code { margin: 0 0 8px; font: 600 2.4rem/1 "Oswald", sans-serif; letter-spacing: .3em; }
.g-share { display: flex; gap: 8px; flex-wrap: wrap; }
.g-waiting { display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .85; }
.g-waiting span { width: 10px; height: 10px; border-radius: 50%; background: #f2c14e; animation: g-pulse 1s ease-in-out infinite; }
.g-best { margin: 12px 0 0; opacity: .75; }
.g-over h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 6px; }
.g-final { font: 600 1.3rem/1.2 "Oswald", sans-serif; margin: 0 0 18px; letter-spacing: .04em; }
.g-over .kicker { color: #f2c14e; background: none; border: 0; }

/* Phones: the game takes the screen when turned sideways */
.g-rotate { display: none; }
@media (max-width: 760px) and (orientation: portrait) {
  .game { aspect-ratio: 9 / 13; max-height: none; border-radius: 16px; }
  .g-modes { grid-template-columns: minmax(0, 1fr); }
  .g-menu-in { padding-top: 10px; }
  .g-rotate { display: flex; position: absolute; left: 50%; bottom: 60px; translate: -50% 0; z-index: 3; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .8rem; font-weight: 700; white-space: nowrap; pointer-events: none; }
  .g-rotate span { display: inline-block; animation: g-turn 2.4s ease-in-out infinite; font-size: 1.1rem; }
  .game.playing .g-rotate { animation: g-hide .5s ease 4s forwards; }
}
@keyframes g-turn { 50% { transform: rotate(90deg); } }
@keyframes g-hide { to { opacity: 0; } }
@media (max-height: 520px) and (orientation: landscape) {
  body:has(.game-sec) .page-hero { display: none; }
  .game-sec { padding: 0; }
  .game-sec .wrap { width: 100%; }
  .game { height: calc(100vh - var(--head-h)); height: calc(100dvh - var(--head-h)); max-height: none; aspect-ratio: auto; border-radius: 0; }
  .g-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .g-mode { padding: 10px; }
  .g-mode p { display: none; }
  .g-logo { margin-bottom: 6px; }
  .g-name { margin-bottom: 8px; }
  .g-side b { font-size: .85rem; }
  .g-side strong { font-size: 1.3rem; }
}
@media (max-width: 560px) {
  .g-hud { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-mid { grid-column: 1 / -1; grid-row: 2; justify-self: center; flex-direction: row; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .g-dots { display: none; }
}

/* --- Lettering like the club's posters (the owner: "fonts not fancy") ----- */
.g-banner b, .g-logo b, .g-over h2 {
  font-family: "Ponty Brush", "Oswald", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 0%, #ffe9b8 45%, #f2c14e 55%, #e8a21a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(90, 0, 0, .55); filter: drop-shadow(0 4px 0 #8f0000) drop-shadow(0 10px 24px rgba(0, 0, 0, .65));
  transform: rotate(-3deg) skewX(-6deg);
}
.g-banner b { font-size: clamp(2.2rem, 6.4vw, 4.6rem); line-height: .95; animation: g-slam .5s cubic-bezier(.2, 1.6, .4, 1); }
.g-banner.bad b { background: linear-gradient(180deg, #fff 0%, #ffd0cc 50%, #ff6a5e 100%); -webkit-background-clip: text; background-clip: text; }
.g-banner span { font: 800 .82rem/1.2 "Montserrat", sans-serif; letter-spacing: .14em; text-transform: uppercase; background: #c41414; transform: rotate(-3deg); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); }
@keyframes g-slam { from { transform: rotate(-3deg) skewX(-6deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } }
.g-logo b { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.g-logo small, .g-round, .g-code-label { font-family: "Oswald", sans-serif; font-weight: 600; font-style: italic; letter-spacing: .22em; }
.g-over h2 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.g-code { font: 700 italic 2.6rem/1 "Oswald", sans-serif; letter-spacing: .28em; color: #f2c14e; text-shadow: 0 0 22px rgba(242, 193, 78, .45); }
.g-side strong { font-family: "Oswald", sans-serif; font-style: italic; font-weight: 700; font-size: 2rem; text-shadow: 0 0 18px rgba(242, 193, 78, .55); }
.g-side b { font-style: italic; }
/* Three faces, each with its job: the brush for the big moments (results,
   the title, full time), Oswald for headings, names and numbers, and
   Montserrat for everything you read. */
.g-mode h3 { font: 600 italic 1.15rem/1.1 "Oswald", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.g-mode p, .g-name, .g-best, .g-share, .g-waiting { font-family: "Montserrat", sans-serif; }
.g-mode .btn { font-family: "Montserrat", sans-serif; font-weight: 800; letter-spacing: .02em; }
.g-final { font-family: "Oswald", sans-serif; font-style: italic; font-size: 1.5rem; }

/* --- Teams: chips in the menu, badges on the scoreboard ------------------- */
.g-teams { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; }
.g-teams-label { font: 600 italic .8rem/1 "Oswald", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f2c14e; min-width: 74px; text-align: right; }
.g-team { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: #fff; font: 700 .78rem/1 "Montserrat", sans-serif; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.g-team:hover { transform: translateY(-1px); }
.g-team[aria-pressed="true"] { background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 60%, #000)); border-color: var(--b); box-shadow: 0 0 0 2px color-mix(in srgb, var(--b) 40%, transparent); }
.g-team img { width: 22px; height: 22px; object-fit: contain; }
.g-shield { display: inline-grid; place-items: center; width: 22px; height: 24px; font: 700 .5rem/1 "Oswald", sans-serif; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
  background: repeating-linear-gradient(180deg, var(--a) 0 4px, var(--b) 4px 7px); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.g-badge { width: 28px; height: 28px; flex: none; object-fit: contain; }
.g-badge.g-shield { width: 26px; height: 30px; font-size: .58rem; }
@media (max-width: 760px) { .g-teams-label { min-width: 0; flex-basis: 100%; text-align: center; } .g-team span:last-child { display: none; } .g-team { padding: 5px; } }
@media (max-height: 520px) and (orientation: landscape) { .g-team span:last-child { display: none; } .g-team { padding: 4px; } .g-teams { margin-bottom: 6px; } }

/* --- Placing a conversion, and the shot clock ------------------------------ */
.g-place { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border-radius: 16px; background: rgba(10, 2, 4, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); }
.g-place button { font: 800 .78rem/1 "Montserrat", sans-serif; letter-spacing: .04em; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.g-place button:hover { background: rgba(242, 193, 78, .2); border-color: #f2c14e; }
.g-place b { text-align: center; font: 700 italic 1.4rem/1 "Oswald", sans-serif; color: #f2c14e; }
.g-clock { font: 700 italic .95rem/1 "Oswald", sans-serif; letter-spacing: .08em; color: #fff; }
.g-clock:empty { display: none; }
.g-clock.low { color: #ff6a5e; animation: g-pulse .5s ease-in-out infinite; }
