:root {
--bg: #0b0d12;
--surface: #11141b;
--surface-raised: #171b23;
--surface-soft: #1b2029;
--border: #262c36;
--border-light: #303744;
--accent: #e94560;
--accent-dark: #bd2942;
--gold: #f3c969;
--text: #f3f4f6;
--text-soft: #b4bac5;
--muted: #737b89;
--success: #55d98a;
--radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background:
radial-gradient(circle at 50% -10%, rgba(233, 69, 96, 0.08), transparent 34%),
var(--bg);
color: var(--text);
min-height: 100vh;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}

button,
a {
font: inherit;
}

button {
-webkit-tap-highlight-color: transparent;
}

a {
color: var(--text-soft);
text-decoration: none;
}

a:hover {
color: var(--text);
}

.container {
width: min(900px, calc(100% - 32px));
margin: 0 auto;
padding: 28px 0 10px;
}

header {
text-align: center;
padding: 18px 0 28px;
}

header h1 {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 7px;
font-size: 2.15rem;
font-weight: 800;
letter-spacing: -0.045em;
color: #fff;
}

header h1 .title-icon {
flex-shrink: 0;
color: var(--accent);
filter: drop-shadow(0 5px 16px rgba(233, 69, 96, 0.25));
}

header .tagline {
color: var(--muted);
font-size: 0.94rem;
}

.card {
position: relative;
background: rgba(17, 20, 27, 0.94);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 22px;
margin-bottom: 16px;
}

.announcement {
padding: 17px 20px;
background:
linear-gradient(110deg, rgba(233, 69, 96, 0.06), transparent 55%),
var(--surface);
}

.announcement-header {
display: flex;
align-items: center;
justify-content: center;
gap: 11px;
}

.announcement-icon {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
flex: 0 0 32px;
color: var(--gold);
background: rgba(243, 201, 105, 0.09);
border: 1px solid rgba(243, 201, 105, 0.18);
border-radius: 9px;
}

.announcement-header > div:last-child {
display: flex;
flex-direction: column;
text-align: left;
}

.announcement-label {
color: var(--text);
font-size: 0.86rem;
font-weight: 700;
}

.announcement-date {
color: var(--muted);
font-size: 0.78rem;
margin-top: 1px;
}

.announcement .countdown {
margin-top: 13px;
font-size: 1.35rem;
line-height: 1.2;
font-weight: 750;
letter-spacing: -0.02em;
color: var(--gold);
}

.announcement .winner-box {
margin-top: 15px;
padding: 15px;
background: var(--surface-raised);
border: 1px solid rgba(233, 69, 96, 0.45);
border-radius: 10px;
}

.score-display {
padding: 25px 22px 21px;
text-align: center;
background:
radial-gradient(circle at 50% 0%, rgba(233, 69, 96, 0.08), transparent 45%),
var(--surface);
}

.score-heading {
display: flex;
align-items: center;
justify-content: center;
position: relative;
min-height: 21px;
}

.score-display .label {
color: var(--muted);
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.13em;
}

.save-status {
position: absolute;
right: 0;
color: var(--success);
font-size: 0.72rem;
font-weight: 600;
opacity: 0;
transition: opacity 0.25s ease;
}

.save-status.show {
opacity: 1;
}

.score-display .score {
margin: 2px 0 3px;
font-size: clamp(3rem, 9vw, 4.2rem);
line-height: 1.05;
font-weight: 850;
letter-spacing: -0.06em;
color: #fff;
text-shadow: 0 10px 35px rgba(233, 69, 96, 0.18);
transition: transform 0.1s ease;
}

.score-display .score.pop {
transform: scale(1.055);
}

.score-meta {
display: flex;
align-items: center;
justify-content: center;
gap: 13px;
color: var(--muted);
font-size: 0.78rem;
}

.score-meta strong {
color: var(--text-soft);
font-weight: 700;
}

.score-divider {
width: 3px;
height: 3px;
border-radius: 50%;
background: var(--border-light);
}

.combo {
height: 25px;
margin-top: 8px;
font-size: 0.88rem;
font-weight: 750;
color: var(--gold);
opacity: 0;
transform: translateY(3px);
transition: opacity 0.2s ease, transform 0.2s ease;
}

.combo.active {
opacity: 1;
transform: translateY(0);
}

.rush-btn {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: min(360px, 100%);
min-height: 118px;
margin: 18px auto 24px;
padding: 20px;
color: #fff;
background: linear-gradient(180deg, #ef4b65 0%, #d93650 100%);
border: 1px solid rgba(255, 255, 255, 0.11);
border-radius: 17px;
cursor: pointer;
box-shadow:
0 12px 30px rgba(233, 69, 96, 0.18),
inset 0 1px 0 rgba(255, 255, 255, 0.12);
transition:
transform 0.08s ease,
filter 0.15s ease,
box-shadow 0.15s ease;
user-select: none;
}

.rush-btn:hover {
filter: brightness(1.05);
box-shadow:
0 15px 34px rgba(233, 69, 96, 0.24),
inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.rush-btn:active,
.rush-btn.pressed {
transform: scale(0.965);
box-shadow:
0 6px 16px rgba(233, 69, 96, 0.22),
inset 0 2px 5px rgba(0, 0, 0, 0.13);
}

.rush-btn.rate-limited {
transform: scale(0.98);
filter: brightness(0.72) saturate(0.6);
box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.8);
}

.rush-label {
font-size: 1.85rem;
line-height: 1;
font-weight: 850;
letter-spacing: 0.08em;
}

.rush-hint {
margin-top: 8px;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.02em;
opacity: 0.72;
}

.section-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 17px;
}

