Style
This commit is contained in:
+92
-27
@@ -17,7 +17,9 @@
|
||||
<body>
|
||||
<main>
|
||||
<div class="game-panel">
|
||||
<p class="eyebrow game-eyebrow">A SHARED EXPERIMENT</p>
|
||||
<h1>THE BUTTON</h1>
|
||||
<p class="game-tagline">One clock. Everyone's nerve.</p>
|
||||
|
||||
<section id="timer-section">
|
||||
<div id="countdown" class="zone-green">--:--:--.--</div>
|
||||
@@ -28,11 +30,13 @@
|
||||
|
||||
<section id="button-section">
|
||||
<button id="the-button" class="zone-green" disabled>PRESS</button>
|
||||
<p class="button-caption">Every press buys everyone more time.</p>
|
||||
<p id="press-result" aria-live="polite"></p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="section-browser">
|
||||
<div class="browser-heading"><span class="eyebrow">MAKE YOURSELF AT HOME</span><span class="site-badge">The Button / 01</span></div>
|
||||
<nav id="section-nav" aria-label="Game sections">
|
||||
<button type="button" data-section="account-section" aria-controls="account-section" aria-expanded="false">Log in / Join</button>
|
||||
<button type="button" data-section="leaderboard-section" aria-controls="leaderboard-section" aria-expanded="false">Leaderboard</button>
|
||||
@@ -43,11 +47,22 @@
|
||||
<button type="button" data-section="more" aria-controls="more" aria-expanded="false">More</button>
|
||||
<button type="button" data-section="donate" aria-controls="donate" aria-expanded="false">Donate</button>
|
||||
</nav>
|
||||
<p id="section-hint">Select a section above to explore the game.</p>
|
||||
<div id="section-hint" class="welcome-card">
|
||||
<span class="welcome-mark" aria-hidden="true">◎</span>
|
||||
<p class="eyebrow">PATIENCE IS THE GAME</p>
|
||||
<h2>How long can<br>we keep this going?</h2>
|
||||
<p>A single countdown, shared by everyone. Wait for more points, or press to keep the game alive.</p>
|
||||
<div class="welcome-notes"><span>One shared clock</span><span>Six scoring zones</span><span>No second chances</span></div>
|
||||
<p class="welcome-hint">Choose a section above to join in, compare scores, or say hello.</p>
|
||||
</div>
|
||||
|
||||
<section id="share-controls" data-panel hidden>
|
||||
<header class="panel-header">
|
||||
<p class="eyebrow">A MOMENT WORTH SHARING</p>
|
||||
<h2>Share your press</h2>
|
||||
<p>Share your press:</p>
|
||||
<p class="panel-description">A close call? A perfect moment? Tell someone about it.</p>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<div class="share-links">
|
||||
<a id="share-facebook" class="share-link" target="_blank" rel="noopener noreferrer">Facebook</a>
|
||||
<a id="share-x" class="share-link" target="_blank" rel="noopener noreferrer">X</a>
|
||||
@@ -59,40 +74,68 @@
|
||||
<a id="share-mastodon" class="share-link" target="_blank" rel="noopener noreferrer">Share on Mastodon</a>
|
||||
</div>
|
||||
<p id="share-error" class="error" aria-live="polite"></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="account-section" data-panel hidden>
|
||||
<div id="register-section" hidden>
|
||||
<h2>Log in or join the game</h2>
|
||||
<header class="panel-header">
|
||||
<p class="eyebrow">YOUR NEXT MOVE</p>
|
||||
<h2>Take your place.</h2>
|
||||
<p class="panel-description">Choose a name. Trust your timing. Every press is part of the story.</p>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<form id="register-form">
|
||||
<label class="field" for="name-input"><span>Player name</span>
|
||||
<input id="name-input" maxlength="24" placeholder="Your name" required autocomplete="username">
|
||||
</label>
|
||||
<label class="field" for="password-input"><span>Password</span>
|
||||
<input id="password-input" type="password" minlength="8" maxlength="128" placeholder="Password (8+ chars)" required autocomplete="current-password">
|
||||
<button type="submit" value="login">Log in</button>
|
||||
</label>
|
||||
<div class="form-actions"><button class="primary-button" type="submit" value="login">Log in <span aria-hidden="true">→</span></button>
|
||||
<button type="submit" value="register">Sign up</button>
|
||||
</div>
|
||||
</form>
|
||||
<p id="register-error" class="error"></p>
|
||||
<p id="register-error" class="error" role="status"></p>
|
||||
<p class="fine-print">Already playing? Log in with the same name and password to pick up where you left off.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="me-section" hidden>
|
||||
<h2>Your score: <span id="my-name"></span></h2>
|
||||
<header class="panel-header score-header">
|
||||
<div><p class="eyebrow">YOUR PART IN THE EXPERIMENT</p>
|
||||
<h2 id="my-name"></h2>
|
||||
<p class="panel-description">Good things come to those who wait. Sometimes.</p></div>
|
||||
<button id="logout-button" type="button">Log out</button>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<p id="my-subscribed" hidden>You're on the mailing list. Thanks!</p>
|
||||
<p>Total points: <strong id="my-points">0</strong> · Presses: <strong id="my-presses">0</strong></p>
|
||||
<table id="my-zones" class="zone-table"></table>
|
||||
<div class="score-grid">
|
||||
<div class="metric-card"><span>Total points</span><strong id="my-points">0</strong><small>Every moment counts</small></div>
|
||||
<div class="metric-card"><span>Button presses</span><strong id="my-presses">0</strong><small>Times you kept us going</small></div>
|
||||
</div>
|
||||
<h3 class="subheading">Your scoring zones</h3>
|
||||
<div class="table-scroll"><table id="my-zones" class="zone-table"></table></div>
|
||||
<details>
|
||||
<summary>Your press history</summary>
|
||||
<table id="my-history"></table>
|
||||
<div class="table-scroll"><table id="my-history"></table></div>
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="leaderboard-section" data-panel hidden aria-labelledby="leaderboard-heading">
|
||||
<header class="panel-header">
|
||||
<div class="header-topline"><p class="eyebrow">THE LONG GAME</p><span class="site-badge">Updates every 5s</span></div>
|
||||
<h2 id="leaderboard-heading">Leaderboard</h2>
|
||||
<p>See how you stack up. Scores refresh every five seconds.</p>
|
||||
<p class="panel-description">A little patience. A little nerve. See who's making every second count.</p>
|
||||
</header>
|
||||
<div class="panel-body">
|
||||
<p id="leaderboard-status" role="status">Loading scores…</p>
|
||||
<div class="leaderboard-scroll" tabindex="0" role="region" aria-label="Player leaderboard">
|
||||
<table id="leaderboard" aria-label="Player rankings" hidden></table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="chat-section" data-panel hidden aria-labelledby="chat-heading">
|
||||
@@ -124,51 +167,71 @@
|
||||
</section>
|
||||
|
||||
<section id="stats-section" data-panel hidden>
|
||||
<h2>Game over — final global stats</h2>
|
||||
<header class="panel-header"><p class="eyebrow">THE FINAL CHAPTER</p>
|
||||
<h2>Every second had a story.</h2>
|
||||
<p class="panel-description">The clock has stopped. Here's how we got here.</p></header>
|
||||
<div class="panel-body">
|
||||
<div id="stats-summary"></div>
|
||||
<h3>Presses per zone</h3>
|
||||
<table id="stats-zones" class="zone-table"></table>
|
||||
<div class="table-scroll"><table id="stats-zones" class="zone-table"></table></div>
|
||||
<h3>Leaderboard</h3>
|
||||
<table id="stats-leaderboard"></table>
|
||||
<div class="table-scroll"><table id="stats-leaderboard"></table></div>
|
||||
<details>
|
||||
<summary>Full press log</summary>
|
||||
<table id="stats-log"></table>
|
||||
<div class="table-scroll"><table id="stats-log"></table></div>
|
||||
</details>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="rules" data-panel hidden>
|
||||
<h2>Rules</h2>
|
||||
<ul>
|
||||
<li>A 24 hour countdown resets whenever anyone presses the button.</li>
|
||||
<li>If the countdown reaches zero, the game is over forever.</li>
|
||||
<li>The lower the countdown when you press, the more points you score.</li>
|
||||
<li>Zones: <span id="rules-zones"></span></li>
|
||||
<li>Each press scores the fixed point value of the zone it lands in.</li>
|
||||
<li>Player scores are public on the live leaderboard. Detailed global stats are published when the game ends.</li>
|
||||
<li>Inspired by the original <a href="https://en.wikipedia.org/wiki/The_Button_(Reddit)">Reddit "The Button"</a> experiment.</li>
|
||||
</ul>
|
||||
<header class="panel-header"><p class="eyebrow">SIMPLE RULES. DIFFICULT DECISIONS.</p>
|
||||
<h2>It's all in the timing.</h2>
|
||||
<p class="panel-description">Everyone shares the same clock. What you do with it is up to you.</p></header>
|
||||
<div class="panel-body">
|
||||
<ol class="rules-list">
|
||||
<li><div><h3>Keep the clock alive</h3><p>Every press resets the countdown for everyone.</p></div></li>
|
||||
<li><div><h3>Wait for your moment</h3><p>The lower the countdown, the more you score. Each zone awards a fixed number of points per press.</p></div></li>
|
||||
<li><div><h3>Don't wait too long</h3><p>If the countdown reaches zero, the game is over. Forever.</p></div></li>
|
||||
</ol>
|
||||
<h3 class="subheading">Six zones. Increasing stakes.</h3>
|
||||
<div id="rules-zones" class="zone-guide"></div>
|
||||
<p class="fine-print">Player scores are always public. Detailed global stats are revealed when the game ends.</p>
|
||||
<p class="fine-print">Inspired by the original <a href="https://en.wikipedia.org/wiki/The_Button_(Reddit)">Reddit "The Button"</a> experiment.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="more" data-panel hidden>
|
||||
<h2>More</h2>
|
||||
<header class="panel-header"><p class="eyebrow">BEYOND THE BUTTON</p>
|
||||
<h2>Stay a little longer.</h2>
|
||||
<p class="panel-description">Small experiments, open-source projects, and the person behind them.</p></header>
|
||||
<div class="panel-body">
|
||||
<p>Visit <a href="https://www.eom.dev/">Eric's homepage</a> for contact information, social media, and links to his other projects.</p>
|
||||
<a class="feature-link" href="https://www.eom.dev/"><span><strong>Meet the maker</strong><small>More projects, ideas, and ways to get in touch.</small></span><span aria-hidden="true">↗</span></a>
|
||||
|
||||
<section id="mailing-list" hidden>
|
||||
<h3>Mailing list</h3>
|
||||
<p>Join the mailing list to receive updates on Eric's projects:</p>
|
||||
<form id="subscribe-form">
|
||||
<label class="field" for="sub-first"><span>First name</span>
|
||||
<input id="sub-first" maxlength="50" placeholder="First name" required autocomplete="given-name">
|
||||
</label><label class="field" for="sub-last"><span>Last name <small>(optional)</small></span>
|
||||
<input id="sub-last" maxlength="50" placeholder="Last name (optional)" autocomplete="family-name">
|
||||
</label><label class="field" for="sub-email"><span>Email address</span>
|
||||
<input id="sub-email" type="email" maxlength="254" placeholder="Email" required autocomplete="email">
|
||||
</label><label class="field" for="sub-phone"><span>Phone <small>(optional)</small></span>
|
||||
<input id="sub-phone" type="tel" maxlength="25" placeholder="Phone (optional)" autocomplete="tel">
|
||||
<button type="submit">Sign up</button>
|
||||
</label><button class="primary-button" type="submit">Keep me in the loop <span aria-hidden="true">→</span></button>
|
||||
</form>
|
||||
<p id="subscribe-result" aria-live="polite"></p>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="donate" data-panel hidden>
|
||||
<h2>Donate</h2>
|
||||
<header class="panel-header"><p class="eyebrow">FUEL THE NEXT EXPERIMENT</p>
|
||||
<h2>Help keep ideas alive.</h2>
|
||||
<p class="panel-description">Independent projects, made for everyone. A little support goes a long way.</p></header>
|
||||
<div class="panel-body">
|
||||
<p>Help support my <a href="https://gitea.eom.dev/">free and open source projects</a> by making a donation through Stripe:</p>
|
||||
<script async
|
||||
src="https://js.stripe.com/v3/buy-button.js">
|
||||
@@ -179,6 +242,8 @@
|
||||
publishable-key="pk_live_51RXqTsC5KPXqTvVLWl5bzCxoaZivWceeLGMNURUmxzQMwaM5pUUl4VabywrjCQvgKopGFvUBqPLxRMF3eALsiDst00tR59vRhN"
|
||||
>
|
||||
</stripe-buy-button>
|
||||
<p class="fine-print">Thank you for supporting independent, open-source work.</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
+157
-54
@@ -20,6 +20,7 @@
|
||||
--base: #1e1e2e;
|
||||
--mantle: #181825;
|
||||
--crust: #11111b;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
@@ -27,15 +28,17 @@
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--base);
|
||||
background: radial-gradient(ellipse at 15% 0%, #cba6f709, transparent 50%), var(--base);
|
||||
color: var(--text);
|
||||
font-family: system-ui, sans-serif;
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 1160px;
|
||||
margin: 0 auto;
|
||||
padding: 1rem;
|
||||
padding: 2rem 1rem 4rem;
|
||||
text-align: center;
|
||||
display: grid;
|
||||
grid-template-columns: 340px minmax(0, 1fr);
|
||||
@@ -45,33 +48,59 @@ main {
|
||||
|
||||
.game-panel {
|
||||
position: sticky;
|
||||
top: 1rem;
|
||||
top: 1.5rem;
|
||||
z-index: 2;
|
||||
background: var(--base);
|
||||
background: linear-gradient(160deg, #cba6f70a, transparent 60%), var(--mantle);
|
||||
border: 1px solid var(--surface);
|
||||
border-radius: 16px;
|
||||
padding: 1rem;
|
||||
border-radius: 20px;
|
||||
padding: 1.6rem 1.25rem;
|
||||
box-shadow: 0 12px 32px #11111b40;
|
||||
}
|
||||
.game-panel h1 { font-size: 1.5rem; }
|
||||
.game-panel #countdown { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
|
||||
.game-panel #history-global-summary { font-size: 0.85rem; color: var(--subtext); }
|
||||
.game-panel h1 { font-size: 1.4rem; margin: 0.5rem 0 0; }
|
||||
.game-tagline { font-size: 0.8rem; color: var(--subtext); margin: 0.35rem 0 1.75rem; }
|
||||
.game-panel #countdown { font-size: clamp(1.8rem, 3.5vw, 2.55rem); font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: -0.05em; }
|
||||
.game-panel #history-global-summary { font-size: 0.75rem; color: var(--subtext); margin: 1rem 0 0; }
|
||||
.button-caption { font-size: 0.7rem; color: var(--subtext); margin: 1.25rem 0 0; }
|
||||
#press-result:not(:empty) { background: #a6e3a109; border: 1px solid #a6e3a130; border-radius: 10px; padding: 0.65rem; font-size: 0.8rem; }
|
||||
#press-result:empty { display: none; }
|
||||
.section-browser { min-width: 0; }
|
||||
#section-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
#section-nav button { flex: 1 0 auto; min-height: 44px; }
|
||||
#section-nav button[aria-expanded="true"] {
|
||||
.browser-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.15rem 0 1rem; }
|
||||
#section-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.4rem; border: 1px solid var(--surface); background: var(--mantle); border-radius: 14px; }
|
||||
#section-nav button[data-section] { flex: 1 0 auto; min-height: 44px; padding: 0.55rem 0.7rem; border: none; border-radius: 9px; background: transparent; color: var(--subtext); font-size: 0.8rem; }
|
||||
#section-nav button[data-section]:hover { color: var(--text); background: var(--surface); }
|
||||
#section-nav button[data-section][aria-expanded="true"] {
|
||||
background: var(--mauve);
|
||||
color: var(--crust);
|
||||
border-color: var(--mauve);
|
||||
}
|
||||
#section-hint { color: var(--subtext); margin-top: 2rem; }
|
||||
[data-panel] { overflow-x: auto; padding: 1rem; }
|
||||
[data-panel] { overflow-x: auto; padding: 0; background: var(--mantle); border: 1px solid var(--surface); border-radius: 18px; box-shadow: 0 12px 32px #11111b40; text-align: left; margin: 1.25rem 0; }
|
||||
[data-panel] h2 { margin-top: 0; }
|
||||
form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
|
||||
form input { min-width: 0; max-width: 100%; }
|
||||
.eyebrow { margin: 0 0 0.65rem; font-size: 0.65rem; letter-spacing: 0.16em; color: var(--mauve); font-weight: 700; }
|
||||
.browser-heading .eyebrow { margin: 0; }
|
||||
.site-badge { display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--surface); border-radius: 20px; font-size: 0.65rem; color: var(--subtext); white-space: nowrap; }
|
||||
.panel-header { padding: 1.75rem; background: linear-gradient(120deg, #cba6f710, transparent 75%); border-bottom: 1px solid var(--surface); }
|
||||
.panel-header h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.25; letter-spacing: -0.03em; overflow-wrap: anywhere; color: var(--text); }
|
||||
.panel-description { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--subtext); line-height: 1.6; }
|
||||
.panel-body { padding: 1.5rem 1.75rem; min-width: 0; }
|
||||
.panel-body > p { font-size: 0.9rem; color: var(--subtext); }
|
||||
.header-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
|
||||
.header-topline .eyebrow { margin: 0; }
|
||||
.subheading, .panel-body h3 { font-size: 0.8rem; color: var(--text); font-weight: 600; margin: 1.5rem 0 0.75rem; }
|
||||
.fine-print, .panel-body > .fine-print { font-size: 0.75rem; color: var(--subtext); line-height: 1.7; }
|
||||
.welcome-card { margin-top: 1.25rem; padding: 3rem 2rem; text-align: center; border: 1px solid var(--surface); border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, #cba6f712, transparent 70%), var(--mantle); }
|
||||
.welcome-mark { display: block; color: var(--mauve); font-size: 3.5rem; line-height: 1; margin-bottom: 1.5rem; }
|
||||
.welcome-card h2 { margin: 0.5rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.04em; }
|
||||
.welcome-card > p:not(.eyebrow) { color: var(--subtext); font-size: 0.9rem; max-width: 400px; margin-inline: auto; }
|
||||
.welcome-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.5rem 0; }
|
||||
.welcome-notes span { padding: 0.35rem 0.65rem; border-radius: 20px; background: #cba6f70b; color: var(--lavender); font-size: 0.7rem; }
|
||||
.welcome-card > .welcome-hint { font-size: 0.75rem !important; }
|
||||
|
||||
h1 { letter-spacing: 0.3em; }
|
||||
|
||||
a { color: var(--sapphire); }
|
||||
a { color: var(--sapphire); text-underline-offset: 3px; }
|
||||
a:hover { color: var(--lavender); }
|
||||
|
||||
section { margin: 1.5rem 0; }
|
||||
|
||||
@@ -83,15 +112,15 @@ section { margin: 1.5rem 0; }
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
#zone-label { text-transform: uppercase; letter-spacing: 0.2em; }
|
||||
#zone-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; margin-top: 0.5rem; }
|
||||
|
||||
#zone-bar {
|
||||
position: relative;
|
||||
display: flex;
|
||||
height: 14px;
|
||||
height: 10px;
|
||||
margin: 0.75rem auto;
|
||||
border: 1px solid var(--overlay);
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--surface);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#zone-bar span { flex: 1 1 0; }
|
||||
@@ -113,9 +142,10 @@ section { margin: 1.5rem 0; }
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
border: 6px solid var(--mantle);
|
||||
box-shadow: 0 8px 0 var(--crust);
|
||||
transition: transform 0.05s;
|
||||
box-shadow: 0 8px 0 var(--crust), 0 0 0 1px var(--surface), inset 0 2px 5px #ffffff30;
|
||||
transition: transform 0.12s, box-shadow 0.12s;
|
||||
}
|
||||
#the-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 0 var(--crust), 0 0 25px #cba6f715, inset 0 2px 5px #ffffff30; }
|
||||
#the-button:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 2px 0 var(--crust); }
|
||||
#the-button:disabled { cursor: not-allowed; opacity: 0.5; }
|
||||
|
||||
@@ -130,31 +160,44 @@ section { margin: 1.5rem 0; }
|
||||
#countdown.zone-blue { color: var(--blue); }
|
||||
#countdown.zone-yellow { color: var(--yellow); }
|
||||
#countdown.zone-red { color: var(--red); }
|
||||
#countdown.zone-black { color: var(--black); }
|
||||
#countdown.zone-white { color: var(--white); }
|
||||
#countdown.zone-black { color: var(--lavender); }
|
||||
#countdown.zone-white { color: var(--text); }
|
||||
|
||||
.swatch {
|
||||
display: inline-block;
|
||||
padding: 0 0.4em;
|
||||
margin: 0 0.15em;
|
||||
border: 1px solid var(--overlay);
|
||||
border-radius: 3px;
|
||||
padding: 0.15em 0.6em;
|
||||
margin: 0;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
table {
|
||||
margin: 0.5rem auto;
|
||||
margin: 0;
|
||||
border-collapse: collapse;
|
||||
min-width: 60%;
|
||||
width: 100%;
|
||||
font-size: 0.8rem;
|
||||
text-align: left;
|
||||
}
|
||||
th, td { padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--surface); }
|
||||
th, td { padding: 0.8rem 0.65rem; border-bottom: 1px solid var(--surface); }
|
||||
th { color: var(--subtext); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; white-space: nowrap; background: #31324435; }
|
||||
td { font-variant-numeric: tabular-nums; }
|
||||
tbody tr:last-child td { border-bottom: none; }
|
||||
tbody tr:hover { background: #31324445; }
|
||||
.table-scroll, .leaderboard-scroll { overflow-x: auto; border: 1px solid var(--surface); border-radius: 10px; max-width: 100%; scrollbar-width: thin; }
|
||||
details { margin-top: 1.25rem; border: 1px solid var(--surface); border-radius: 10px; padding: 0.8rem 1rem; }
|
||||
summary { color: var(--lavender); font-size: 0.8rem; cursor: pointer; }
|
||||
details[open] summary { margin-bottom: 1rem; }
|
||||
.score-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
|
||||
.score-header > div { min-width: 0; }
|
||||
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
|
||||
.metric-card { background: linear-gradient(135deg, #cba6f70b, transparent), var(--base); border: 1px solid var(--surface); border-radius: 12px; padding: 1rem; }
|
||||
.metric-card span { display: block; font-size: 0.7rem; color: var(--subtext); }
|
||||
.metric-card strong { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--mauve); line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
|
||||
.metric-card:nth-child(2) strong { color: var(--teal); }
|
||||
.metric-card small { font-size: 0.65rem; color: var(--subtext); }
|
||||
#my-subscribed { padding: 0.65rem; border-radius: 8px; background: #a6e3a110; color: var(--green); font-size: 0.75rem; }
|
||||
|
||||
#leaderboard-section {
|
||||
padding: 1rem;
|
||||
background: var(--mantle);
|
||||
border: 1px solid var(--surface);
|
||||
border-radius: 12px;
|
||||
}
|
||||
#leaderboard-section > p { color: var(--subtext); font-size: 0.9rem; }
|
||||
#leaderboard-status:empty { display: none; }
|
||||
.leaderboard-scroll { overflow-x: auto; }
|
||||
#leaderboard { width: 100%; }
|
||||
@@ -165,40 +208,74 @@ th, td { padding: 0.3rem 0.6rem; border-bottom: 1px solid var(--surface); }
|
||||
}
|
||||
#leaderboard td:not(:nth-child(2)) { font-variant-numeric: tabular-nums; }
|
||||
#leaderboard tbody tr:first-child { color: var(--yellow); }
|
||||
#leaderboard tbody td:first-child { width: 3rem; font-weight: 700; color: var(--subtext); }
|
||||
#leaderboard tbody tr:first-child td:first-child { color: var(--yellow); }
|
||||
#leaderboard tbody tr:hover { background: var(--surface); }
|
||||
|
||||
input, button {
|
||||
font-size: 1rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
font-family: inherit;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.65rem 0.9rem;
|
||||
}
|
||||
|
||||
input {
|
||||
border: 1px solid var(--overlay);
|
||||
border-radius: 4px;
|
||||
background: var(--mantle);
|
||||
border: 1px solid var(--surface);
|
||||
border-radius: 9px;
|
||||
background: var(--base);
|
||||
color: var(--text);
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
input::placeholder { color: var(--overlay); }
|
||||
input::placeholder { color: var(--subtext); opacity: 0.75; }
|
||||
|
||||
button:not(#the-button) {
|
||||
border: 1px solid var(--overlay);
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--surface);
|
||||
border-radius: 9px;
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
min-height: 44px;
|
||||
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
||||
}
|
||||
|
||||
button:not(#the-button):hover { background: var(--overlay); }
|
||||
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
|
||||
button:not(#the-button):hover { background: #45475a; border-color: var(--overlay); }
|
||||
button.primary-button:not(#the-button) { background: var(--mauve); border-color: var(--mauve); color: var(--crust); }
|
||||
button.primary-button:not(#the-button):hover { background: var(--lavender); border-color: var(--lavender); }
|
||||
button:disabled { cursor: not-allowed; opacity: 0.6; }
|
||||
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
|
||||
outline: 2px solid var(--mauve);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; text-align: left; }
|
||||
.field > span { color: var(--subtext); font-size: 0.75rem; font-weight: 600; }
|
||||
.field small { font-weight: 400; }
|
||||
.field input { width: 100%; }
|
||||
#register-form { display: grid; gap: 1rem; max-width: 420px; justify-content: stretch; }
|
||||
.form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.25rem; }
|
||||
.form-actions button { flex: 1; }
|
||||
#logout-button { flex-shrink: 0; font-size: 0.75rem; }
|
||||
#subscribe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; justify-content: stretch; }
|
||||
#subscribe-form > button { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
|
||||
#mailing-list { border-top: 1px solid var(--surface); padding-top: 0.5rem; margin: 1.75rem 0 0; }
|
||||
#mailing-list p { font-size: 0.85rem; color: var(--subtext); }
|
||||
.feature-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1.1rem; border: 1px solid var(--surface); border-radius: 12px; text-decoration: none; background: var(--base); }
|
||||
.feature-link strong { display: block; font-size: 0.9rem; color: var(--lavender); }
|
||||
.feature-link small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--subtext); }
|
||||
.feature-link > span:last-child { font-size: 1.3rem; }
|
||||
.feature-link:hover { border-color: var(--mauve); }
|
||||
.rules-list { list-style: none; counter-reset: rules; padding: 0; margin: 0; }
|
||||
.rules-list li { display: flex; align-items: flex-start; gap: 1rem; counter-increment: rules; padding: 0.9rem 0; }
|
||||
.rules-list li::before { content: "0" counter(rules); display: grid; place-items: center; flex: 0 0 32px; height: 32px; color: var(--mauve); background: #cba6f715; border-radius: 10px; font-size: 0.75rem; font-weight: 700; }
|
||||
.rules-list li h3 { margin: 0 0 0.25rem; font-size: 0.9rem; }
|
||||
.rules-list li p { margin: 0; font-size: 0.8rem; line-height: 1.7; color: var(--subtext); }
|
||||
.zone-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
|
||||
.zone-guide .swatch { padding: 0.65rem; font-size: 0.7rem; font-weight: 600; }
|
||||
|
||||
.share-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin: 0.5rem 0 1rem;
|
||||
@@ -206,19 +283,26 @@ button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visibl
|
||||
|
||||
.share-link {
|
||||
display: inline-block;
|
||||
padding: 0.45rem 0.8rem;
|
||||
border: 1px solid var(--overlay);
|
||||
border-radius: 4px;
|
||||
padding: 0.65rem 1rem;
|
||||
border: 1px solid var(--surface);
|
||||
border-radius: 9px;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.share-link:hover, .share-link:focus-visible { background: var(--surface); }
|
||||
.share-link[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
|
||||
#mastodon-instance { max-width: 100%; }
|
||||
#share-controls label { display: block; }
|
||||
#share-controls label { display: block; font-size: 0.75rem; color: var(--subtext); margin-top: 1.5rem; }
|
||||
|
||||
.error { color: var(--red); }
|
||||
.panel-body > .error { color: var(--red); }
|
||||
.error:empty { display: none; }
|
||||
#stats-summary { padding: 0.5rem 1rem; border: 1px solid var(--surface); border-radius: 12px; background: var(--base); }
|
||||
#stats-summary p { color: var(--subtext); font-size: 0.8rem; }
|
||||
#stats-summary p:first-child { color: var(--lavender); font-weight: 600; }
|
||||
stripe-buy-button { display: block; max-width: 100%; margin: 1.5rem 0; }
|
||||
|
||||
#chat-section {
|
||||
padding: 0;
|
||||
@@ -293,7 +377,9 @@ button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visibl
|
||||
padding: 0.5rem;
|
||||
border-radius: 0 0 12px 12px;
|
||||
box-shadow: 0 6px 16px var(--crust);
|
||||
background: var(--mantle);
|
||||
}
|
||||
.game-panel .game-eyebrow, .game-tagline, .button-caption { display: none; }
|
||||
.game-panel h1 { grid-column: 1 / -1; margin: 0; font-size: 1rem; }
|
||||
.game-panel section { margin: 0; }
|
||||
.game-panel #countdown { font-size: clamp(1.4rem, 6vw, 2.5rem); }
|
||||
@@ -301,11 +387,28 @@ button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visibl
|
||||
#zone-bar { margin: 0.35rem auto; }
|
||||
.game-panel #history-global-summary { margin: 0.25rem 0; font-size: 0.7rem; }
|
||||
#the-button { width: 84px; height: 84px; font-size: 1rem; border-width: 4px; }
|
||||
#button-section { align-self: center; }
|
||||
#press-result { max-width: 110px; margin: 0.4rem 0 0; font-size: 0.7rem; }
|
||||
#timer-section { grid-column: 1; grid-row: 2; }
|
||||
#button-section { display: contents; }
|
||||
#the-button { grid-column: 2; grid-row: 2; align-self: center; }
|
||||
#press-result:not(:empty) { grid-column: 1 / -1; margin: 0.4rem 0 0; padding: 0.45rem; font-size: 0.7rem; line-height: 1.5; }
|
||||
#press-result:empty { display: none; }
|
||||
.section-browser { margin-top: 1rem; }
|
||||
.browser-heading { padding-inline: 0.25rem; }
|
||||
.browser-heading .eyebrow { font-size: 0.55rem; }
|
||||
#section-nav button[data-section] { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
|
||||
.welcome-card { padding: 2rem 1rem; }
|
||||
.panel-header { padding: 1.25rem; }
|
||||
.panel-body { padding: 1.1rem; }
|
||||
.metric-card { padding: 0.8rem; }
|
||||
.metric-card small { display: none; }
|
||||
#subscribe-form { grid-template-columns: 1fr; }
|
||||
.score-header { flex-wrap: wrap; }
|
||||
th, td { padding: 0.65rem 0.5rem; }
|
||||
.chat-header { padding: 1.25rem; flex-wrap: wrap; }
|
||||
.chat-feed { padding: 0.9rem; min-height: 230px; }
|
||||
.chat-composer { padding: 1rem; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { transition: none !important; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user