* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(76, 175, 80, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 196, 0.18), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #eaf7ef 50%, #dceeff 100%);
    color: #1f2937;
    min-height: 100vh;
}

.page {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 40px;
}

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #fff8db 100%);
    border: 4px solid #ffcb05;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 13%, #111827 13% 18%, transparent 18%),
        linear-gradient(to bottom, #ef4444 0 47%, #111827 47% 53%, #ffffff 53% 100%);
    opacity: 0.32;
    border: 5px solid #111827;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.22);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.1;
    color: #2a4b9b;
    position: relative;
    z-index: 1;
}

.hero p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    position: relative;
    z-index: 1;
}

.controls-card,
.output-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.controls-card {
    border: 4px solid #2a4b9b;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.output-card {
    border: 4px solid #ef4444;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.controls-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(135px, 1fr));
    gap: 18px;
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: #1e293b;
}

select {
    width: 100%;
    border-radius: 14px;
    border: 3px solid #2a4b9b;
    padding: 11px 12px;
    font-size: 16px;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    outline: none;
    transition: 0.15s ease;
}

select:hover {
    border-color: #ffcb05;
    background: #fffdf2;
}

select:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
    background: #ffffff;
}

button {
    width: 100%;
    border-radius: 14px;
    border: 3px solid #1e3a8a;
    padding: 12px 14px;
    font-size: 16px;
    background: linear-gradient(135deg, #2a4b9b 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.15s ease;
    box-shadow: 0 8px 18px rgba(42, 75, 155, 0.25);
}

button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #991b1b;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

.pokemon-sprite {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    image-rendering: auto;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid #dbeafe;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.10);
}

.starter-sprite,
.team-sprite,
.moveset-sprite {
    flex: 0 0 56px;
}

.suggestion-sprite,
.boss-sprite {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.output-header h2 {
    margin: 0;
    color: #ef4444;
    font-size: 26px;
}

.output-title-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    border: 3px solid #111827;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.01em;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.10);
}

.game-badge-leafgreen {
    background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
}

.game-badge-firered {
    background: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
    color: #ffffff;
}


.route-preference-card {
    display: grid;
    gap: 4px;
    margin: -4px 0 14px;
    border: 3px solid #dbeafe;
    border-radius: 18px;
    padding: 12px 14px;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.route-preference-card strong {
    color: #1e3a8a;
    font-size: 15px;
}

.route-preference-card span {
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.route-preference-beginner {
    border-color: #86efac;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.route-preference-optimal {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.sprite-toggle-card {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 16px;
}

.sprite-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 3px solid #2a4b9b;
    border-radius: 999px;
    padding: 8px 12px;
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(42, 75, 155, 0.12);
    user-select: none;
}

.sprite-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sprite-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 2px solid #64748b;
    transition: 0.15s ease;
}

.sprite-toggle-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.25);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
    transition: 0.15s ease;
}

.sprite-toggle input:checked + .sprite-toggle-slider {
    background: #86efac;
    border-color: #22c55e;
}

.sprite-toggle input:checked + .sprite-toggle-slider::after {
    transform: translateX(20px);
}

.sprite-toggle-text {
    font-size: 14px;
    white-space: nowrap;
}

.sprites-hidden .pokemon-sprite {
    display: none !important;
}

.output-header p {
    margin: 0;
    color: #475569;
}

.version-differences-card {
    border: 3px solid #ffcb05;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf2 100%);
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.version-differences-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: start;
    padding: 16px;
    cursor: pointer;
    list-style: none;
}

.version-differences-header::-webkit-details-marker {
    display: none;
}

.version-differences-header::after {
    content: "⌄";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffcb05;
    border: 3px solid #111827;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.15s ease;
}

.version-differences-card[open] .version-differences-header::after {
    transform: rotate(180deg);
}

.version-differences-header h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 20px;
}

.version-differences-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 800;
    line-height: 1.4;
}

