.rs-page { max-width:1140px; margin:0 auto; padding:clamp(20px,4.8vw,64px) clamp(16px,3vw,40px) 85px; color:var(--ink,#263b31); width:100%; box-sizing:border-box; }
.rs-page *, .rs-page *::before, .rs-page *::after {box-sizing:border-box}
.rs-page h1,.rs-page h2,.rs-page h3 {font-family:Cabinet,Georgia,serif;line-height:1.08; margin:0; color:var(--ink,#263b31);}
.rs-title {max-width:760px; margin-bottom:30px;}
.rs-title h1,.rs-result-hero h1 {font-size:clamp(36px,6vw,70px); letter-spacing:-.045em;line-height:1.04;}
.rs-page h2 {font-size:clamp(24px,3.2vw,37px);letter-spacing:-.035em;}
.rs-page h3 {font-size:clamp(20px,2.3vw,26px);letter-spacing:-.025em;}
.rs-page p {font-size:16px;line-height:1.55; margin:.6em 0 1em;}
.rs-page .btn {min-height:46px; white-space:normal;}
.rs-page button:focus-visible,.rs-page input:focus-visible,.rs-page select:focus-visible,.rs-page textarea:focus-visible {outline:3px solid #1f7264;outline-offset:3px;}
.rs-card {border:1px solid var(--line,#d7d4be);border-radius:18px;background:var(--paper,#fffdf6);padding:clamp(17px,2.6vw,32px);margin:0 0 20px; min-width:0;}
.rs-card>h2:first-child {margin-bottom:16px;}
.rs-card .rs-section-heading {display:flex;align-items:center;gap:10px;margin-bottom:15px;}
.rs-actions {display:flex; flex-wrap:wrap;gap:10px;align-items:center;}
.rs-top-actions {margin:18px 0 24px;}
.rs-score-layout,.rs-results-layout {display:grid;grid-template-columns:minmax(0,1.23fr) minmax(290px,.9fr);align-items:start;gap:18px;}
.rs-totals {position:sticky;top:85px;background:#fbf4df;}
.rs-sheet fieldset {margin:20px 0 22px;padding:13px 0 0;border:0;border-top:1px solid var(--line,#d7d4be);}
.rs-sheet legend {font-weight:700;padding:0 .7em 0 0;color:var(--green,#334f3b);}
.rs-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin:0 0 12px;}
.rs-field {min-width:0; display:flex;flex-direction:column;justify-content:space-between;gap:6px;}
.rs-input-label,.rs-field label {font-size:16px;line-height:1.35;font-weight:600;}
.rs-input-label {display:flex;flex-direction:column;gap:7px;}
.rs-input-label>span {font-weight:400;}
.rs-input-label select,.rs-input-label input,.rs-input-label textarea {width:100%;min-width:0;min-height:46px;font:inherit;font-size:16px;color:var(--ink,#263b31);background:#fffefa;border:1px solid #908d78;border-radius:8px;padding:9px 10px;}
.rs-input-label textarea {resize:vertical;}
.rs-step {display:flex;min-height:46px;border:1px solid #908d78; border-radius:8px;background:#fffefa;align-items:stretch;}
.rs-step input {color:var(--ink,#263b31);border:0;min-width:0;width:100%;text-align:center;background:transparent;font:inherit;font-weight:650;font-size:17px;appearance:textfield;border-radius:2px;}
.rs-step input::-webkit-inner-spin-button {appearance:none;}
.rs-step button {flex:0 0 44px;min-height:44px;border:0;border-radius:7px;color:var(--green,#334f3b);font:inherit;font-size:22px;font-weight:650;background:transparent;cursor:pointer;}
.rs-step button:disabled {opacity:.45;cursor:default;}
.rs-step button:not(:disabled):hover {background:#eef0df;}
.rs-check {display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;line-height:1.4;}
.rs-check input {width:21px;height:21px;accent-color:var(--green,#42633f);flex-shrink:0;}
.rs-warning {padding:12px 14px;background:#ffebd9;border-left:4px solid #8b3f1f;color:#703016;margin:10px 0 14px;line-height:1.4;}
.rs-caption {font-size:14px!important;color:#52624d;margin-bottom:0!important;}
.rs-table {border-collapse:collapse;width:100%;font-size:16px;line-height:1.34;margin:12px 0;color:var(--ink,#263b31);font-variant-numeric:tabular-nums;}
.rs-table th,.rs-table td {text-align:right;padding:9px 3px;vertical-align:middle;border-bottom:1px solid var(--line,#d7d4be);}
.rs-table th:first-child {text-align:left; padding-right:8px;}
.rs-table tbody th {font-weight:500;}
.rs-table thead th {font-size:14px;color:#465641;font-weight:700;}
.rs-table tfoot th,.rs-table tfoot td {border-bottom:0;border-top:2px solid #667651;color:var(--green,#334f3b);font-weight:800;padding-top:12px;}
.rs-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.rs-result-hero {position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.25fr .9fr;min-height:290px;background:#dce6bc;border-radius:24px;}
.rs-result-hero.rs-loss {background:#f6ddc9;}
.rs-result-hero.rs-draw {background:#e0e7e1;}
.rs-result-content {z-index:1;align-self:center;padding:clamp(25px,4vw,51px);min-width:0;}
.rs-result-hero p.rs-kicker {margin:0 0 13px;text-transform:uppercase;letter-spacing:.09em;font-size:13px;font-weight:750;}
.rs-result-hero p.rs-diff {margin:8px 0 0;font-weight:600;}
.rs-final-pair {display:flex;gap:18px;align-items:flex-end;margin-top:15px;}
.rs-final-pair>div {display:flex;flex-direction:column;}
.rs-final-pair span {font-size:16px;}
.rs-final-pair strong {font-family:Cabinet,Georgia,serif;font-size:clamp(45px,6vw,79px);line-height:1;font-variant-numeric:tabular-nums;}
.rs-final-pair .rs-divider {font-size:30px;opacity:.48;align-self:center;padding-top:18px;}
.rs-result-art {align-self:stretch;position:relative;display:grid;place-items:center;background:#b3c4ab url('../assets/hero-home.webp') 87% 50% / cover no-repeat;clip-path:ellipse(95% 117% at 95% 57%);}
.rs-rosette {align-self:end;justify-self:end;margin:0 15px 15px 0;display:grid;place-items:center;width:85px;height:85px;background:#ffe6a8;border:4px double #76551f;border-radius:50%;box-shadow:0 4px 0 #876a36;}
.rs-loss .rs-rosette {background:#f5dcc7;border-color:#79523c;box-shadow:0 4px 0 #7f5744; }
.rs-draw .rs-rosette {background:#eee4c8;}
.rs-dl {margin:15px 0 0;}
.rs-dl div {display:flex;justify-content:space-between;gap:14px;padding:5px 0;align-items:baseline;}
.rs-dl dd {font-weight:650;margin:0;text-align:right;}
.rs-test-form {display:grid;gap:16px;margin:16px 0 25px;}
.rs-test-form>button {justify-self:start;}
.rs-test .rs-actions {margin-top:15px;}
.rs-stat-tiles {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px;}
.rs-stat-tiles>div {border:1px solid var(--line,#d7d4be);border-radius:14px;padding:19px;background:#ecefdb;display:flex;flex-direction:column;gap:5px;}
.rs-stat-tiles strong {font-family:Cabinet,Georgia,serif;font-size:clamp(32px,4.6vw,53px);line-height:1;}
.rs-history-head,.rs-ach-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.rs-history-head .rs-input-label {min-width:150px;}
.rs-history {margin:14px 0 0;}
.rs-history-row {display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;border-top:1px solid var(--line,#d7d4be);width:100%;min-height:70px;padding:12px 2px;cursor:pointer;color:var(--ink,#263b31);font:inherit;}
.rs-history-row:hover {background:#f6f6e8;}
.rs-history-row strong,.rs-history-row small {display:block;}
.rs-history-row small {font-size:14px;color:#4d604e;}
.rs-history-score {font-weight:750;font-variant-numeric:tabular-nums;margin-left:auto;white-space:nowrap;}
.rs-history-score small {font-weight:400;}
.rs-history-arrow {font-size:25px;color:#536853;}
.rs-history-symbol,.rs-ach-icon {display:grid;place-items:center;background:#e9eed7;border-radius:50%;width:45px;height:45px;flex:0 0 auto;}
.rs-history-symbol.rs-loss {background:#f6e2d1;}
.rs-achievements,.rs-bands {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:18px;}
.rs-bands>div {background:#f3f3e7;border-radius:12px;padding:15px;}
.rs-bands p {margin:.4em 0;}
.rs-ach {display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--line,#d7d4be);border-radius:13px;}
.rs-ach span:not(.rs-ach-icon),.rs-ach strong,.rs-ach small {display:block;}
.rs-ach span:not(.rs-ach-icon) {margin-top:4px;line-height:1.4;}
.rs-ach small {font-weight:650;margin-top:8px;color:#58624d;}
.rs-ach-icon {width:39px;height:39px;background:#e9e8da;}
.rs-earned {background:#f8f2d7;border-color:#d6bb71;}
.rs-earned .rs-ach-icon {background:#f6dfa0;}
.rs-empty {text-align:center;margin-bottom:22px;padding:clamp(25px,5vw,52px);border-radius:18px;border:1px solid var(--line,#d7d4be);background:#eef1db;}
.rs-empty-illustration {display:block;object-fit:cover;margin:0 auto 17px;width:92px;height:92px;border-radius:50%;background:#f8e7bd;}
.rs-empty .btn {max-width:100%;}
@media (max-width:840px) {.rs-achievements {grid-template-columns:repeat(2,minmax(0,1fr));}.rs-score-layout,.rs-results-layout {grid-template-columns:minmax(0,1fr);gap:0;}.rs-totals {position:static;}.rs-stats-tiles {gap:8px;}}
@media (max-width:580px) {.rs-page {padding:24px 16px 90px;}.rs-stat-tiles {grid-template-columns:repeat(2,minmax(0,1fr));}.rs-achievements,.rs-bands {grid-template-columns:1fr;}.rs-result-hero {grid-template-columns:minmax(0,1fr) 28%;min-height:240px;}.rs-result-content {padding:22px 0 22px 19px;}.rs-final-pair {gap:12px;}.rs-rosette {width:52px;height:52px;margin:0 8px 10px 0;}.rs-rosette svg {width:40px;height:40px;}.rs-title {margin-bottom:20px;}.rs-result-hero h1 {font-size:clamp(34px,9.5vw,47px);}.rs-history-head .rs-input-label {width:100%;}.rs-history-symbol {width:36px;height:36px;}.rs-table {font-size:16px;}.rs-top-actions .btn {flex:1 1 130px;}.rs-history-row {gap:8px;}.rs-step button {flex-basis:44px;}}
@media (max-width:410px) {.rs-fields {grid-template-columns:1fr;gap:10px;}.rs-field {display:grid;grid-template-columns:minmax(0,1fr) 136px;align-items:center;gap:9px;}.rs-step input {width:44px;}.rs-actions .btn {flex:1 1 120px;}.rs-card {padding:15px;}.rs-history-symbol {display:none;}.rs-dl {font-size:15px;}.rs-result-hero.rs-draw h1 {font-size:30px;}}
@media (prefers-reduced-motion:reduce) {.rs-page * {animation:none!important;transition:none!important;}}
