.golf { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 6px; padding: 6px; }
.golf .info { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.golf .info > div { padding: 2px 8px; font-weight: normal; background: #fff; box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; white-space: nowrap; }
.golf .info b { font-weight: bold; }
.golf .shot, .golf .over { position: relative; min-height: 0; min-width: 0; background: #000; box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff; padding: 2px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.golf canvas { image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; display: block; }
.golf .over { width: clamp(150px, 24vw, 300px); }
.golf .controls { grid-column: 1 / -1; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.golf .clubs { display: grid; grid-template-columns: repeat(7, 42px); gap: 3px; }
.golf .clubs .btn { min-width: 0; padding: 3px 0; font-size: 12px; }
.golf .clubs .btn.sel { box-shadow: inset 1px 1px 0 #808080, inset 2px 2px 0 #808080; background: #a8a8a8; color: #000080; }
.golf .meter { width: 26px; position: relative; background: #fff; box-shadow: inset 1px 1px 0 #808080, inset 2px 2px 0 #000, inset -1px -1px 0 #fff; min-height: 64px; }
.golf .meter .fill { position: absolute; left: 3px; right: 3px; bottom: 3px; background: linear-gradient(0deg, #ffd000, #e00000); }
.golf .meter .tick { position: absolute; left: 0; right: 0; height: 1px; background: #808080; }
.golf .swing { min-width: 110px; font-size: 14px; }
.golf .gauges { display: flex; gap: 6px; }
.golf .gauge { width: 70px; text-align: center; font-weight: normal; font-size: 11px; background: #c0c0c0; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; padding: 2px; }
.golf .gauge canvas { width: 54px; height: 54px; margin: 0 auto; image-rendering: auto; }
.golf .msg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(0,0,128,.85); color: #fff; padding: 4px 14px; font-size: 16px; white-space: nowrap; pointer-events: none; display: none; }
@media (max-width: 720px) {
  .golf { grid-template-columns: 1fr; grid-template-rows: auto minmax(140px, 1fr) minmax(110px, 26vh) auto; }
  .golf .over { width: auto; }
  .golf .clubs { grid-template-columns: repeat(7, minmax(34px, 1fr)); flex: 1 1 100%; }
  .golf .info > div { font-size: 11px; padding: 1px 4px; }
}