.version-differences-header span {
    border-radius: 999px;
    padding: 6px 11px;
    background: #ffcb05;
    border: 2px solid #111827;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.version-differences-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.version-difference-item {
    border: 2px solid #bfdbfe;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
}

.version-difference-item strong {
    display: block;
    margin-bottom: 5px;
    color: #1e3a8a;
    font-size: 13px;
}

.version-difference-item span {
    color: #334155;
    font-weight: 900;
    line-height: 1.35;
}

code {
    background: #fff4cc;
    border: 1px solid #ffcb05;
    border-radius: 8px;
    padding: 3px 7px;
    color: #7c5a00;
    font-weight: 700;
}

.section-grid {
    display: grid;
    gap: 18px;
}

.plan-section {
    border: 3px solid #dbeafe;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.plan-section h3 {
    margin: 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2a4b9b 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 20px;
    border-bottom: 4px solid #ffcb05;
}

.plan-section pre {
    margin: 0;
    padding: 20px;
    background: #1f2937;
    color: #f9fafb;
    overflow-x: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}

.starter-section,
.catch-plan-section,
.stage-advice-section,
.final-team-section,
.moveset-section,
.tm-warning-section,
.boss-guide-section {
    border-color: #ffcb05;
}

.starter-grid,
.team-grid,
.moveset-grid,
.tm-warning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    background: #fffdf2;
}

.starter-card,
.team-card,
.moveset-card,
.tm-warning-card {
    border: 3px solid #2a4b9b;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    padding: 16px;
    box-shadow: 0 8px 18px rgba(42, 75, 155, 0.12);
}

.chosen-starter-card {
    border-color: #ef4444;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.starter-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.starter-rank {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #ffcb05;
    border: 3px solid #111827;
    color: #111827;
    font-weight: 900;
}

.starter-card h4 {
    margin: 0;
    font-size: 22px;
    color: #1e3a8a;
}

.starter-card-header p {
    margin: 3px 0 0;
    color: #64748b;
    font-weight: 800;
    text-transform: capitalize;
}

.starter-card-why {
    margin: 0 0 14px;
    color: #334155;
    line-height: 1.45;
}

.chosen-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 11px;
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
    font-size: 13px;
    font-weight: 900;
}


.boss-team-list {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #fffdf2;
}

.boss-guide-list {
    display: grid;
    gap: 18px;
    padding: 18px;
    background: #fffdf2;
}

.boss-guide-group {
    border: 3px solid #ffcb05;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.boss-guide-group-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    background: linear-gradient(135deg, #2a4b9b 0%, #3b82f6 100%);
    border-bottom: 4px solid #ffcb05;
    cursor: pointer;
    list-style: none;
}

.boss-guide-group-header::-webkit-details-marker {
    display: none;
}

.boss-guide-group-header::after {
    content: "⌄";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffcb05;
    border: 3px solid #111827;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.15s ease;
}

.boss-guide-group[open] .boss-guide-group-header::after {
    transform: rotate(180deg);
}

.boss-guide-group-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
}

.boss-guide-group-header p {
    margin: 4px 0 0;
    color: #dbeafe;
    font-weight: 700;
    line-height: 1.4;
}

.boss-guide-group-header span {
    border-radius: 999px;
    padding: 6px 11px;
    background: #ffcb05;
    border: 2px solid #111827;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.boss-guide-group-list {
    padding: 16px;
    background: #fffdf2;
}

.boss-team-list > h4 {
    margin: 0;
    color: #ef4444;
    font-size: 20px;
}

.boss-trainer-card {
    border: 3px solid #2a4b9b;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    padding: 16px;
    box-shadow: 0 8px 18px rgba(42, 75, 155, 0.12);
}

.boss-trainer-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.boss-trainer-header h5 {
    margin: 0;
    color: #1e3a8a;
    font-size: 22px;
}

.boss-trainer-header p {
    margin: 3px 0 0;
    color: #64748b;
    font-weight: 800;
}

