* {
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: linear-gradient(145deg, #eef2f7 0%, #dce3ec 100%);
    min-height: 100vh;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card {
    max-width: 950px;
    width: 100%;
    background: rgba(255,255,255,0.96);
    border-radius: 56px;
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.25);
    overflow: hidden;
}
.header {
    background: #0f172a;
    padding: 20px 24px;
    color: white;
    text-align: center;
}
.header h1 {
    margin: 0;
    font-size: 1.6rem;
}
.content {
    padding: 24px;
}
.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 16px;
    border-radius: 44px;
    margin-bottom: 28px;
    justify-content: center;
}
.input-field {
    flex: 1;
    min-width: 85px;
    text-align: center;
}
.input-field label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1e293b;
}
.input-field input {
    width: 100%;
    padding: 10px 8px;
    font-size: 1.2rem;
    text-align: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 36px;
    background: white;
    font-weight: 600;
}
button {
    background: #0f172a;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 48px;
    cursor: pointer;
    margin-bottom: 28px;
}
.schema {
    background: #ffffffcc;
    border-radius: 48px;
    padding: 20px 16px;
    margin-bottom: 28px;
}
.roof {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.roof-item {
    background: #fef9e3;
    border-radius: 28px;
    padding: 12px 16px;
    min-width: 100px;
    text-align: center;
}
.roof-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #b45309;
}
.roof-value {
    font-size: 2rem;
    font-weight: 800;
    color: #7b341e;
}
.main-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.main-cell {
    background: #e6f0fa;
    border-radius: 28px;
    padding: 10px 16px;
    min-width: 85px;
    text-align: center;
}
.middle-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.right-side {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.bottom-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.mission, .talent, .comfort {
    border-radius: 28px;
    padding: 10px 16px;
    min-width: 100px;
    text-align: center;
}
.mission { background: #fde7d9; }
.talent { background: #e0e7ff; }
.comfort { background: #d1fae5; }
.label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2c3e66;
}
.value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0a1c2f;
}
.pot-panel {
    background: #fefce8;
    border-radius: 40px;
    padding: 16px;
    margin: 20px 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
    border: 1px solid #fde68a;
}
.pot-item {
    background: white;
    border-radius: 32px;
    padding: 8px 12px;
    text-align: center;
    min-width: 90px;
}
.pot-number {
    font-size: 1.4rem;
    font-weight: 800;
}
.pot-check {
    margin-top: 6px;
    font-size: 0.7rem;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    background: #f1f5f9;
    border-radius: 36px;
    padding: 16px;
    margin-top: 12px;
}
.stat-block {
    background: white;
    border-radius: 24px;
    padding: 10px;
    text-align: center;
}
.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
}
.stat-number {
    font-size: 1.3rem;
    font-weight: 800;
}
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 40px;
    margin-bottom: 20px;
    text-align: center;
}
.footnote {
    font-size: 0.65rem;
    text-align: center;
    color: #4a627a;
    margin-top: 20px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 30px;
}
@media (max-width: 600px) {
    .pot-item { min-width: 70px; }
    .pot-number { font-size: 1.2rem; }
    .value { font-size: 1.5rem; }
}