:root {
    --bg: #08111f;
    --panel: rgba(12, 22, 42, 0.78);
    --panel-strong: rgba(10, 18, 36, 0.92);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f7fbff;
    --muted: #9eb3cb;
    --primary: #6ee7ff;
    --secondary: #8b5cf6;
    --success: #34d399;
    --warning: #ffd166;
    --danger: #fb7185;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(110, 231, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.18), transparent 26%),
        linear-gradient(145deg, #050b15, #08111f 35%, #071523 100%);
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.page-shell {
    width: min(1600px, calc(100vw - 32px));
    margin: 24px auto 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.background-glow {
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    filter: blur(90px);
    opacity: 0.45;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
}

.background-glow--one {
    top: -120px;
    left: -60px;
    background: rgba(110, 231, 255, 0.38);
}

.background-glow--two {
    right: -80px;
    bottom: 10%;
    background: rgba(139, 92, 246, 0.36);
    animation-delay: -8s;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(50px, -30px, 0) scale(1.12);
    }
}

.glass,
.glass-inner,
.card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.glass-inner {
    background: rgba(6, 12, 26, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card {
    border-radius: 32px;
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(110, 231, 255, 0.12);
    border: 1px solid rgba(110, 231, 255, 0.28);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.hero-card h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.02;
}

.hero-card p {
    margin: 0;
    max-width: 860px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 300px;
}

.feature-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.feature-chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #eaf8ff;
    font-weight: 600;
    font-size: 13px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    border-radius: 28px;
    padding: 24px;
}

.card--wide {
    grid-column: 1 / -1;
}

.card h2,
.section-head h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.muted {
    color: var(--muted);
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.stack-form label,
.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #d5e8f4;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: rgba(110, 231, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.08);
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 700;
    color: #071420;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

.button:active {
    transform: translateY(0);
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.button--primary {
    background: linear-gradient(135deg, #6ee7ff, #7dd3fc);
    box-shadow: 0 16px 36px rgba(110, 231, 255, 0.26);
}

.button--secondary {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.28);
}

.button--success {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #062716;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.24);
}

.button--danger {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    color: #fff;
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.24);
}

.button--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button--small {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.feature-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill--soft {
    color: var(--muted);
    font-weight: 600;
}

.pill--animated {
    position: relative;
    overflow: hidden;
}

.pill--animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: shimmer 3.2s linear infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(120%);
    }
}

.game-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.top-toolbar {
    border-radius: 24px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.room-info-block,
.room-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.room-label,
.metric-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 4px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.board-panel {
    border-radius: 30px;
    padding: 20px;
}

.board-frame {
    position: relative;
    width: min(100%, 940px);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.board {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(11, 1fr);
    gap: 8px;
}

.board-center {
    position: absolute;
    inset: 13% 13%;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    text-align: center;
    gap: 20px;
}

.center-chip {
    display: inline-flex;
    justify-content: center;
    align-self: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(110, 231, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(110, 231, 255, 0.22);
    font-weight: 700;
}

.center-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
}

.center-metrics > div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.center-metrics strong {
    font-size: clamp(16px, 2vw, 22px);
}

.board-cell {
    position: relative;
    min-height: 0;
    border-radius: 18px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(5, 11, 20, 0.86));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.board-cell::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 8px;
    background: var(--accent, rgba(255, 255, 255, 0.18));
}

.board-cell:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.board-cell.is-current {
    box-shadow: 0 0 0 2px rgba(110, 231, 255, 0.24), 0 18px 34px rgba(110, 231, 255, 0.15);
}

.board-cell.is-buyable {
    animation: pulseCell 1.8s ease-in-out infinite;
}

@keyframes pulseCell {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.22);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08);
    }
}

.board-cell__title {
    font-size: 11px;
    line-height: 1.18;
    font-weight: 800;
    padding-top: 6px;
}

.board-cell__meta {
    font-size: 10px;
    color: var(--muted);
}

.board-cell__price {
    font-size: 12px;
    font-weight: 700;
    color: #eaf8ff;
}

.tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.token {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: grid;
    gap: 10px;
}

.player-card.is-current {
    border-color: rgba(110, 231, 255, 0.28);
    box-shadow: 0 14px 30px rgba(110, 231, 255, 0.12);
}

.player-card.is-bankrupt {
    opacity: 0.55;
    filter: grayscale(0.2);
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.player-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-badge {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.player-name {
    font-weight: 800;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.player-tag {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
}

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

.stat-card {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-card strong {
    font-size: 16px;
}

.tabs-card {
    min-height: 480px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.tab-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.tab-button.is-active {
    color: #04101d;
    background: linear-gradient(135deg, #6ee7ff, #bae6fd);
    border-color: transparent;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.action-panel-grid,
.action-card,
.pending-card,
.asset-item,
.log-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.action-panel-grid {
    display: grid;
    gap: 14px;
    padding: 0;
    background: none;
    border: none;
}

.action-card,
.pending-card {
    padding: 16px;
    border-radius: 20px;
}

.action-card h3,
.pending-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.inline-form--triple {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.choice-options {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.choice-button {
    text-align: left;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.choice-button strong {
    display: block;
    margin-bottom: 4px;
}

.choice-button small {
    color: var(--muted);
}

.assets-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asset-item {
    border-radius: 18px;
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}

.asset-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.asset-item__name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.asset-item__swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.asset-item__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.log-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-item {
    border-radius: 16px;
    padding: 14px 16px;
}

.log-item time {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.hover-tooltip {
    position: fixed;
    max-width: 300px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(5, 10, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.34);
    pointer-events: none;
    font-size: 13px;
    line-height: 1.5;
    color: #eaf6ff;
    z-index: 40;
}

.hover-tooltip strong {
    display: block;
    margin-bottom: 4px;
}

.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(5, 10, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.25s ease;
}

.toast--error {
    border-color: rgba(251, 113, 133, 0.28);
}

.toast--success {
    border-color: rgba(52, 211, 153, 0.26);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 60;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 4, 10, 0.62);
}

.modal-card {
    position: relative;
    width: min(860px, calc(100vw - 32px));
    border-radius: 28px;
    padding: 26px;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 28px;
}

.modal-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

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

.modal-stat {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.modal-description {
    color: var(--muted);
    line-height: 1.65;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.owner-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1300px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-side {
        align-items: flex-start;
        min-width: 0;
    }

    .feature-stack {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .page-shell {
        width: min(100vw - 18px, 100%);
        margin: 12px auto 28px;
    }

    .auth-grid,
    .features-grid,
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .top-toolbar,
    .room-info-block,
    .room-meta,
    .section-head,
    .asset-item__top,
    .player-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .center-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .board {
        gap: 5px;
    }

    .board-center {
        inset: 14% 14%;
        padding: 18px;
    }

    .board-cell {
        border-radius: 12px;
        padding: 6px;
    }

    .board-cell::before {
        height: 6px;
    }

    .board-cell__title {
        font-size: 9px;
    }

    .board-cell__meta,
    .board-cell__price {
        font-size: 8px;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .inline-form,
    .inline-form--triple {
        grid-template-columns: 1fr;
    }
}


.board-cell,
.player-card,
.asset-item,
.log-item {
    contain: layout paint;
}

@media (prefers-reduced-motion: reduce), (max-width: 900px) {
    .background-glow,
    .pill--animated::after,
    .board-cell.is-buyable {
        animation: none !important;
    }

    .board-cell:hover,
    .button:hover {
        transform: none;
        box-shadow: none;
    }

    .glass,
    .glass-inner,
    .card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}


.room-alert {
    margin: -8px 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.24);
    color: #fff1b2;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.room-alert.is-critical {
    background: rgba(251, 113, 133, 0.14);
    border-color: rgba(251, 113, 133, 0.32);
    color: #ffe2e8;
}

.player-piece {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.32);
}

.player-piece--small {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 12px;
}

.player-tag--danger {
    color: #ffd6dd;
    background: rgba(251, 113, 133, 0.16);
}

.tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.token {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--token-color, transparent);
    color: #04101d;
}

.token.is-offline {
    opacity: 0.55;
    filter: grayscale(0.3);
}

.token__icon {
    font-size: 13px;
    line-height: 1;
}

.results-table {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.results-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.results-row.is-winner {
    border-color: rgba(250, 204, 21, 0.36);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.08);
}

.results-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-rank {
    min-width: 42px;
    font-weight: 800;
    color: var(--warning);
}

.results-money {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.results-money span {
    color: var(--muted);
    font-size: 12px;
}

.deed-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, #991b2c 0%, #7a1022 100%);
    border: 12px solid #5a0b18;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.35);
}

.deed-card__header {
    position: relative;
    margin: 26px 26px 0;
    border-radius: 22px;
    padding: 18px 20px 16px;
    background: linear-gradient(180deg, #f8d24d 0%, var(--deed-accent, #f8d24d) 100%);
    color: #211600;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12);
    text-align: center;
}

.deed-card__mini {
    font-size: 13px;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.9;
}

.deed-card__title {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.02;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.deed-card__body {
    padding: 26px 34px 30px;
    color: #fff5f6;
}

.deed-card__rent-main {
    text-align: center;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 900;
    margin-bottom: 20px;
}

.deed-card__rent-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.deed-card__rent-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
}

.deed-card__rent-row span {
    color: rgba(255, 245, 246, 0.9);
}

.deed-card__mortgage {
    text-align: center;
    font-weight: 800;
    font-size: 22px;
    margin: 8px 0 14px;
}

.deed-card__build,
.deed-card__note {
    text-align: center;
    color: rgba(255, 245, 246, 0.92);
    line-height: 1.55;
}

.deed-card__build {
    font-weight: 600;
}

.deed-card__note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-style: italic;
}

.deed-card__corner {
    position: absolute;
    width: 102px;
    height: 102px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #facc15, #f59e0b);
    color: #7a1022;
    font-size: 42px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.deed-card__corner--tl {
    top: -26px;
    left: -32px;
    transform: rotate(-20deg);
    border-bottom-right-radius: 28px;
}

.deed-card__corner--br {
    right: -30px;
    bottom: -26px;
    transform: rotate(18deg);
    border-top-left-radius: 28px;
}

@media (max-width: 900px) {
    .results-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-money {
        justify-items: start;
        text-align: left;
    }

    .deed-card__body {
        padding: 22px 20px 24px;
    }

    .deed-card__corner {
        width: 86px;
        height: 86px;
        font-size: 34px;
    }
}