.boss-trainer-header span {
    border-radius: 999px;
    padding: 6px 11px;
    background: #ffcb05;
    border: 2px solid #111827;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.boss-trainer-notes {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #bfdbfe;
    color: #334155;
    font-weight: 700;
    line-height: 1.4;
}

.boss-strategy-note {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
    line-height: 1.4;
}

.boss-strategy-note strong {
    display: block;
    margin-bottom: 5px;
    color: #14532d;
    font-size: 14px;
}

.boss-strategy-note p {
    margin: 0;
    color: #166534;
    font-weight: 700;
}

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

.boss-pokemon-card {
    border: 3px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
}

.boss-pokemon-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.boss-pokemon-top > div {
    display: grid;
    gap: 5px;
    justify-items: end;
    text-align: right;
}

.boss-pokemon-top h6 {
    margin: 0;
    color: #1e3a8a;
    font-size: 18px;
}

.boss-pokemon-top span {
    border-radius: 999px;
    padding: 5px 10px;
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.boss-card-section {
    margin-top: 12px;
}

.boss-card-section strong {
    display: block;
    margin-bottom: 7px;
    color: #1e3a8a;
    font-size: 14px;
}

.boss-card-section p {
    margin: 0;
    color: #334155;
    line-height: 1.4;
}

.boss-move-list,
.weakness-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.boss-move-list span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 900;
}

.catch-plan-list {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fffdf2;
}

.catch-card {
    border: 3px solid #2a4b9b;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(42, 75, 155, 0.10);
}

.catch-card summary {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    font-weight: 900;
    color: #1e3a8a;
    list-style: none;
}

.catch-card summary::-webkit-details-marker {
    display: none;
}

.catch-card summary::after {
    content: "⌄";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffcb05;
    border: 3px solid #111827;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.15s ease;
}

.catch-card[open] summary::after {
    transform: rotate(180deg);
}

.catch-card summary span {
    font-size: 18px;
}

.catch-card summary small {
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
}

.catch-card-body {
    padding: 18px;
    border-top: 3px solid #dbeafe;
}

.catch-info-grid,
.catch-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.catch-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catch-info-grid div,
.catch-status-grid div {
    border: 2px solid #dbeafe;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.catch-info-grid strong,
.catch-status-grid h4 {
    display: block;
    margin: 0 0 6px;
    color: #1e3a8a;
    font-size: 14px;
}

.catch-info-grid span,
.catch-status-grid p {
    margin: 0;
    color: #334155;
    line-height: 1.4;
    font-weight: 700;
}

.catch-status-banner,
.carry-forward-box {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 900;
    line-height: 1.4;
}

.catch-status-banner {
    background: #eff6ff;
    border: 2px solid #93c5fd;
    color: #1e3a8a;
}

.carry-forward-box {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #166534;
}

.catch-suggestion-section {
    margin-top: 16px;
}

.catch-suggestion-section h4 {
    margin: 0 0 10px;
    color: #ef4444;
    font-size: 18px;
}

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

.catch-suggestion-card {
    border-radius: 16px;
    padding: 14px;
    background: #ffffff;
    border: 3px solid #dbeafe;
}

.priority-catch {
    border-color: #ef4444;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.alternative-catch {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.suggestion-card-top {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.catch-suggestion-card h5 {
    margin: 0;
    color: #1e3a8a;
    font-size: 17px;
}

.catch-suggestion-card p {
    margin: 0 0 8px;
    color: #334155;
    line-height: 1.4;
}

.suggestion-form {
    font-weight: 900;
    color: #475569;
}

.suggestion-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.suggestion-roles span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #ffffff;
    border: 2px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 900;
}

.none-needed {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    color: #64748b;
    font-weight: 800;
}

