@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } .tool-section { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); margin-top: clamp(-4rem, -2.5rem - 2vw, -2.5rem); position: relative; z-index: 5; } .clicker { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; } .clicker::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--green) 0%, var(--ember) 100%); } .clicker__top { padding: var(--pad-panel); padding-top: calc(var(--pad-panel) + 5px); display: grid; gap: var(--space-5); } .clicker__intro { text-align: center; max-width: 640px; margin-inline: auto; } .clicker__intro h2 { font-size: var(--fs-h2); margin-bottom: var(--space-2); } .clicker__intro p { color: var(--text-muted); margin-inline: auto; } .clk-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; max-width: 680px; margin-inline: auto; width: 100%; } .clk-mode { display: inline-flex; align-items: center; justify-content: center; width: 100%; white-space: nowrap; gap: 0.45rem; padding: 0.62rem 0.85rem; min-height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--line); background-color: var(--surface-2); color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; line-height: 1; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); } .clk-mode svg { width: 17px; height: 17px; flex: none; } @media (hover: hover) { .clk-mode:hover { border-color: var(--green-700); color: var(--green-800); background-color: var(--green-050); transform: translateY(-1px); } } .clk-mode:active { transform: translateY(0); } .clk-mode.is-active { background-color: var(--green-700); color: var(--white); border-color: var(--green-700); box-shadow: var(--shadow-green); } @media (hover: hover) { .clk-mode.is-active:hover { background-color: var(--green-800); color: var(--white); border-color: var(--green-800); } } .clk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; max-width: 820px; margin-inline: auto; width: 100%; } .clk-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0.9rem 0.75rem; text-align: center; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); } .clk-stat.is-live { border-color: var(--green-300); background-color: var(--green-050); } .clk-stat__value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.1; color: var(--graphite-950); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; } .clk-stat.is-primary .clk-stat__value { color: var(--green-700); } .clk-stat__label { display: block; margin-top: 0.25rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); } .clk-stage { display: grid; place-items: center; gap: 1rem; padding: clamp(1rem, 0.5rem + 2vw, 2rem) 0 0.5rem; } .spacebar { position: relative; width: min(100%, 620px); min-height: clamp(130px, 18vw, 190px); border: 0; border-radius: 22px; background: var(--grad-key); color: var(--text-on-dark); box-shadow: 0 10px 0 0 #0A0B0C, 0 16px 30px rgba(0, 0, 0, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 8px rgba(0, 0, 0, 0.5); display: grid; place-items: center; gap: 0.35rem; padding: 1.5rem; font-family: var(--font-display); transition: transform 90ms var(--ease), box-shadow 90ms var(--ease); user-select: none; -webkit-user-select: none; touch-action: manipulation; } .spacebar::after { content: ""; position: absolute; inset: 10px 14px auto 14px; height: 40%; border-radius: 16px 16px 40px 40px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent); pointer-events: none; } .spacebar__label { font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); font-weight: 700; letter-spacing: 0.14em; color: var(--white); text-transform: uppercase; } .spacebar__hint { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-on-dark-soft); letter-spacing: 0.02em; } @media (hover: hover) { .spacebar:hover { box-shadow: 0 10px 0 0 #0A0B0C, 0 20px 38px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 8px rgba(0, 0, 0, 0.5); } } .spacebar.is-down, .spacebar:active { transform: translateY(8px); box-shadow: 0 2px 0 0 #0A0B0C, 0 6px 14px rgba(0, 0, 0, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.10), inset 0 -2px 6px rgba(0, 0, 0, 0.5); } .spacebar.is-armed { outline: 3px solid var(--green-400); outline-offset: 4px; } .clk-ripple { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--green-400); pointer-events: none; opacity: 0.55; animation: clk-burst 520ms var(--ease-out) forwards; } @keyframes clk-burst { to { transform: scale(9); opacity: 0; } } .clk-progress { width: min(100%, 620px); height: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; } .clk-progress__fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green) 0%, var(--green-700) 100%); transform-origin: left center; transition: transform 120ms linear; } .clk-progress__fill.is-low { background: linear-gradient(90deg, var(--ember-500) 0%, var(--ember) 100%); } .clk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 0.5rem; } .clk-msg { min-height: 1.4em; text-align: center; font-size: 0.92rem; font-weight: 600; color: var(--green-800); margin: 0.25rem 0 0; } .clk-msg.is-error { color: var(--ember-700); } .clk-results { border-top: 1px solid var(--line); background: var(--surface-2); padding: var(--pad-panel); display: grid; gap: var(--space-4); } .clk-results__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; } .clk-results__head h3 { font-size: 1.3rem; margin: 0; } .clk-results__head h3 span { color: var(--green-700); } .clk-verdict { display: flex; align-items: center; gap: 0.9rem; background: var(--grad-soft); border: 1px solid var(--green-200); border-radius: var(--radius-md); padding: 1rem 1.25rem; } .clk-verdict__badge { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--green-700); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow-green); } .clk-verdict__badge.tier-ember { background: var(--ember); box-shadow: var(--shadow-ember); } .clk-verdict__badge.tier-dark { background: var(--graphite); } .clk-verdict__text strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--graphite-950); } .clk-verdict__text span { font-size: 0.92rem; color: var(--muted); } .clk-history { display: grid; gap: 0.5rem; } .clk-history__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.9rem; padding: 0.7rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.9rem; } .clk-history__row.is-best { border-color: var(--green-300); background: var(--green-050); } .clk-history__rank { font-family: var(--font-mono); font-weight: 700; color: var(--muted); min-width: 1.5em; } .clk-history__mode { font-weight: 600; color: var(--ink-soft); } .clk-history__cps { font-family: var(--font-mono); font-weight: 700; color: var(--green-700); } .clk-history__count { font-family: var(--font-mono); color: var(--muted); } .clk-history__empty { padding: 1.25rem; text-align: center; color: var(--muted); font-size: 0.92rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); } .clk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; font-size: 0.82rem; color: var(--muted); } .clk-legend kbd { font-family: var(--font-mono); font-size: 0.78rem; background: var(--surface-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0.1rem 0.45rem; color: var(--ink-soft); } @media (max-width: 720px) { .clk-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; } .clk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; } } @media (max-width: 420px) { .clk-history__row { grid-template-columns: auto 1fr auto; } .clk-history__count { display: none; } }
