/* BeeLogic · Bienen-Golf (Arcade + Pro) – Arcade-Bühne in goldenem Rahmen.
   Nutzt die Design-Tokens aus beelogic.css (--gold, --night, --honey …). */

.gf-page { padding-block: 8px 72px; }
.gf-page .page-head { padding-block: 32px 18px; }
.gf-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Rahmen & HUD ---------- */
.gf-root { margin-top: 8px; }
.gf-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--night);
  color: #E9DFC6;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px rgba(255, 215, 106, .28), var(--shadow-lg);
}
.gf-hud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1c150a, var(--night));
  border-bottom: 1px solid var(--night-line);
}
.gf-title { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem var(--font-display); color: var(--gold-light); letter-spacing: -.01em; }
.gf-title svg { width: 28px; height: 28px; color: var(--gold); }
.gf-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; flex: 1 1 auto; }
.gf-stat { display: grid; gap: 1px; min-width: 52px; }
.gf-stat dt { font: 600 .68rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 223, 198, .6); }
.gf-stat dd { margin: 0; font: 800 1.35rem/1.1 var(--font-display); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.gf-tools { display: flex; gap: 8px; margin-left: auto; }
.gf-tools .btn { background: rgba(255, 215, 106, .1); color: var(--gold-light); border-color: var(--night-line); min-height: 40px; }
.gf-tools .btn:hover { background: rgba(255, 215, 106, .22); color: #fff; border-color: var(--gold); }
.gf-tools .btn[aria-pressed="true"] { background: var(--gold-soft); color: var(--ink); }
.gf-tools .btn svg { width: 18px; height: 18px; }

/* ---------- Bühne ---------- */
.gf-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.gf-main { min-width: 0; }
.gf-stage { position: relative; width: 100%; background: #0e0b06; overflow: hidden; }
[data-golf="arcade"] .gf-stage { aspect-ratio: 2 / 1; max-height: 76vh; min-height: 260px; }
[data-golf="pro"] .gf-stage { height: clamp(440px, 74vh, 780px); }
.gf-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.gf-canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 0; }

.gf-pause {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 24px;
  background: rgba(16, 13, 8, .8); backdrop-filter: blur(6px);
}
.gf-pause[hidden] { display: none; }
.gf-pause strong { display: block; font: 800 clamp(1.6rem, 5vw, 2.4rem) var(--font-display); color: var(--gold-light); }
.gf-pause p { margin: .4em 0 1em; color: rgba(233, 223, 198, .8); }

.gf-flash { position: absolute; inset: 0; background: var(--gold-light); opacity: 0; pointer-events: none; z-index: 4; }
.gf-flash.is-on { animation: gfFlash .6s ease-out; }
@keyframes gfFlash { 0% { opacity: 0; } 30% { opacity: .65; } 100% { opacity: 0; } }

.gf-toast {
  position: absolute; left: 50%; top: 18%; z-index: 4; transform: translate(-50%, 0); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px; background: rgba(179, 38, 30, .94); color: #fff; font: 700 1.05rem var(--font-display); white-space: nowrap;
}
.gf-toast.is-on { animation: gfToast 1.6s ease-out; }
@keyframes gfToast { 0% { opacity: 0; transform: translate(-50%, 16px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -14px); } }

/* ---------- Steuerleiste ---------- */
.gf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 12px 16px; border-top: 1px solid var(--night-line); background: linear-gradient(0deg, #1c150a, var(--night)); }
.gf-power { display: flex; align-items: center; gap: 10px; flex: 0 1 300px; min-width: 200px; }
.gf-power-label { font: 700 .72rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 223, 198, .65); }
.gf-power-track { position: relative; flex: 1; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--night-line); overflow: hidden; }
.gf-power-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #4ade80, var(--gold), #ff5a4a); clip-path: inset(0 100% 0 0); }
.gf-power-val { min-width: 3.2em; text-align: right; font: 700 .9rem var(--font-display); color: var(--gold-light); font-variant-numeric: tabular-nums; }
.gf-hint { flex: 1 1 260px; margin: 0; font-size: .82rem; line-height: 1.4; color: rgba(233, 223, 198, .6); }

/* ---------- Ergebnis-Dialog ---------- */
.gf-dialog {
  width: min(92vw, 440px); padding: 28px 30px 26px; text-align: center; color: #E9DFC6;
  background: linear-gradient(180deg, #1c150a, var(--night)); border: 2px solid var(--gold); border-radius: 22px;
  box-shadow: 0 0 0 6px rgba(255, 215, 106, .18), 0 30px 80px rgba(0, 0, 0, .6);
}
.gf-dialog::backdrop { background: rgba(10, 8, 4, .7); backdrop-filter: blur(4px); }
.gf-dialog[open] { animation: gfPop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes gfPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.gf-dialog h2 { margin: 0 0 .3em; font-size: clamp(1.6rem, 5.5vw, 2.3rem); background: var(--honey); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gf-dialog p { margin: 0 0 .6em; font-size: 1.05rem; }
.gf-dlg-score { font: 800 1.2rem var(--font-display); color: var(--gold-light); }
.gf-dlg-actions { margin-top: 18px; display: flex; justify-content: center; gap: 10px; }
.gf-dlg-actions [hidden] { display: none; }

/* ---------- Seitenleiste (Pro): Minimap, Wind, Schläger ---------- */
.gf-aside { display: grid; gap: 12px; padding: 12px 16px 16px; border-top: 1px solid var(--night-line); grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.gf-panel { padding: 12px; border-radius: 16px; background: rgba(255, 215, 106, .06); border: 1px solid var(--night-line); }
.gf-panel h3 { margin: 0 0 8px; font: 700 .72rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gf-panel.span-2 { grid-column: 1 / -1; }
.gf-minimap { display: block; width: 100%; height: 240px; margin-inline: auto; border-radius: 10px; border: 1px solid var(--night-line); }
.gf-wind { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gf-wind-val { font: 800 1.6rem var(--font-display); color: var(--gold-light); line-height: 1; }
.gf-wind-val small { display: block; font: 600 .68rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(233, 223, 198, .6); margin-top: 4px; }
.gf-wind-dial { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .05); display: grid; place-items: center; }
.gf-wind-dial svg { width: 34px; height: 34px; color: var(--gold); transition: transform .4s ease-out; }
.gf-wind.is-calm .gf-wind-dial svg { opacity: .3; }

.gf-clubbar { padding: 12px 16px 16px; border-top: 1px solid var(--night-line); }
.gf-clubbar h3 { margin: 0 0 8px; font: 700 .72rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gf-clubs { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gf-club {
  position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 2px 8px; align-items: center; text-align: left;
  min-height: 56px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font: inherit; color: #E9DFC6;
  background: rgba(255, 215, 106, .07); border: 1.5px solid var(--night-line); transition: background .15s, border-color .15s, box-shadow .15s;
}
.gf-club:hover { background: rgba(255, 215, 106, .16); border-color: rgba(255, 215, 106, .5); }
.gf-club[aria-pressed="true"] { background: rgba(255, 215, 106, .26); border-color: var(--gold); box-shadow: 0 0 14px rgba(227, 162, 26, .4); }
.gf-club:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gf-club-icon { grid-row: span 2; font-size: 1.5rem; text-align: center; }
.gf-club-name { font: 800 .95rem var(--font-display); line-height: 1.1; }
.gf-club-desc { font-size: .72rem; line-height: 1.25; color: rgba(233, 223, 198, .65); }
.gf-club-key { position: absolute; top: 5px; right: 7px; font: 700 .65rem var(--font-body); padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: rgba(233, 223, 198, .75); }
.gf-club-bars { grid-column: 2; display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; align-items: center; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(233, 223, 198, .5); }
.gf-club-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.gf-club-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, var(--gold)); }

/* ---------- Spielanleitung unter dem Spiel ---------- */
.gf-howto { margin-top: 28px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gf-howto .card h3 { margin-bottom: .4em; }
.gf-howto ul { margin: 0; padding-left: 1.1em; }
.gf-howto kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--gold-soft); font: 600 .85em var(--font-display); }
.gf-noscript { padding: 24px; margin: 16px 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 980px) {
  .gf-body.has-aside { grid-template-columns: minmax(0, 1fr) 280px; }
  .gf-aside { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--night-line); padding: 14px; }
  .gf-minimap { height: min(46vh, 330px); }
  .gf-clubs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  [data-golf="arcade"] .gf-stage { aspect-ratio: 4 / 3; }
  [data-golf="pro"] .gf-stage { height: clamp(360px, 62vh, 560px); }
  .gf-hud { padding: 10px 12px; gap: 8px 14px; }
  .gf-stats { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; width: 100%; gap: 4px 8px; }
  .gf-stat { min-width: 0; }
  .gf-stat dt { font-size: .6rem; letter-spacing: .06em; }
  .gf-stat dd { font-size: 1.1rem; }
  .gf-tools { width: 100%; margin-left: 0; }
  .gf-tools .btn { flex: 1; justify-content: center; }
  .gf-controls { padding: 10px 12px; }
  .gf-hint { display: none; }
  .gf-power { flex: 1 1 100%; }
  .gf-frame { border-radius: 18px; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .gf-flash.is-on, .gf-toast.is-on, .gf-dialog[open] { animation: none; }
  .gf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
  .gf-wind-dial svg { transition: none; }
}
