Style
This commit is contained in:
+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