:root {
    --font-display: "Playfair Display", "Times New Roman", serif;
    --font-body: "Space Grotesk", "Segoe UI", sans-serif;
    --ink: #1c1a16;
    --muted: #6a635e;
    --brand: #ff6b2d;
    --brand-2: #0d8bff;
    --card: rgba(255, 255, 255, 0.84);
    --line: rgba(28, 26, 22, 0.12);
    --shadow: rgba(26, 24, 20, 0.18);
    --bg: radial-gradient(circle at 20% 20%, #fff5e8 0%, #f3efe7 45%, #e9f0ff 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

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

.brand-link {
    font-family: var(--font-display);
    text-decoration: none;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}

.site-info,
.how-to,
.faq {
    margin-bottom: 40px;
}

.section-title h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.section-title p {
    margin: 0;
}

.info-grid {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 28px var(--shadow);
}

.info-card h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.steps {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.steps li {
    margin-bottom: 8px;
}

.faq-list {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-list p {
    margin: 8px 0 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.policy-page .simple-hero {
    margin: 24px 0 32px;
}

.simple-hero h1 {
    margin: 12px 0 8px;
    font-size: 2.2rem;
}

.simple-hero p {
    margin: 0;
    color: var(--muted);
}

.content-block {
    margin-bottom: 28px;
}

.content-block h2 {
    margin: 0 0 10px;
}

.content-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.content-list li {
    margin-bottom: 6px;
}

.contact-form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(13, 139, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 139, 255, 0.12);
    background: #fff;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 2vw + 2.2rem, 3.6rem);
    margin: 16px 0 12px;
}

.hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 45, 0.2);
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.hero-card {
    background: var(--card);
    border-radius: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px var(--shadow);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 16px;
}

.hero-card h2 {
    font-size: 2rem;
    margin: 0;
}

.hero-card p {
    color: var(--muted);
    margin: 0;
}

.slot-machine {
    position: relative;
}

.slot-window {
    border-radius: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.slot-track {
    display: grid;
    place-items: center;
    min-height: 64px;
}

.slot-machine.is-spinning .slot-window {
    animation: slotShake 0.3s ease-in-out infinite;
    filter: brightness(1.02);
}

.slot-machine.is-spinning #menu-title {
    animation: slotBlink 0.3s linear infinite;
}

.slot-machine.is-winner .slot-window {
    animation: slotWin 0.9s ease;
    box-shadow: 0 0 0 3px rgba(13, 139, 255, 0.2), 0 20px 40px rgba(13, 139, 255, 0.25);
}

.slot-machine.is-winner #menu-title {
    animation: slotPop 0.9s ease;
    color: #0c3d6d;
}

.slot-fireworks {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}

.slot-fireworks span {
    position: absolute;
    width: 8px;
    height: 14px;
    border-radius: 3px;
    background: #ff6b2d;
    opacity: 0;
}

.slot-fireworks span:nth-child(even) {
    background: #0d8bff;
}

.slot-machine.is-winner .slot-fireworks {
    opacity: 1;
}

.slot-machine.is-winner .slot-fireworks span {
    animation: slotConfetti 1.4s ease forwards;
}

.slot-fireworks span:nth-child(1) { left: 10%; top: 0%; animation-delay: 0s; }
.slot-fireworks span:nth-child(2) { left: 22%; top: -10%; animation-delay: 0.05s; }
.slot-fireworks span:nth-child(3) { left: 34%; top: -4%; animation-delay: 0.1s; }
.slot-fireworks span:nth-child(4) { left: 46%; top: -14%; animation-delay: 0.15s; }
.slot-fireworks span:nth-child(5) { left: 58%; top: -6%; animation-delay: 0.2s; }
.slot-fireworks span:nth-child(6) { left: 70%; top: -12%; animation-delay: 0.25s; }
.slot-fireworks span:nth-child(7) { left: 82%; top: -2%; animation-delay: 0.3s; }
.slot-fireworks span:nth-child(8) { left: 16%; top: -18%; animation-delay: 0.35s; }
.slot-fireworks span:nth-child(9) { left: 50%; top: -20%; animation-delay: 0.4s; }
.slot-fireworks span:nth-child(10) { left: 90%; top: -16%; animation-delay: 0.45s; }
.slot-fireworks span:nth-child(11) { left: 38%; top: -22%; animation-delay: 0.5s; }
.slot-fireworks span:nth-child(12) { left: 66%; top: -24%; animation-delay: 0.55s; }

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-time {
    font-weight: 600;
    color: var(--brand-2);
}

.pill {
    background: rgba(13, 139, 255, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-2);
}

.hero-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: linear-gradient(135deg, #ff6b2d, #ff9d1a);
    color: #1c1108;
    box-shadow: 0 14px 30px rgba(255, 107, 45, 0.35);
}

.btn.ghost {
    background: rgba(13, 139, 255, 0.12);
    color: #0c3d6d;
    border: 1px solid rgba(13, 139, 255, 0.3);
}

.btn.subtle {
    background: #1c1a16;
    color: #fff7ef;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn.text {
    background: none;
    color: var(--brand-2);
    padding: 0;
}

.btn.small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.btn.big {
    padding: 14px 22px;
    font-size: 1.05rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.filters {
    margin-bottom: 28px;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.filter-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.hint {
    color: var(--muted);
    font-size: 0.92rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-toggle {
    display: flex;
    gap: 8px;
}

.filter-toggle .btn.is-active {
    background: #1c1a16;
    color: #fff7ef;
    border-color: transparent;
}

.selection-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-weight: 600;
}

.chip.is-active {
    background: #1c1a16;
    color: #fff7ef;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.menu-grid.is-hidden {
    display: none;
}

.menu-card {
    background: var(--card);
    border-radius: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(26, 24, 20, 0.1);
    display: grid;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card.is-selected {
    border-color: rgba(13, 139, 255, 0.6);
    box-shadow: 0 18px 36px rgba(13, 139, 255, 0.2);
    animation: selectPulse 0.6s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px rgba(26, 24, 20, 0.16);
}

.menu-card h4 {
    margin: 0;
    font-size: 1.2rem;
}

.menu-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 107, 45, 0.14);
    color: var(--brand);
    font-weight: 600;
}

.saved {
    background: var(--card);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(26, 24, 20, 0.12);
}

.comments {
    margin-top: 28px;
    background: var(--card);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(26, 24, 20, 0.12);
}

.comments-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.partner {
    margin-top: 24px;
    background: var(--card);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(26, 24, 20, 0.12);
}

.partner-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.partner-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(28, 26, 22, 0.08);
}

.partner-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.partner-form label span {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.partner-form input,
.partner-form textarea {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.partner-form input::placeholder,
.partner-form textarea::placeholder {
    color: rgba(106, 99, 94, 0.7);
}

.partner-form textarea {
    resize: vertical;
    min-height: 120px;
}

.partner-form input:focus,
.partner-form textarea:focus {
    outline: none;
    border-color: rgba(13, 139, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 139, 255, 0.15);
    background: #fff;
}

.partner-form .span-2 {
    grid-column: span 2;
}

.partner-form .btn {
    justify-self: start;
    padding: 12px 20px;
}

.form-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.partner-status {
    margin: 12px 0 0;
    color: #0c3d6d;
    font-weight: 600;
}

.partner-status.is-error {
    color: #b44a2a;
}

.is-hidden {
    display: none;
}

.saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.saved-header h3 {
    margin: 0;
}

.saved-list {
    display: grid;
    gap: 12px;
}

.saved-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    display: grid;
    gap: 8px;
}

.saved-item span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 26, 22, 0.5);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    width: min(92vw, 860px);
    max-height: 90vh;
    overflow: auto;
    background: var(--card);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px var(--shadow);
    display: grid;
    gap: 16px;
}

.result-modal {
    z-index: 50;
}

.result-card {
    width: min(92vw, 720px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.modal-header h3 {
    margin: 10px 0 0;
    font-size: 1.4rem;
}

.modal-desc {
    margin: 0;
    color: var(--muted);
}

.ladder-inputs {
    display: grid;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(28, 26, 22, 0.08);
}

.ladder-mode {
    display: flex;
    gap: 8px;
}

.ladder-mode-btn {
    border-radius: 999px;
    padding: 6px 14px;
}

.ladder-mode-btn.is-active {
    background: #1c1a16;
    color: #fff7ef;
    border-color: #1c1a16;
}

.ladder-section {
    display: grid;
    gap: 12px;
}

.ladder-section.is-hidden,
.ladder-section[hidden] {
    display: none;
}

.ladder-inputs span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.ladder-input-group {
    display: grid;
    gap: 10px;
}

.ladder-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ladder-select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
}

.ladder-select:focus {
    outline: none;
    border-color: rgba(13, 139, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 139, 255, 0.12);
    background: #fff;
}

.ladder-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.ladder-input-list {
    display: grid;
    gap: 8px;
}

.ladder-input-list input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
}

.ladder-input-list input:focus {
    outline: none;
    border-color: rgba(13, 139, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(13, 139, 255, 0.12);
    background: #fff;
}

.ladder-controls {
    display: flex;
    justify-content: flex-end;
}

.ladder-board {
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 16px;
    background: rgba(255, 255, 255, 0.75);
    display: grid;
    gap: 12px;
}

.ladder-labels {
    display: grid;
    grid-template-columns: repeat(var(--ladder-columns, 2), minmax(0, 1fr));
    gap: 8px;
}

.ladder-start {
    background: rgba(13, 139, 255, 0.12);
    border: 1px solid rgba(13, 139, 255, 0.3);
    color: #0c3d6d;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 600;
    cursor: pointer;
}

.ladder-start:disabled {
    opacity: 0.55;
    cursor: progress;
}

.ladder-start.is-active {
    background: #1c1a16;
    color: #fff7ef;
}

.ladder-end {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 107, 45, 0.12);
    color: var(--brand);
    font-weight: 600;
    text-align: center;
}

.ladder-end.is-reveal {
    animation: ladderPulse 0.8s ease;
    box-shadow: 0 10px 24px rgba(255, 107, 45, 0.25);
}

#ladder-canvas {
    width: 100%;
    height: 260px;
    display: block;
}

