:root { --pink: #F6A5C0; --mint: #9FE2BF; --yellow: #FFD54A; --lilac: #B9A3E3; --red: #E8433A; --ink: #20402a; --green: #5BBF4A;
  --gs-bg: #fffdf5; --gs-ink: #20402a; --gs-accent: #E8433A; --gs-radius: 16px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif, "Noto Color Emoji"; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #BFE6FF; color: var(--ink); overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
[hidden] { display: none !important; }

#hud { position: fixed; inset: 0; pointer-events: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#hud button { pointer-events: auto; }
#top { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: #fffdf5ee; border-radius: 999px; padding: 6px 14px; font-size: 14px; box-shadow: 0 3px 0 #0002; white-space: nowrap; }
#twist-lbl { opacity: .7; } #clock { font-variant-numeric: tabular-nums; font-weight: 800; } #clock.low { color: var(--red); }
#board { position: absolute; top: calc(52px + env(safe-area-inset-top)); left: 8px; display: grid; gap: 3px; font-size: 12px; font-weight: 700; }
#board div { background: #fffdf5dd; border-radius: 10px; padding: 3px 8px 3px 5px; display: flex; gap: 5px; align-items: center; }
#board i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px #0003; }
#board .h { color: var(--red); font-size: 10px; letter-spacing: -1px; } #board .out { opacity: .45; } #board .in { background: #fff7c9; }
#pause-btn { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; width: 46px; height: 46px; border-radius: 14px; background: #fffdf5ee; font-size: 18px; box-shadow: 0 3px 0 #0002; }
#me { position: absolute; left: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 2px; font-weight: 800; text-shadow: 0 2px 0 #fff8; }
#hearts { font-size: 26px; color: var(--red); letter-spacing: 1px; text-shadow: 0 2px 0 #0003; } #hearts s { text-decoration: none; opacity: .28; filter: grayscale(1); }
#hearts.hit { animation: pop .4s; } @keyframes pop { 30% { transform: scale(1.5) rotate(-8deg); } }
#strokes { font-size: 15px; background: #fffdf5dd; border-radius: 10px; padding: 2px 8px; justify-self: start; text-shadow: none; }
#club-btn { position: absolute; right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 84px; height: 84px; border-radius: 50%; background: #fffdf5; box-shadow: 0 5px 0 #0003; display: grid; place-content: center; line-height: 1.05; border: 4px solid var(--pink); }
#club-btn small { font-size: 10px; opacity: .6; text-transform: uppercase; } #club-btn b { font-size: 16px; } #club-btn i { font-size: 10px; font-style: normal; color: var(--green); font-weight: 800; }
#club-btn.manual i { color: var(--red); }
#prompt { position: absolute; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #20402acc; color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: opacity .2s; max-width: 96vw; }
#prompt:empty { opacity: 0; }
#feed { position: absolute; top: calc(52px + env(safe-area-inset-top)); right: 8px; display: grid; gap: 4px; justify-items: end; font-size: 12px; font-weight: 700; max-width: 62vw; }
#feed div { background: #fffdf5ee; border-radius: 10px; padding: 4px 9px; animation: feed 4s forwards; text-align: right; }
@keyframes feed { 0% { transform: translateX(30px); opacity: 0; } 6%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
#big { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); text-align: center; font-size: 44px; font-weight: 900; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); line-height: 1.05; width: 92vw; }
#big small { display: block; font-size: 17px; -webkit-text-stroke: 0; text-shadow: none; background: #20402acc; border-radius: 999px; padding: 6px 14px; margin: 12px auto 0; width: fit-content; max-width: 90vw; font-weight: 700; }
#big.pop { animation: big .35s; } @keyframes big { 0% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
#power { position: absolute; left: 50%; bottom: calc(160px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 180px; height: 16px; border-radius: 99px; background: #fffdf5; border: 3px solid var(--ink); overflow: hidden; }
#power i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--red)); }
.tagm { position: absolute; left: 0; top: 0; font-size: 11px; font-weight: 800; white-space: nowrap; will-change: transform; display: flex; align-items: center; gap: 3px; background: #fffdf5dd; border-radius: 8px; padding: 1px 6px; border-bottom: 3px solid var(--c); }
.tagm em { color: var(--red); font-style: normal; font-size: 9px; }
.tagm.edge { background: var(--c); border: 3px solid #fff; border-radius: 50%; width: 38px; height: 38px; padding: 0; justify-content: center; box-shadow: 0 3px 0 #0003; font-size: 12px; }
.tagm.edge em { display: none; } .tagm.edge.near { border-color: var(--red); animation: warn .35s infinite alternate; } @keyframes warn { to { transform-origin: center; filter: brightness(1.3); box-shadow: 0 0 0 6px #e8433a66; } }
.tagm.edge::after { content: ""; position: absolute; inset: -11px; background: conic-gradient(from calc(var(--a) - 14deg), var(--red) 0 28deg, transparent 0); border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 22px, #000 23px); mask: radial-gradient(circle, transparent 22px, #000 23px); }

.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 14px; background: #bfe6ff55; overflow-y: auto; z-index: 5; }
#title { background: none; }
.card { background: #fffdf5; border-radius: 24px; padding: 20px 20px 16px; width: min(420px, 100%); text-align: center; box-shadow: 0 8px 0 #0002; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.card > * { min-width: 0; }
#final h2 { font-size: 22px; } #final .card { margin: auto; }
h1 { margin: 0; font-size: 62px; line-height: .9; font-weight: 900; color: var(--green); letter-spacing: -2px; -webkit-text-stroke: 2px var(--ink); text-shadow: 0 5px 0 var(--ink); }
h1 span { color: var(--red); display: inline-block; transform: rotate(-5deg); }
h2 { margin: 0; font-size: 26px; } .tag { margin: 6px 0; font-weight: 700; } .sub { margin: 0; font-size: 13px; opacity: .75; }
.primary { background: var(--red); color: #fff; font-weight: 900; font-size: 21px; border-radius: 16px; padding: 14px; box-shadow: 0 5px 0 #a82b25; min-height: 54px; }
.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 #a82b25; }
.ghost { background: #eaf3df; border-radius: 12px; padding: 11px; font-weight: 700; min-height: 44px; font-size: 14px; }
.foot { font-size: 12px; margin: 2px 0 0; } .foot a, .sub a { color: inherit; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
td, th { padding: 5px 4px; text-align: center; } th { font-size: 11px; opacity: .6; font-weight: 700; } td:first-child, th:first-child { text-align: left; font-weight: 800; }
tr.me td { background: #fff1b8; } td i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 5px; }
td.t { font-weight: 900; font-size: 16px; }
#vote p { margin: 4px 0; font-size: 13px; font-weight: 700; } .opts { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.opts button { flex: none; background: #eaf3df; border-radius: 999px; padding: 9px 12px; font-size: 13px; font-weight: 700; min-height: 40px; }
.how { position: fixed; inset: 10px; margin: auto; max-width: 520px; max-height: calc(100% - 20px); overflow-y: auto; background: #fffdf5; border-radius: 22px; padding: 18px 20px; z-index: 20; box-shadow: 0 0 0 100vmax #20402a99; text-align: left; font-size: 14px; line-height: 1.4; user-select: text; -webkit-user-select: text; }
.how h2 { font-size: 22px; padding-right: 44px; } .how h3 { margin: 12px 0 4px; font-size: 15px; } .how p, .how ul, .how dl { margin: 6px 0; } .how ul { padding-left: 18px; } .how dt { font-weight: 800; margin-top: 6px; } .how dd { margin: 0; }
.how-close { position: sticky; float: right; top: 0; width: 44px; height: 44px; border-radius: 50%; background: #eaf3df; font-size: 24px; font-weight: 800; }
body:not(.touch) #club-btn { width: 96px; }
@media (min-width: 800px) { #board, #feed { font-size: 14px; } #top { font-size: 16px; } #big { font-size: 64px; } }

/* online */
.primary.alt { background: #2f7fd6; box-shadow: 0 5px 0 #1f5a9c; font-size: 18px; margin-top: 4px; }
.primary.alt:active { box-shadow: 0 2px 0 #1f5a9c; }
.primary:disabled { opacity: 0.55; }
#mp-back { position: fixed; left: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 60; background: #fffdf5; color: var(--ink); border: 0; border-radius: 12px; padding: 9px 13px; font: inherit; font-weight: 800; min-height: 40px; box-shadow: 0 3px 0 #0002; }
/* the room screens (the kit's lobby) in the toy country club's look: cream cards, green ink, red buttons. "html" outranks the kit's own CSS, which is added to the page after this file */
html .mp-lobby { --mp-bg: #c9eaffef; --mp-card: #fffdf5; --mp-ink: #20402a; --mp-dim: #5d7a62; --mp-accent: #E8433A; --mp-accent-ink: #fff; --mp-danger: #c7322a; --mp-line: #20402a22;
  font-family: inherit; background: var(--mp-bg) repeating-linear-gradient(90deg, #ffffff22 0 40px, transparent 40px 80px); }
.mp-lobby .mp-card { border: 0; border-radius: 24px; box-shadow: 0 8px 0 #0002; position: relative; overflow: hidden; padding-top: 30px; }
.mp-lobby .mp-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(135deg, #F6A5C0 0 12px, #fffdf5 12px 18px, #9FE2BF 18px 30px, #fffdf5 30px 36px); }
.mp-lobby .mp-card h1 { font-size: 34px; font-weight: 900; color: var(--green); -webkit-text-stroke: 1.5px var(--ink); text-shadow: 0 3px 0 var(--ink); letter-spacing: -1px; line-height: 1; margin-bottom: 8px; }
.mp-lobby .mp-card h2 { color: var(--ink); opacity: .7; font-weight: 800; }
.mp-lobby .mp-tag { font-weight: 700; }
.mp-lobby .mp-btn, .mp-lobby .mp-mini { font-family: inherit; font-weight: 800; }
.mp-lobby .mp-btn { background: #eaf3df; border: 0; border-radius: 12px; box-shadow: 0 3px 0 #0001; }
.mp-lobby .mp-btn:hover { background: #dfeed2; }
.mp-lobby .mp-btn.mp-go { background: var(--red); color: #fff; border-radius: 16px; font-size: 18px; min-height: 52px; box-shadow: 0 5px 0 #a82b25; }
.mp-lobby .mp-btn.mp-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #a82b25; }
.mp-lobby .mp-mini { border-color: #20402a33; }
html .mp-lobby input[type=text] { background: #fff; border: 2px solid #cfe5bf; border-radius: 12px; color: var(--ink); font-weight: 700; }
.mp-lobby .mp-codebox { background: #fff7c9; border: 2px dashed #FFD54A; }
.mp-lobby .mp-list li { background: #eef7e6; border-radius: 12px; font-weight: 700; }
.mp-lobby .mp-dot.mp-ready { background: var(--green); }
.mp-lobby .mp-badge { border-radius: 999px; font-weight: 800; }
.mp-lobby .mp-badge.mp-host { color: #8a6a00; border-color: #FFD54A; background: #fff7c9; }
.mp-lobby .mp-how b, .mp-lobby .mp-tag b { color: var(--red); }
html .mp-ptt { --mp-accent: #FFD54A; background: #20402acc; border-width: 3px; font-family: inherit; font-weight: 800; }
html .mp-ptt.mp-on { color: var(--ink); }

/* perks on the scorecard */
#perks .perk-row { display: grid; gap: 7px; margin: 4px 0 10px; }
#perks button { display: block; text-align: left; background: #eef7e6; border: 2px solid #cfe5bf; border-radius: 13px; padding: 8px 11px; font: inherit; color: var(--ink, #1f3b24); min-height: 48px; }
#perks button b { display: block; font-size: 16px; }
#perks button small { display: block; font-size: 12.5px; opacity: 0.8; line-height: 1.25; }
#perks button small i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
#perks button.mine { background: #fff7d6; border-color: #FFD54A; box-shadow: 0 3px 0 #d9b12f; cursor: pointer; }
#perks button.gone { opacity: 0.55; }
#perks button:disabled { cursor: default; }
.pk { font-style: normal; font-size: 11px; margin-left: 5px; color: #c9861a; letter-spacing: 1px; }

/* round 3: lined up on your ball, quick and big hits, a nine-hole card */
#prompt.ready { background: #FFE14A; color: #20402a; box-shadow: 0 3px 0 #0003; }
#prompt.fight { background: #E8433Aee; }
#power { overflow: visible; } #power i { border-radius: 99px; max-width: 100%; }
#power b { display: none; position: absolute; left: 70%; top: -5px; bottom: -5px; border-left: 3px solid var(--ink); padding-left: 4px; font-size: 10px; line-height: 20px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 var(--ink), 0 0 3px var(--ink); }
#power.fight b { display: block; }
#card-table table, #final-table table { font-size: 13px; } #card-table td, #card-table th, #final-table td, #final-table th { padding: 5px 2px; }
#card-table td:first-child, #final-table td:first-child { white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
#card-table .pk, #final-table .pk { display: block; margin: 1px 0 0 16px; line-height: 1; font-size: 10px; letter-spacing: 0; }
/* today's board on the final card (the shared game services panel, in the country-club look) */
#board-wrap { display: grid; gap: 8px; --gs-card: #eef7e6; --gs-ink: #20402a; --gs-muted: #5d7a63; --gs-line: #cfe5bf; --gs-hi: #c9861a; --gs-accent: #E8433A; text-align: left; }
#board-wrap .sub { text-align: center; margin: 0; }
#final-board .gs-panel { max-width: none; }
.sub.hi { color: #c9861a; font-weight: 700; }
#perks button b em { font-style: normal; color: #c9861a; }
#hearts .helm { color: #7a8794; margin-left: 4px; font-weight: 400; }

/* the share picture, over the final card */
#shot { z-index: 30; background: #20402acc; }
#shot .card { max-width: 400px; }
#shot-img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #bfe6ff; }
#shot a.primary { display: grid; place-items: center; text-decoration: none; font-size: 16px; min-height: 44px; padding: 10px; }
#shot .row2 { grid-template-columns: 1fr 1fr; margin-top: 8px; }

/* the golfer picker: a sheet at the bottom, your golfer close up above it */
#dress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
#dress[hidden] { display: none; }
#dress .sheet { pointer-events: auto; width: min(420px, 100%); background: #fffdf5f2; border-radius: 20px 20px 16px 16px; padding: 12px 14px 10px; box-shadow: 0 -4px 20px #0003; }
#dress h2 { margin: 0 0 6px; font-size: 20px; text-align: center; }
#dress-rows { display: grid; gap: 5px; }
.drow { display: grid; grid-template-columns: 76px 44px 1fr 44px; align-items: center; gap: 6px; }
.drow span { font-weight: 800; font-size: 14px; color: #3a5a34; }
.drow b { text-align: center; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow button { min-height: 40px; border-radius: 12px; background: #eaf3df; font-size: 24px; font-weight: 900; line-height: 1; }
.drow button:active { transform: translateY(2px); }
#dress .row3 { display: grid; grid-template-columns: 1fr 0.8fr 1.3fr; gap: 6px; margin-top: 9px; }
#dress .row3 .primary { font-size: 17px; min-height: 46px; padding: 8px; }
#dress .sub { margin: 7px 0 0; font-size: 12px; text-align: center; }
@media (min-width: 900px) { #dress { justify-content: flex-start; align-items: center; top: 0; padding-left: 6vw; } #dress .sheet { border-radius: 20px; } }