.section-heading h2 {
font-size: 1rem;
font-weight: 750;
letter-spacing: -0.01em;
}

.section-heading p {
margin-top: 2px;
color: var(--muted);
font-size: 0.78rem;
}

.upgrades {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}

.upgrade {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 166px;
padding: 15px;
background: var(--surface-raised);
border: 1px solid var(--border);
border-radius: 11px;
transition:
border-color 0.15s ease,
background 0.15s ease,
transform 0.15s ease;
}

.upgrade:hover {
background: var(--surface-soft);
border-color: var(--border-light);
transform: translateY(-1px);
}

.upgrade-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}

.upgrade h3 {
color: var(--text);
font-size: 0.88rem;
font-weight: 700;
}

.upgrade .desc {
max-width: 245px;
margin-top: 4px;
color: var(--muted);
font-size: 0.74rem;
line-height: 1.45;
}

.upgrade-level {
flex: 0 0 auto;
padding: 3px 7px;
color: #9da7b8;
background: #20252e;
border: 1px solid var(--border-light);
border-radius: 6px;
font-size: 0.67rem;
font-weight: 700;
}

.upgrade-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 16px;
}

.upgrade .cost {
color: var(--text-soft);
font-size: 0.75rem;
font-weight: 600;
}

.upgrade button {
min-width: 88px;
padding: 8px 11px;
color: #fff;
background: #252b35;
border: 1px solid #343b47;
border-radius: 7px;
font-size: 0.75rem;
font-weight: 700;
cursor: pointer;
transition:
background 0.15s ease,
border-color 0.15s ease,
transform 0.08s ease;
}

.upgrade button:hover:not(:disabled) {
background: #303744;
border-color: #414957;
}

.upgrade button:active:not(:disabled) {
transform: scale(0.97);
}

.upgrade button:disabled {
opacity: 0.38;
cursor: not-allowed;
}

.how-to-play {
padding-bottom: 18px;
}

.rules {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1px;
overflow: hidden;
background: var(--border);
border: 1px solid var(--border);
border-radius: 10px;
}

.rule {
display: flex;
gap: 13px;
padding: 14px;
background: var(--surface-raised);
}

.rule-number {
flex: 0 0 auto;
color: var(--accent);
font-size: 0.67rem;
font-weight: 800;
letter-spacing: 0.08em;
padding-top: 2px;
}

.rule strong {
display: block;
color: var(--text);
font-size: 0.78rem;
font-weight: 700;
}

.rule p {
margin-top: 3px;
color: var(--muted);
font-size: 0.73rem;
line-height: 1.5;
}

.rule b {
color: var(--text-soft);
}

.player-id {
margin-top: 13px;
color: #4d5561;
font-size: 0.67rem;
text-align: center;
word-break: break-all;
}

.toast {
position: fixed;
left: 50%;
bottom: 22px;
z-index: 100;
width: max-content;
max-width: calc(100% - 32px);
padding: 10px 16px;
color: var(--text);
background: #1c212a;
border: 1px solid var(--border-light);
border-radius: 9px;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
transform: translateX(-50%) translateY(90px);
opacity: 0;
transition:
transform 0.25s ease,
opacity 0.25s ease;
pointer-events: none;
font-size: 0.78rem;
}

.toast.show {
transform: translateX(-50%) translateY(0);
opacity: 1;
}

.btn {
display: inline-block;
padding: 9px 17px;
color: #fff;
background: var(--accent);
border: 0;
border-radius: 8px;
font-weight: 700;
cursor: pointer;
text-decoration: none;
}

.btn:hover {
filter: brightness(1.07);
}

footer {
padding: 24px 0 32px;
color: #4f5662;
font-size: 0.72rem;
line-height: 1.8;
text-align: center;
}

.footer-title {
color: #737b89;
font-weight: 700;
}

footer a {
display: inline-block;
margin-top: 3px;
color: #555d69;
}

footer a:hover {
color: var(--text-soft);
}

@media (max-width: 650px) {
.container {
width: min(100% - 22px, 900px);
padding-top: 17px;
}

```
header {
    padding: 12px 0 21px;
}

header h1 {
    font-size: 1.8rem;
}

.card {
    padding: 18px;
    margin-bottom: 12px;
}

.upgrades,
.rules {
    grid-template-columns: 1fr;
}

.upgrade {
    min-height: 145px;
}

.score-display .score {
    font-size: 3.1rem;
}

.rush-btn {
    min-height: 105px;
    margin: 15px auto 19px;
}

.rush-label {
    font-size: 1.65rem;
}
```

}

@media (max-width: 420px) {
.container {
width: min(100% - 16px, 900px);
}

```
.announcement-header {
    justify-content: flex-start;
}

.announcement-header > div:last-child {
    text-align: left;
}

.save-status {
    position: static;
    margin-left: auto;
}

.score-heading {
    justify-content: flex-start;
}

.score-display .label {
    text-align: left;
}

.score-meta {
    gap: 9px;
}

.upgrade {
    padding: 14px;
}

.section-heading p {
    max-width: 280px;
}
```

}
