/* Crazy Golf: what only the clubhouse has. The rest comes from /rooms/room.css. */
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
[hidden] { display: none !important; }

/* the scorecard: between holes, on the button, and on the result card */
.gf-card { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(2, 8, 10, .45); }
.gf-card .card { max-width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px 20px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(14, 38, 42, .96), rgba(7, 20, 24, .96)); border: 1px solid rgba(232, 192, 99, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); color: #eef2ee; text-align: center; }
.gf-card .eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #e8c063; }
.gf-card h2 { margin: 4px 0 12px; font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 24px; }
.gf-card .go { margin-top: 12px; }
.gf-next { margin: 10px 0 0; color: #c9d6d2; font-size: 14px; }
.gf-sc-wrap { display: grid; gap: 10px; }
.gf-sc { width: 100%; border-collapse: separate; border-spacing: 2px; font-variant-numeric: tabular-nums; font-size: 13px; }
.gf-sc th, .gf-sc td { padding: 4px 3px; min-width: 22px; text-align: center; border-radius: 6px; }
.gf-sc thead th { color: #9fb5b0; font-weight: 600; font-size: 12px; }
.gf-sc .who { text-align: left; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; color: #dfe8e4; font-weight: 600; }
.gf-sc .par td, .gf-sc .par th { color: #9fb5b0; }
.gf-sc tbody tr:not(.par) td { background: rgba(255, 255, 255, .05); }
.gf-sc .sum { font-weight: 700; color: #f1d59a; background: rgba(232, 192, 99, .1) !important; }
.gf-sc .now { box-shadow: inset 0 0 0 1px rgba(232, 192, 99, .7); }
.gf-sc td span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; }
.gf-sc td.ace span { background: #e8c063; color: #1c1404; font-weight: 800; }
.gf-sc td.eagle span { background: #ef6a5a; color: #fff; box-shadow: 0 0 0 2px #0a1a1d, 0 0 0 3px #ef6a5a; }
.gf-sc td.birdie span { box-shadow: 0 0 0 1.5px #ef6a5a; color: #ffb3a8; }
.gf-sc td.bogey span { border-radius: 3px; box-shadow: 0 0 0 1.5px #6fb7ff; color: #bfe0ff; }
.gf-sc td.double span { border-radius: 3px; background: rgba(111, 183, 255, .3); box-shadow: 0 0 0 1.5px #6fb7ff; }
.gf-sc tr.gone { opacity: .5; }
.gf-sc .dot, .gf-totals .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.gf-totals { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gf-totals li { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.gf-totals li:first-child { border-color: rgba(232, 192, 99, .55); }
.gf-totals b { font-size: 18px; color: #fff; }
.gf-totals small { color: #e8c063; }
.gf-totals li.gone small { color: #9fb5b0; }
.over .card .gf-sc-wrap { margin: 12px 0 4px; }
@media (max-width: 560px) {
  .gf-sc { font-size: 11px; border-spacing: 1px; }
  .gf-sc th, .gf-sc td { padding: 3px 1px; min-width: 17px; }
  .gf-sc .who { max-width: 64px; }
  .gf-sc td span { min-width: 16px; height: 16px; }
  .gf-card .card { padding: 14px 10px 16px; }
}

/* the pro shop's swatches */
.gf-sw-ball, .gf-sw-putter, .gf-sw-flag, .gf-sw-trail { min-height: 90px; height: 100%; background: radial-gradient(circle at 50% 70%, #3f8a4e, #14341f); }
.gf-sw-ball i { width: 46px; height: 46px; border-radius: 50%; background: var(--a); box-shadow: inset -6px -8px 12px rgba(0, 0, 0, .3), inset 4px 5px 8px rgba(255, 255, 255, .35), 0 6px 8px rgba(0, 0, 0, .45); }
.gf-sw-ball.p-stripes i { background: repeating-linear-gradient(0deg, var(--a) 0 7px, var(--b) 7px 14px); }
.gf-sw-ball.p-spots i { background: radial-gradient(circle at 30% 30%, var(--b) 0 5px, transparent 6px), radial-gradient(circle at 70% 45%, var(--b) 0 5px, transparent 6px),
  radial-gradient(circle at 45% 75%, var(--b) 0 5px, transparent 6px), var(--a); }
.gf-sw-ball.p-marble i { background: conic-gradient(from 40deg, var(--a), var(--b), var(--a), var(--b), var(--a)); }
.gf-sw-ball.p-rainbow i { background: conic-gradient(#e33, #fb3, #ee4, #4c4, #39f, #93f, #e33); }
.gf-sw-ball.glow i { box-shadow: 0 0 18px rgba(255, 120, 20, .8), inset -6px -8px 12px rgba(0, 0, 0, .4); }
.gf-sw-putter { position: relative; }
.gf-sw-putter i { position: absolute; left: 50%; top: 10px; width: 6px; height: 56px; transform: translateX(-50%) rotate(12deg); background: var(--shaft); border-radius: 3px; }
.gf-sw-putter b { position: absolute; left: calc(50% + 4px); top: 8px; width: 10px; height: 22px; transform: translateX(-50%) rotate(12deg); background: var(--grip); border-radius: 4px; }
.gf-sw-putter u { position: absolute; left: calc(50% - 22px); bottom: 14px; width: 40px; height: 14px; background: var(--head); border-radius: 6px; box-shadow: 0 4px 6px rgba(0, 0, 0, .45); }
.gf-sw-putter.mallet u { height: 20px; border-radius: 12px 12px 6px 6px; }
.gf-sw-putter.stripes i { background: repeating-linear-gradient(0deg, var(--shaft) 0 6px, var(--grip) 6px 12px); }
.gf-sw-flag { position: relative; }
.gf-sw-flag i { position: absolute; left: calc(50% - 16px); top: 10px; width: 4px; height: 66px; background: var(--pole); border-radius: 2px; }
.gf-sw-flag b { position: absolute; left: calc(50% - 12px); top: 12px; width: 38px; height: 24px; background: var(--cloth); border-radius: 2px 8px 8px 2px; }
.gf-sw-flag.p-check b { background: repeating-conic-gradient(var(--cloth) 0 25%, var(--cloth2) 0 50%) 0 0 / 12px 12px; }
.gf-sw-flag.p-bunting b { background: repeating-linear-gradient(90deg, var(--cloth) 0 9px, var(--cloth2) 9px 18px); }
.gf-sw-flag.p-skull b { background: radial-gradient(circle at 50% 45%, var(--cloth2) 0 6px, transparent 7px), var(--cloth); }
.gf-sw-trail { position: relative; }
.gf-sw-trail i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .85; }
.gf-sw-trail i:nth-child(2) { opacity: .6; } .gf-sw-trail i:nth-child(3) { opacity: .35; }
.gf-sw-trail b { width: 22px; height: 22px; border-radius: 50%; background: #f2efe6; box-shadow: inset -4px -5px 8px rgba(0, 0, 0, .3), 0 4px 6px rgba(0, 0, 0, .4); }
.gf-sw-trail.k-none i { visibility: hidden; }
.gf-sw-trail.k-sparkle i { background: #ffd56a; box-shadow: 0 0 8px #ffd56a; }
.gf-sw-trail.k-rainbow i:nth-child(1) { background: #e44; } .gf-sw-trail.k-rainbow i:nth-child(2) { background: #4c4; } .gf-sw-trail.k-rainbow i:nth-child(3) { background: #49f; }

/* a round for one has one side on the scoreboard */
#hud .score .side:empty { display: none; }