.team-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.team-slot {
    display: inline-block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 20%, #111827 20% 28%, transparent 28%),
        linear-gradient(to bottom, #ef4444 0 48%, #111827 48% 54%, #ffffff 54% 100%);
    border: 3px solid #111827;
}

.team-card h4,
.moveset-card h4,
.tm-warning-card h4 {
    margin: 0;
    font-size: 22px;
    color: #1e3a8a;
}

.team-card-top p {
    margin: 3px 0 0;
    color: #64748b;
    font-weight: 700;
}

.type-list,
.role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.type-pill,
.role-list span {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 900;
}

.type-pill {
    border: 2px solid rgba(17, 24, 39, 0.22);
    color: #111827;
}

.role-list span {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    color: #1e3a8a;
}

.type-normal {
    background: #d4d4d8;
}

.type-fire {
    background: #fb923c;
}

.type-water {
    background: #60a5fa;
}

.type-electric {
    background: #fde047;
}

.type-grass {
    background: #86efac;
}

.type-ice {
    background: #bae6fd;
}

.type-fighting {
    background: #f87171;
}

.type-poison {
    background: #d8b4fe;
}

.type-ground {
    background: #d6b36a;
}

.type-flying {
    background: #c7d2fe;
}

.type-psychic {
    background: #f9a8d4;
}

.type-bug {
    background: #bef264;
}

.type-rock {
    background: #c4a35a;
}

.type-ghost {
    background: #a78bfa;
}

.type-dragon {
    background: #93c5fd;
}

.type-dark {
    background: #9ca3af;
}

.type-steel {
    background: #cbd5e1;
}

.team-card-why {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.45;
}

.team-card-location {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
}

.moveset-card-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.move-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.move-card {
    border: 2px solid #bfdbfe;
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
}

.move-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.move-card-header strong {
    color: #111827;
    font-size: 16px;
}

.move-card-header span {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.priority-core .move-card-header span {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
}

.priority-recommended .move-card-header span {
    background: #dbeafe;
    color: #1e3a8a;
    border: 2px solid #93c5fd;
}

.priority-optional .move-card-header span {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #facc15;
}

.move-card p {
    margin: 0 0 8px;
    color: #334155;
    line-height: 1.4;
}

.move-card small {
    display: block;
    color: #64748b;
    font-weight: 700;
    line-height: 1.35;
}

.moveset-notes {
    margin: 14px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    line-height: 1.4;
}

.tm-warning-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.tm-warning-header span {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.warning-buyable .tm-warning-header span {
    background: #dbeafe;
    color: #1e3a8a;
    border: 2px solid #93c5fd;
}

.warning-limited .tm-warning-header span {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #facc15;
}

.warning-postgame .tm-warning-header span {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.warning-clean .tm-warning-header span {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
}

.warning-limited {
    border-color: #facc15;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.warning-postgame {
    border-color: #ef4444;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.warning-clean {
    border-color: #22c55e;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.tm-warning-source {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-weight: 900;
    line-height: 1.35;
}

.tm-warning-message {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.45;
}

.tm-usage-list {
    display: grid;
    gap: 8px;
}

.tm-usage {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    border: 2px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
    padding: 9px 10px;
}

.tm-usage strong {
    color: #111827;
}

.tm-usage span {
    color: #334155;
    font-weight: 700;
}

.tm-usage em {
    color: #64748b;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.empty-state {
    padding: 28px;
    border: 3px dashed #93c5fd;
    border-radius: 16px;
    background: #eff6ff;
    color: #2a4b9b;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 950px) {
    .starter-grid,
    .team-grid,
    .moveset-grid,
    .tm-warning-grid,
    .version-differences-grid,
    .boss-pokemon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catch-info-grid,
    .catch-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catch-suggestion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .controls-form {
        grid-template-columns: 1fr;
    }

    .output-header {
        display: block;
    }

    .output-header p {
        margin-top: 8px;
    }

    .sprite-toggle-card {
        justify-content: flex-start;
    }

    .route-preference-card {
        margin: 0 0 14px;
    }

    .hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 620px) {
    .boss-pokemon-top > div {
        justify-items: start;
        text-align: left;
    }

    .starter-grid,
    .team-grid,
    .moveset-grid,
    .tm-warning-grid,
    .version-differences-grid,
    .boss-pokemon-grid,
    .catch-info-grid,
    .catch-status-grid {
        grid-template-columns: 1fr;
    }

    .tm-usage {
        grid-template-columns: 1fr;
    }

    .catch-card summary,
    .boss-guide-group-header,
    .version-differences-header {
        grid-template-columns: 1fr auto;
    }

    .catch-card summary small {
        grid-column: 1 / -1;
    }

    .boss-guide-group-header span,
    .version-differences-header span {
        grid-column: 1 / 2;
    }
}
/* Mobile polish pass */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

select,
button {
    min-height: 48px;
}

.output-title-line > *,
.version-differences-header > *,
.boss-guide-group-header > *,
.boss-trainer-header > *,
.catch-card summary > *,
.team-card-top > *,
.moveset-card-top > *,
.suggestion-card-top > *,
.move-card-header > *,
.tm-warning-header > * {
    min-width: 0;
}

@media (max-width: 1100px) {
    .controls-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .controls-form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .page {
        width: min(100% - 20px, 1200px);
        padding: 18px 0 26px;
    }

    .hero,
    .controls-card,
    .output-card {
        border-width: 3px;
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .hero {
        padding: 20px;
    }

    .hero::after {
        right: -42px;
        top: -42px;
        width: 126px;
        height: 126px;
        opacity: 0.22;
    }

    .hero h1 {
        max-width: 75%;
        font-size: 28px;
    }

    .hero p {
        max-width: 82%;
        font-size: 15px;
        line-height: 1.4;
    }

    .controls-card,
    .output-card {
        padding: 14px;
    }

    .controls-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .controls-form button {
        grid-column: auto;
    }

    label {
        gap: 6px;
        font-size: 14px;
    }

    select,
    button {
        border-width: 2px;
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 16px;
    }

    button:hover {
        transform: none;
    }

    .output-header {
        display: grid;
        gap: 8px;
        margin-bottom: 14px;
    }

    .output-header h2 {
        font-size: 23px;
    }

    .output-header p {
        margin-top: 0;
        line-height: 1.4;
    }

    .game-badge {
        padding: 5px 10px;
        border-width: 2px;
        font-size: 12px;
    }

    .route-preference-card {
        border-width: 2px;
        border-radius: 16px;
        padding: 10px 12px;
    }

    .route-preference-card strong {
        font-size: 14px;
    }

    .route-preference-card span {
        font-size: 13px;
    }

    .sprite-toggle-card {
        justify-content: stretch;
        margin: 0 0 14px;
    }

    .sprite-toggle {
        width: 100%;
        justify-content: center;
        border-width: 2px;
        padding: 9px 12px;
    }

    .plan-section h3 {
        padding: 12px 14px;
        font-size: 18px;
    }

    .starter-grid,
    .team-grid,
    .moveset-grid,
    .tm-warning-grid,
    .boss-team-list,
    .boss-guide-list,
    .catch-plan-list {
        padding: 12px;
        gap: 12px;
    }

    .starter-card,
    .team-card,
    .moveset-card,
    .tm-warning-card,
    .boss-trainer-card,
    .catch-card,
    .boss-guide-group {
        border-width: 2px;
        border-radius: 15px;
    }

    .starter-card,
    .team-card,
    .moveset-card,
    .tm-warning-card,
    .boss-trainer-card {
        padding: 13px;
    }

    .pokemon-sprite {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .starter-sprite,
    .team-sprite,
    .moveset-sprite {
        flex-basis: 48px;
    }

    .suggestion-sprite,
    .boss-sprite {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .starter-card h4,
    .team-card h4,
    .moveset-card h4,
    .tm-warning-card h4,
    .boss-trainer-header h5 {
        font-size: 20px;
    }

    .version-differences-header,
    .boss-guide-group-header,
    .catch-card summary {
        padding: 13px;
        gap: 10px;
    }

    .version-differences-header::after,
    .boss-guide-group-header::after,
    .catch-card summary::after {
        width: 30px;
        height: 30px;
        border-width: 2px;
        font-size: 18px;
    }

    .version-differences-grid {
        padding: 0 12px 12px;
        gap: 10px;
    }

    .boss-guide-group-list {
        padding: 12px;
    }

    .boss-trainer-header {
        align-items: flex-start;
    }

    .boss-pokemon-card {
        border-width: 2px;
        border-radius: 14px;
        padding: 12px;
    }

    .catch-card-body {
        padding: 13px;
    }

    .catch-info-grid,
    .catch-status-grid,
    .catch-suggestion-grid,
    .boss-pokemon-grid {
        gap: 10px;
    }

    .catch-info-grid div,
    .catch-status-grid div,
    .catch-suggestion-card,
    .move-card,
    .tm-usage {
        border-width: 2px;
        border-radius: 12px;
    }

    .type-list,
    .role-list,
    .boss-move-list,
    .weakness-list,
    .suggestion-roles {
        gap: 6px;
    }

    .type-pill,
    .role-list span,
    .boss-move-list span,
    .suggestion-roles span {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 14px, 1200px);
        padding-top: 8px;
    }

    .hero,
    .controls-card,
    .output-card {
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .hero {
        padding: 16px;
    }

    .hero h1 {
        max-width: 78%;
        font-size: 24px;
        line-height: 1.12;
    }

    .hero p {
        max-width: 86%;
        font-size: 14px;
    }

    .controls-card,
    .output-card {
        padding: 10px;
    }

    .output-title-line {
        gap: 8px;
    }

    .output-header h2 {
        font-size: 21px;
    }

    .starter-grid,
    .team-grid,
    .moveset-grid,
    .tm-warning-grid,
    .version-differences-grid,
    .boss-pokemon-grid,
    .catch-info-grid,
    .catch-status-grid {
        grid-template-columns: 1fr;
    }

    .starter-grid,
    .team-grid,
    .moveset-grid,
    .tm-warning-grid,
    .boss-team-list,
    .boss-guide-list,
    .catch-plan-list {
        padding: 10px;
    }

    .starter-card,
    .team-card,
    .moveset-card,
    .tm-warning-card,
    .boss-trainer-card {
        padding: 11px;
    }

    .starter-card-header,
    .team-card-top,
    .moveset-card-top,
    .suggestion-card-top {
        gap: 9px;
    }

    .starter-rank,
    .team-slot {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-width: 2px;
        font-size: 13px;
    }

    .pokemon-sprite {
        width: 42px;
        height: 42px;
    }

    .starter-sprite,
    .team-sprite,
    .moveset-sprite {
        flex-basis: 42px;
    }

    .suggestion-sprite,
    .boss-sprite {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .version-differences-header,
    .boss-guide-group-header,
    .catch-card summary {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 11px;
    }

    .version-differences-header h3,
    .boss-guide-group-header h4 {
        font-size: 18px;
    }

    .catch-card summary span {
        font-size: 16px;
    }

    .catch-card summary small,
    .version-differences-header p,
    .boss-guide-group-header p {
        font-size: 13px;
    }

    .version-differences-header span,
    .boss-guide-group-header span {
        grid-column: 1 / 2;
        justify-self: start;
        padding: 5px 9px;
        font-size: 12px;
    }

    .catch-card summary small {
        grid-column: 1 / -1;
    }

    .boss-trainer-header,
    .tm-warning-header,
    .move-card-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .boss-trainer-header span,
    .tm-warning-header span,
    .move-card-header span {
        justify-self: start;
    }

    .boss-pokemon-top {
        justify-content: flex-start;
    }

    .boss-pokemon-top > div {
        justify-items: start;
        text-align: left;
    }

    .boss-pokemon-top h6 {
        font-size: 17px;
    }

    .catch-card-body,
    .boss-guide-group-list {
        padding: 10px;
    }

    .catch-info-grid,
    .catch-status-grid {
        margin-bottom: 12px;
    }

    .catch-status-banner,
    .carry-forward-box,
    .boss-trainer-notes,
    .boss-strategy-note,
    .moveset-notes {
        padding: 10px;
        margin-bottom: 12px;
    }

    .move-list {
        gap: 8px;
    }

    .move-card {
        padding: 10px;
    }

    .tm-usage {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .empty-state {
        padding: 18px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        max-width: 100%;
        font-size: 22px;
    }

    .hero p {
        max-width: 100%;
    }

    .hero::after {
        opacity: 0.14;
    }

    .game-badge,
    .version-differences-header span,
    .boss-guide-group-header span,
    .boss-trainer-header span {
        white-space: normal;
    }
}

.page-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.page-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 3px solid #2a4b9b;
    border-radius: 999px;
    padding: 8px 16px;
    background: #ffffff;
    color: #2a4b9b;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.page-tab:hover,
.page-tab.active {
    background: linear-gradient(135deg, #2a4b9b 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: #1e3a8a;
}

.challenge-summary-text,
.challenge-note {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.5;
}

.challenge-note {
    border: 3px solid #dbeafe;
    border-radius: 16px;
    padding: 12px;
    background: #eff6ff;
    font-weight: 800;
    color: #1e3a8a;
}

.challenge-rule-grid,
.challenge-warning-list,
.challenge-boss-warning-list {
    display: grid;
    gap: 12px;
}

.challenge-rule-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.challenge-rule-card,
.challenge-warning-card,
.challenge-boss-warning-card {
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
    border: 3px solid #dbeafe;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.challenge-rule-card {
    display: grid;
    gap: 6px;
}

.challenge-rule-card strong {
    color: #2a4b9b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.challenge-rule-card span,
.challenge-warning-card,
.challenge-boss-warning-card p {
    color: #475569;
    line-height: 1.45;
}

.challenge-warning-card,
.challenge-boss-warning-card {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 800;
}

.challenge-boss-warning-card {
    display: grid;
    gap: 6px;
}

.challenge-boss-warning-card strong {
    color: #9a3412;
    font-size: 16px;
}

.challenge-boss-warning-card span {
    color: #1e293b;
    font-weight: 900;
}

.challenge-boss-warning-card p {
    margin: 0;
}

@media (max-width: 760px) {
    .page-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .page-tab {
        width: 100%;
        padding: 8px 10px;
    }

    .challenge-rule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page-tabs {
        grid-template-columns: 1fr;
    }
}

.hm-helper-section {
    border-color: #ffcb05;
}

.hm-helper-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #fffdf2;
}

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

.hm-helper-summary > div,
.hm-best-helper-card,
.hm-fallback-card,
.hm-helper-notes {
    border: 3px solid #2a4b9b;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    padding: 16px;
    box-shadow: 0 8px 18px rgba(42, 75, 155, 0.12);
}

.hm-helper-summary strong,
.hm-fallback-card h4,
.hm-best-helper-card h4 {
    color: #1e3a8a;
}

.hm-helper-summary p,
.hm-best-helper-card p,
.hm-fallback-card p,
.hm-helper-notes p {
    margin: 6px 0 0;
    color: #334155;
    line-height: 1.45;
}

.hm-helper-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hm-helper-card-top h4 {
    margin: 4px 0 0;
    font-size: 24px;
}

.hm-helper-label {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    background: #ffcb05;
    border: 2px solid #111827;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hm-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.hm-pill-list span {
    border-radius: 999px;
    padding: 7px 11px;
    background: #dbeafe;
    border: 2px solid #93c5fd;
    color: #1e3a8a;
    font-weight: 900;
}

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

.hm-fallback-card h4 {
    margin: 0;
    font-size: 20px;
}

.hm-mini-helper-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.hm-mini-helper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    padding: 9px 10px;
}

.hm-mini-helper strong,
.hm-mini-helper span {
    display: block;
    line-height: 1.35;
}

.hm-mini-helper strong {
    color: #111827;
}

.hm-mini-helper span {
    color: #64748b;
    font-weight: 700;
}

.hm-helper-sprite {
    width: 64px;
    height: 64px;
}

.hm-mini-sprite {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.hm-helper-notes {
    border-color: #facc15;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

@media (max-width: 950px) {
    .hm-fallback-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hm-helper-panel {
        padding: 12px;
        gap: 12px;
    }

    .hm-helper-summary {
        grid-template-columns: 1fr;
    }

    .hm-helper-summary > div,
    .hm-best-helper-card,
    .hm-fallback-card,
    .hm-helper-notes {
        border-width: 2px;
        border-radius: 15px;
        padding: 13px;
    }

    .hm-helper-card-top h4 {
        font-size: 20px;
    }
}

.held-item-section {
    border-color: #ffcb05;
}

.held-item-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: #fffdf2;
}

.held-item-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.held-item-card,
.held-item-notes {
    border: 3px solid #2a4b9b;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    padding: 16px;
    box-shadow: 0 8px 18px rgba(42, 75, 155, 0.12);
}

.held-item-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.held-item-card-top h4 {
    margin: 4px 0 0;
    color: #1e3a8a;
    font-size: 22px;
}

.held-item-card-top p,
.held-item-card p,
.held-item-notes p {
    margin: 6px 0 0;
    color: #334155;
    line-height: 1.45;
}

.held-item-label {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    background: #ffcb05;
    border: 2px solid #111827;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.held-item-sprite {
    width: 64px;
    height: 64px;
}

.held-item-notes {
    border-color: #facc15;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.item-priority-core {
    border-color: #ef4444;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

@media (max-width: 950px) {
    .held-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .held-item-panel {
        padding: 12px;
        gap: 12px;
    }

    .held-item-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .held-item-card,
    .held-item-notes {
        border-width: 2px;
        border-radius: 15px;
        padding: 13px;
    }

    .held-item-card-top h4 {
        font-size: 20px;
    }

    .held-item-sprite {
        width: 52px;
        height: 52px;
    }
}

.saved-builds-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 4px solid #64748b;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.saved-builds-header h2 {
    margin: 0 0 6px;
    color: #334155;
    font-size: 24px;
}

.saved-builds-header p,
.saved-builds-empty,
.saved-build-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.save-build-button,
.delete-saved-build-button {
    width: auto;
    white-space: nowrap;
}

.save-build-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    background: #94a3b8;
    border-color: #64748b;
    box-shadow: none;
}

.save-build-button:disabled:hover {
    transform: none;
    background: #94a3b8;
    border-color: #64748b;
    box-shadow: none;
}

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

.saved-build-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 3px solid #dbeafe;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.saved-build-card a {
    display: inline-block;
    color: #1e3a8a;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 4px;
}

.saved-build-card a:hover {
    color: #ef4444;
    text-decoration: underline;
}

.delete-saved-build-button {
    border-width: 2px;
    padding: 8px 12px;
    font-size: 14px;
    background: #ffffff;
    color: #991b1b;
    border-color: #ef4444;
    box-shadow: none;
}

.delete-saved-build-button:hover {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #991b1b;
    box-shadow: none;
}

@media (max-width: 620px) {
    .saved-builds-card {
        border-width: 3px;
        border-radius: 18px;
        padding: 16px;
    }

    .saved-builds-header,
    .saved-build-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .save-build-button,
    .delete-saved-build-button {
        width: 100%;
    }
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 32px;
    padding: 0 4px;
    color: #5f6f8a;
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 680px) {
    .site-footer {
        width: min(100% - 24px, 1120px);
        margin-bottom: 24px;
        font-size: 0.78rem;
    }
}
