/* Guess the Fee v2. Scoped to .gf2 / body.gf2-page so nothing leaks into other pages. Shares the Higher / Lower v2 look. */
body.gf2-page {
  background:
    radial-gradient(70% 38% at 10% 0%, rgba(74, 163, 255, 0.14), transparent 70%),
    radial-gradient(70% 38% at 92% 0%, rgba(255, 138, 61, 0.11), transparent 70%),
    #060a12;
  background-attachment: fixed;
}
@media (max-width: 640px) { body.gf2-page .site-header, body.gf2-page .circuit-bar { position: static; } }
.gf2-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gf2, .gf2-modal {
  --panel: #0e1424; --panel2: #141c32; --line: rgba(255, 255, 255, .12);
  --txt: #f3f5fa; --dim: #9aa6bd; --acc: #4aa3ff; --warn: #f5b83d; --ink: #0a0d14;
  --t-bull: #38c977; --t-close: #7ad66a; --t-ok: #f5d33d; --t-off: #ff9a3d; --t-far: #ff6b6b;
  color: var(--txt);
}
body.gf2-cb .gf2, body.gf2-cb .gf2-modal {
  --acc: #f2d03b; --t-bull: #4aa3ff; --t-close: #7cc0ff; --t-ok: #f2d03b; --t-off: #ff8a3d; --t-far: #8b93a8;
}
.gf2 { max-width: 440px; margin: 0 auto; padding: 6px 0 90px; }
.gf2 button, .gf2 input { font-family: inherit; }
.gf2 [hidden] { display: none !important; }
.gf2-preview { background: rgba(245, 184, 61, .1); border: 1px dashed rgba(245, 184, 61, .6); color: #ffe2a8; border-radius: 8px; padding: 8px 12px; font-size: 12px; line-height: 1.4; margin: 4px 0 10px; }
.gf2-h2h { background: rgba(74, 163, 255, .12); border: 1.5px solid var(--acc); border-radius: 10px; padding: 10px 12px; text-align: center; font-size: 13px; font-weight: 700; margin: 4px 0 10px; }

/* HUD */
.gf2-hud { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 2px 6px; position: relative; }
.gf2-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; gap: 8px; }
.gf2.endless .gf2-row { justify-content: center; }
.gf2-brand { padding: 0 40px; font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 28px; line-height: 1; text-align: center; }
.gf2-brand small { display: block; font-family: var(--font-body, Inter, sans-serif); font-size: 9.5px; letter-spacing: .22em; font-weight: 700; color: var(--acc); margin-top: 5px; }
.gf2-modes { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.gf2-modes button { border: 0; background: transparent; color: var(--dim); font-weight: 800; font-size: 12.5px; letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 34px; }
.gf2-modes button[aria-selected="true"] { background: var(--txt); color: var(--ink); }
.gf2-datenav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gf2-datenav button, .gf2-icons button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--txt); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gf2-datenav button:disabled { opacity: .3; cursor: not-allowed; }
.gf2-datenav button:not(:disabled):hover, .gf2-icons button:hover { border-color: var(--acc); }
.gf2-datenav span { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 15px; color: var(--acc); min-width: 84px; text-align: center; white-space: nowrap; }
.gf2-icons { position: absolute; right: 2px; top: 4px; display: flex; gap: 6px; }
.gf2 :focus-visible, .gf2-modal :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Progress, score, streak */
.gf2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 8px; min-height: 30px; }
.gf2-rnd { flex: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--dim); }
.gf2-streakpill { flex: none; }
.gf2-prog { display: flex; gap: 3px; flex: 1; min-width: 0; }
.gf2-prog i { flex: 1; height: 8px; border-radius: 3px; background: #232c45; transition: background .25s, transform .25s; }
.gf2-prog i.now { background: #5b6788; transform: scaleY(1.5); }
.gf2-prog i.t-bull { background: var(--t-bull); } .gf2-prog i.t-close { background: var(--t-close); } .gf2-prog i.t-ok { background: var(--t-ok); }
.gf2-prog i.t-off { background: var(--t-off); } .gf2-prog i.t-far { background: var(--t-far); }
.gf2-score { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 30px; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex: none; font-variant-numeric: tabular-nums; }
.gf2-score small { font-family: var(--font-body, Inter, sans-serif); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.gf2-lives { display: flex; gap: 4px; flex: none; }
.gf2-lives i { font-style: normal; font-size: 18px; line-height: 1; color: #ff5d73; transition: transform .3s, opacity .3s, filter .3s; }
.gf2-lives i.lost { filter: grayscale(1) brightness(.5); opacity: .55; transform: scale(.8); }
.gf2-catline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--dim); margin: 0 2px 8px; min-height: 16px; }
.gf2-catline b { color: var(--acc); font-weight: 800; }
.gf2-streakpill { background: rgba(255, 138, 61, .15); border: 1px solid #ff8a3d; color: #ffb27a; border-radius: 999px; padding: 2px 9px; font-size: 10.5px; letter-spacing: .1em; }

/* Transfer card */
.gf2-card { position: relative; background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 12px 12px; text-align: center; transition: border-color .25s, box-shadow .25s; }
.gf2-card.enter { animation: gfEnter .4s ease backwards; }
.gf2-card.t-bull, .gf2-card.t-close { border-color: var(--t-bull); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-bull) 16%, transparent); }
.gf2-card.t-ok { border-color: var(--t-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-ok) 16%, transparent); }
.gf2-card.t-off { border-color: var(--t-off); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-off) 16%, transparent); }
.gf2-card.t-far { border-color: var(--t-far); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-far) 16%, transparent); }
.gf2-chips { display: flex; justify-content: center; gap: 6px; min-height: 22px; }
.gf2-tag { font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; background: var(--panel2); color: var(--dim); border: 1px solid var(--line); }
.gf2-tag.new { background: var(--warn); color: var(--ink); border-color: var(--warn); }
.gf2-name { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 29px; line-height: 1.05; text-transform: uppercase; margin: 4px 0 2px; overflow-wrap: anywhere; }
.gf2-sub { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.gf2-move { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 10px; }
.gf2-club { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-width: 0; max-width: 120px; }
.gf2-club svg { width: 52px; height: 52px; display: block; }
.gf2-club-name { font-size: 12.5px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.gf2-club-role { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.gf2-arrow { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 30px; color: var(--dim); padding-top: 12px; }

/* Guess controls */
.gf2-guess { margin-top: 10px; }
.gf2-bigval { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: 2px 12px; }
.gf2-bigval:focus-within { border-color: var(--acc); }
.gf2-bigval span { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 34px; color: var(--dim); line-height: 1; }
.gf2-bigval input { width: 6.2ch; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--txt); font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 46px; text-align: center; line-height: 1.1; padding: 2px 0; -moz-appearance: textfield; }
.gf2-bigval input::placeholder { color: #4b5875; }
.gf2-slidewrap { position: relative; padding: 8px 6px 20px; }
.gf2-slide { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
.gf2-slide::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, #2a3555, #3a4a78); }
.gf2-slide::-moz-range-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, #2a3555, #3a4a78); }
.gf2-slide::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--txt); border: 4px solid var(--acc); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.gf2-slide::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--txt); border: 4px solid var(--acc); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.gf2-slide.untouched::-webkit-slider-thumb { background: #5b6788; border-color: #8b97b5; }
.gf2-slide.untouched::-moz-range-thumb { background: #5b6788; border-color: #8b97b5; }
.gf2-ticks { position: absolute; left: 21px; right: 21px; bottom: 2px; height: 16px; pointer-events: none; }
.gf2-ticks span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: #7d89a3; font-weight: 700; white-space: nowrap; }
.gf2-quick { display: flex; gap: 8px; justify-content: center; margin: 0 0 10px; }
.gf2-quick button { flex: 1; max-width: 90px; min-height: 40px; padding: 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--txt); font-weight: 800; font-size: 13px; cursor: pointer; }
.gf2-quick button:hover { border-color: var(--acc); }
.gf2-lock { width: 100%; min-height: 50px; font-weight: 900; font-size: 16px; border-radius: 14px; border: 0; background: var(--acc); color: var(--ink); cursor: pointer; transition: transform .08s, opacity .2s; }
.gf2-lock:disabled { opacity: .4; cursor: not-allowed; }
.gf2-lock:active:not(:disabled) { transform: scale(.98); }
.gf2-keys { text-align: center; font-size: 11px; color: #6c7894; margin-top: 8px; }
.gf2-keys kbd { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-family: inherit; font-size: 11px; }
@media (hover: none) { .gf2-keys { display: none; } }

.gf2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reveal */
.gf2-reveal { margin-top: 12px; animation: gfRise .35s ease backwards; }
.gf2-fee { text-align: center; }
.gf2-fee small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--dim); }
.gf2-fee b { display: block; font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 58px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gf2-verdict { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.gf2-vlabel { font-weight: 900; font-size: 15px; border-radius: 999px; padding: 5px 12px; color: var(--ink); }
.gf2-vlabel.t-bull { background: var(--t-bull); } .gf2-vlabel.t-close { background: var(--t-close); } .gf2-vlabel.t-ok { background: var(--t-ok); }
.gf2-vlabel.t-off { background: var(--t-off); } .gf2-vlabel.t-far { background: var(--t-far); }
.gf2-miss { font-size: 13px; color: var(--dim); font-weight: 700; }
.gf2-pts { text-align: center; font-weight: 800; font-size: 14px; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.gf2-pts em { font-style: normal; color: #ffb27a; }
.gf2-fact { text-align: center; font-size: 12.5px; color: #cfd6e6; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.gf2-track { position: relative; height: 64px; margin: 8px 8px 6px; }
.gf2-rail { position: absolute; left: 0; right: 0; top: 24px; height: 6px; border-radius: 4px; background: #232c45; }
.gf2-span { position: absolute; top: 24px; height: 6px; border-radius: 4px; opacity: .8; transition: width .6s ease, left .6s ease; }
.gf2-mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .6s cubic-bezier(.2, .8, .2, 1); }
.gf2-mk span { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); line-height: 14px; }
.gf2-mk i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--txt); background: var(--panel); margin-top: 3px; }
.gf2-mk.fee i { background: var(--txt); border-color: var(--txt); }
.gf2-mk.you i { border-color: var(--acc); background: var(--acc); }
.gf2-mk.low { top: 30px; flex-direction: column-reverse; }
.gf2-mk.low i { margin: 0 0 3px; }
.gf2-axis { position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; pointer-events: none; }
.gf2-axis span { position: absolute; transform: translateX(-50%); font-size: 9.5px; color: #66728e; font-weight: 700; }
.gf2-next { width: 100%; min-height: 50px; margin-top: 10px; font-weight: 900; font-size: 16px; border-radius: 14px; border: 2px solid var(--txt); background: transparent; color: var(--txt); cursor: pointer; }
.gf2-next:hover { background: var(--txt); color: var(--ink); }

/* Result */
.gf2-result { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; text-align: center; margin: 12px 0; animation: gfRise .5s ease backwards; }
.gf2-kicker { font-size: 10.5px; letter-spacing: .22em; font-weight: 800; color: var(--acc); text-transform: uppercase; }
.gf2-grade { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 34px; line-height: 1.1; margin: 6px 0 2px; }
.gf2-bigscore { font-family: var(--font-display, 'Jersey 15', sans-serif); font-size: 56px; line-height: 1; margin: 2px 0; }
.gf2-bigscore small { font-size: 22px; color: var(--dim); }
.gf2-rsub { font-size: 13px; color: var(--dim); margin: 0 0 10px; }
.gf2-emoji { font-size: 22px; line-height: 1.5; letter-spacing: 2px; margin: 6px 0 10px; }
.gf2-minstats { display: flex; justify-content: center; gap: 18px; margin: 0 0 12px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.gf2-minstats b { display: block; font-size: 20px; color: var(--txt); letter-spacing: 0; }
.gf2-acts { display: flex; gap: 8px; }
.gf2-acts button { flex: 1; font-weight: 800; font-size: 14px; padding: 13px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; background: transparent; color: var(--txt); min-height: 46px; }
.gf2-acts button.primary { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.gf2-acts button:hover { filter: brightness(1.1); }
.gf2-h2hres { font-size: 13px; font-weight: 800; background: rgba(74, 163, 255, .12); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }
.gf2-rounds { margin: 14px 0 0; text-align: left; border-top: 1px solid var(--line); padding-top: 8px; }
.gf2-rounds summary { cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 6px 0; }
.gf2-rline { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.gf2-rline:last-child { border-bottom: 0; }
.gf2-rline .sq { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.gf2-rline .sq.t-bull { background: var(--t-bull); } .gf2-rline .sq.t-close { background: var(--t-close); } .gf2-rline .sq.t-ok { background: var(--t-ok); } .gf2-rline .sq.t-off { background: var(--t-off); } .gf2-rline .sq.t-far { background: var(--t-far); }
.gf2-rline b { display: block; font-weight: 800; }
.gf2-rline small { color: var(--dim); font-size: 11.5px; }
.gf2-rline .pts { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.gf2-rline .pts small { display: block; font-weight: 600; }
.gf2-report { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--dim); text-decoration: underline; }
.gf2-lbnote { color: var(--dim); font-size: 12px; margin: 0 0 8px; }

/* Modal */
.gf2-modal { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gf2-modal > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 380px; padding: 18px 16px 16px; max-height: 90vh; overflow: auto; position: relative; }
.gf2-modal h3 { margin: 0 0 12px; font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 24px; text-align: center; }
.gf2-modal h4 { margin: 14px 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.gf2-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--txt); cursor: pointer; }
.gf2-sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-bottom: 10px; }
.gf2-sgrid b { display: block; font-size: 26px; font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; } .gf2-sgrid span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.gf2-dist { display: flex; flex-direction: column; gap: 5px; }
.gf2-dist div { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; min-width: 0; }
.gf2-dist span { width: 64px; flex: none; color: var(--dim); font-size: 11px; }
.gf2-dist i { display: block; box-sizing: border-box; min-width: 22px; height: 20px; border-radius: 4px; background: #29324a; color: #fff; font-style: normal; text-align: right; padding: 0 6px; line-height: 20px; }
.gf2-dist i.hit { background: var(--t-bull); color: var(--ink); }
.gf2-best { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); } .gf2-best b { font-weight: 800; }
.gf2-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); margin-top: 12px; font-size: 13px; }
.gf2-opt small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.gf2-sw { flex: none; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: #1a2136; position: relative; cursor: pointer; padding: 0; }
.gf2-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #9aa6bd; transition: transform .2s, background .2s; }
.gf2-sw[aria-checked="true"] { background: rgba(74, 163, 255, .25); } .gf2-sw[aria-checked="true"]::after { transform: translateX(18px); background: var(--acc); }

/* Example inside the shared how-to modal */
.gf2.gf2-exwrap { padding: 0; margin: 0; max-width: none; color: inherit; }
.gf2-ex { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.gf2-ex span { background: #1a2238; color: #f3f5fa; border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: 12px; }

/* Preview tools */
.gf2-tools { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 12.5px; color: var(--dim); }
.gf2-tools label { display: block; margin: 8px 0 4px; font-weight: 700; color: var(--txt); }
.gf2-tools input[type=date] { background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 14px; }
.gf2-tools button { background: var(--panel2); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; margin: 6px 6px 0 0; }
.gf2-tools code { display: block; margin-top: 8px; white-space: pre-wrap; font-size: 11.5px; }

@keyframes gfEnter { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes gfRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) { .gf2-name { font-size: 27px; } .gf2-club { width: 104px; } .gf2-fee b { font-size: 50px; } .gf2-bigval input { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { .gf2 *, .gf2 *::before { animation: none !important; transition: none !important; } }

/* currency switch */
.gf2-cur { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.gf2-cur button { min-width: 38px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-weight: 800; font-size: 14px; cursor: pointer; }
.gf2-cur button:first-child { border-radius: 999px 0 0 999px; } .gf2-cur button:last-child { border-radius: 0 999px 999px 0; border-left-width: 0; }
.gf2-cur button[aria-pressed="true"] { background: rgba(74, 163, 255, .22); color: var(--txt); border-color: var(--acc); }
.gf2-cur button:disabled { opacity: .4; cursor: not-allowed; }
