/* Lochjagd (js/golfui.js): menu, lobby, the 3D round with its HUD, scorecard, final card. */

.lj { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #1f5133, #0d2116 70%); color: #f2fbf3; font-family: 'Nunito', sans-serif; overflow: auto; }
.lj-menu { max-width: 880px; margin: 0 auto; padding: 30px 18px 40px; box-sizing: border-box; }
.lj-menu h1 { margin: 0; font: 900 clamp(42px, 9vw, 70px) 'Nunito', sans-serif; letter-spacing: -.03em; }
.lj-menu h1 span { color: #a3e635; }
.lj-sub { color: #c4dcc8; font-weight: 700; margin: 6px 0 18px; max-width: 640px; line-height: 1.45; }
.lj-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.lj-actions form { display: flex; gap: 6px; }
.lj-btn { font: 800 15px 'Nunito', sans-serif; padding: 11px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer; }
.lj-btn:hover { background: rgba(255, 255, 255, .15); }
.lj-btn.go { background: #65a30d; border-color: #84cc16; box-shadow: 0 6px 18px -6px rgba(132, 204, 22, .6); }
.lj-btn.go:hover { background: #77bb12; }
.lj-actions input, .lj-link input { font: 800 15px 'Nunito', sans-serif; padding: 10px 13px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .28); color: #fff; }
.lj-actions input { width: 96px; text-transform: uppercase; letter-spacing: .12em; }
.lj-holes { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lj-holes li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(150deg, hsl(var(--h) 55% 38% / .55), hsl(var(--h) 40% 16% / .55)); border: 1px solid rgba(255, 255, 255, .1); }
.lj-holes b { grid-row: span 2; font: 900 26px 'Nunito', sans-serif; opacity: .9; }
.lj-holes span { font-weight: 900; }
.lj-holes i { font-style: normal; font-size: 13px; color: #d4e8d6; font-weight: 700; }
.lj-keys { color: #a9c4ad; font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.lj-keys b { color: #e7f5e9; }
.lj-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.lj-wait { color: #c4dcc8; font-weight: 800; }
.lj-lobby h1 span { letter-spacing: .08em; }
.lj-link { display: flex; gap: 8px; margin: 6px 0 16px; max-width: 640px; }
.lj-link input { flex: 1; min-width: 0; }
.lj-players { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-width: 480px; }
.lj-players li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.lj-players li.me { background: rgba(132, 204, 22, .16); }
.lj-players i { font-style: normal; color: #bef264; font-size: 13px; font-weight: 800; }
.lj-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

/* the round */
.lj-play { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lj-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.lj-canvas:active { cursor: grabbing; }
.lj-hud { position: absolute; top: 10px; left: 12px; pointer-events: none; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.lj-hole { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lj-hn { font: 900 15px 'Nunito', sans-serif; background: rgba(10, 30, 18, .6); padding: 3px 10px; border-radius: 999px; text-shadow: none; }
.lj-hname { font: 900 24px 'Nunito', sans-serif; }
.lj-par { font-style: normal; font-weight: 800; color: #d9f99d; }
.lj-strokes { font: 900 30px 'Nunito', sans-serif; margin-top: 2px; }
.lj-side { position: absolute; top: 58px; right: 10px; display: grid; gap: 6px; justify-items: end; pointer-events: none; }
.lj-timer { font: 900 18px 'Nunito', sans-serif; font-variant-numeric: tabular-nums; background: rgba(10, 30, 18, .6); padding: 3px 12px; border-radius: 999px; }
.lj-timer:empty { display: none; }
.lj-timer.warn { background: #b91c1c; }
.lj-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 3px; background: rgba(10, 30, 18, .55); border-radius: 12px; min-width: 170px; }
.lj-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; padding: 3px 6px; border-radius: 8px; }
.lj-list li.me { background: rgba(132, 204, 22, .22); }
.lj-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.lj-list span { font-weight: 900; min-width: 14px; text-align: right; }
.lj-list i { font-style: normal; color: #bbd6bf; font-weight: 800; min-width: 20px; text-align: right; }
.lj-tools { position: absolute; top: 8px; right: 10px; display: flex; gap: 6px; }
.lj-tool { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(10, 30, 18, .55); color: #fff; font: 900 16px 'Nunito', sans-serif; cursor: pointer; }
.lj-tool:hover { background: rgba(10, 30, 18, .8); }
.lj-power { position: absolute; left: 16px; bottom: 70px; width: 18px; height: 34%; min-height: 140px; border-radius: 10px; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .7); overflow: hidden; pointer-events: none; }
.lj-power[hidden] { display: none; }
.lj-power-in { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px; }
.lj-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-weight: 800; font-size: 14px; background: rgba(10, 30, 18, .55); padding: 6px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.lj-hint:empty { display: none; }
.lj-pop { position: absolute; top: 26%; left: 50%; transform: translateX(-50%) scale(.7); font: 900 clamp(30px, 7vw, 58px) 'Nunito', sans-serif; color: #fff; text-shadow: 0 4px 0 #14532d, 0 10px 24px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); white-space: nowrap; }
.lj-pop.on { opacity: 1; transform: translateX(-50%) scale(1); }
.lj-pop.good { color: #fde047; }
.lj-pop.bad { color: #7dd3fc; text-shadow: 0 4px 0 #0c4a6e, 0 10px 24px rgba(0, 0, 0, .45); }
.lj-tip { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); font-weight: 800; background: rgba(255, 255, 255, .9); color: #14532d; padding: 8px 16px; border-radius: 14px; opacity: 0; transition: opacity .4s; pointer-events: none; max-width: min(520px, calc(100% - 24px)); text-align: center; }
.lj-tip.on { opacity: 1; }
.lj-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 20, 10, .45); padding: 14px; }
.lj-over[hidden] { display: none; }
.lj-panel { background: #12301e; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 18px 18px 14px; max-width: 100%; box-shadow: 0 30px 60px -20px #000; }
.lj-panel h2 { margin: 0 0 10px; font: 900 26px 'Nunito', sans-serif; }
.lj-next { margin: 10px 0 0; color: #c4dcc8; font-weight: 800; }
.lj-card-wrap { overflow-x: auto; max-width: 100%; }
.lj-card { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 100%; }
.lj-card th, .lj-card td { padding: 6px 7px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lj-card tbody th { text-align: left; white-space: nowrap; font-weight: 900; }
.lj-card tbody th .lj-dot { margin-right: 6px; width: 10px; height: 10px; }
.lj-card tr.par td, .lj-card tr.par th { color: #a9c4ad; font-weight: 700; }
.lj-card tr.me { background: rgba(132, 204, 22, .14); }
.lj-card tr.out { opacity: .5; }
.lj-card td.ace { background: #facc15; color: #422006; font-weight: 900; border-radius: 50%; }
.lj-card td.under { color: #fde047; font-weight: 900; }
.lj-card td.par { color: #fff; }
.lj-card td.over { color: #fdba74; }
.lj-card td.bad { color: #fca5a5; }
.lj-card td.sum, .lj-card td.pts { font-weight: 900; }
.lj-card td.pts { color: #bef264; }
.lj-final .lj-card-wrap { background: rgba(0, 0, 0, .2); border-radius: 14px; padding: 6px; }
@media (max-width: 600px) {
	.lj-hname { font-size: 19px; }
	.lj-strokes { font-size: 24px; }
	.lj-side { top: 54px; }
	.lj-list { min-width: 140px; font-size: 13px; }
	.lj-hud { max-width: calc(100% - 150px); }
}