.ladder-result {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(13, 139, 255, 0.1);
    color: #0c3d6d;
    font-weight: 600;
    text-align: center;
}

.ladder-result.is-reveal {
    animation: ladderGlow 0.9s ease;
    background: linear-gradient(135deg, rgba(255, 107, 45, 0.18), rgba(13, 139, 255, 0.2));
    color: #1c1a16;
    box-shadow: 0 18px 36px rgba(13, 139, 255, 0.25);
}

.result-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.result-hero img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(26, 24, 20, 0.18);
    background: #fff;
}

.result-info h4 {
    margin: 14px 0 8px;
    font-size: 1.6rem;
}

.result-info p {
    margin: 0;
    color: var(--muted);
}

.celebration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.celebration span {
    position: absolute;
    width: 10px;
    height: 16px;
    border-radius: 4px;
    opacity: 0;
    animation: confetti 1.6s ease forwards;
}

.celebration span:nth-child(odd) {
    background: #ff6b2d;
}

.celebration span:nth-child(even) {
    background: #0d8bff;
}

.result-modal.is-open .celebration span {
    opacity: 1;
}

.celebration span:nth-child(1) { left: 8%; top: -10%; animation-delay: 0s; }
.celebration span:nth-child(2) { left: 18%; top: -20%; animation-delay: 0.05s; }
.celebration span:nth-child(3) { left: 28%; top: -15%; animation-delay: 0.1s; }
.celebration span:nth-child(4) { left: 38%; top: -25%; animation-delay: 0.15s; }
.celebration span:nth-child(5) { left: 48%; top: -18%; animation-delay: 0.2s; }
.celebration span:nth-child(6) { left: 58%; top: -30%; animation-delay: 0.25s; }
.celebration span:nth-child(7) { left: 68%; top: -12%; animation-delay: 0.3s; }
.celebration span:nth-child(8) { left: 78%; top: -22%; animation-delay: 0.35s; }
.celebration span:nth-child(9) { left: 88%; top: -16%; animation-delay: 0.4s; }
.celebration span:nth-child(10) { left: 12%; top: -28%; animation-delay: 0.45s; }
.celebration span:nth-child(11) { left: 52%; top: -24%; animation-delay: 0.5s; }
.celebration span:nth-child(12) { left: 92%; top: -26%; animation-delay: 0.55s; }

@keyframes ladderGlow {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 rgba(13, 139, 255, 0);
        opacity: 0.5;
    }
    60% {
        transform: scale(1.04);
        box-shadow: 0 18px 36px rgba(13, 139, 255, 0.35);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 18px 36px rgba(13, 139, 255, 0.25);
    }
}

@keyframes ladderPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.6;
    }
    60% {
        transform: scale(1.06);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slotShake {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slotBlink {
    0% {
        opacity: 0.35;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slotPop {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    60% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slotWin {
    0% {
        transform: scale(0.98);
    }
    60% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slotConfetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(180px) rotate(220deg);
        opacity: 0;
    }
}

@keyframes selectPulse {
    0% {
        transform: scale(0.98);
    }
    60% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(420px) rotate(220deg);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .top-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .ladder-controls {
        justify-content: stretch;
    }

    .result-hero {
        grid-template-columns: 1fr;
    }

    .partner-form {
        grid-template-columns: 1fr;
    }

    .partner-form .span-2 {
        grid-column: auto;
    }
}
