:root {
    --page-background: #232428;
    --site-background: #2b2d31;
    --panel-background: #313338;

    --blue-dark: #f2f3f5;
    --blue: #8ba5c9;
    --blue-light: #3a3c43;
    --blue-pale: #292b30;

    --border: #41434a;
    --text: #dbdee1;
    --muted: #a0a4ad;

    --link: #a5b9d6;
    --link-hover: #c5d4e9;

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: var(--page-background);
}

body {
    margin: 0;
    padding: 22px 14px;
    min-height: 100vh;
    background: var(--page-background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Main website frame */

.site-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--site-background);
    border: 1px solid #3b3d43;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 32px rgb(0 0 0 / 22%);
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 122px;
    padding: 20px 24px;
    background: #313338;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.brand-mark {
    display: flex;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid #68758a;
    border-radius: 17px;
    background: linear-gradient(145deg, #687c99, #424d60);
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: -2px;
}

.brand-text h1 {
    margin: 0;
    color: #f2f3f5;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.brand-text p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1px;
}

.header-account {
    flex: 0 0 205px;
    text-align: center;
}

.account-welcome {
    margin: 0 0 9px;
    color: var(--text);
    font-weight: bold;
}

.login-button {
    display: inline-block;
    min-width: 150px;
    padding: 9px 17px;
    border: 1px solid #8ba5c9;
    border-radius: var(--radius-small);
    background: #8ba5c9;
    color: #202329;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

.login-button:hover {
    background: #a5b9d6;
    color: #202329;
    text-decoration: none;
    transform: translateY(-1px);
}

.account-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

/* Welcome strip */

.welcome-strip {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: #34363c;
    color: var(--text);
    font-weight: bold;
    text-align: center;
}

/* Main layout */

.page-columns {
    display: grid;
    grid-template-columns: 174px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px;
    background: var(--site-background);
}

.sidebar-left {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #3b3d43;
    border-radius: var(--radius-medium);
    background: #26282d;
}

/* Navigation */

.directory-title {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: #383a40;
    color: #f2f3f5;
    font-size: 13px;
    font-weight: bold;
}

.directory-section {
    margin: 0;
    padding: 0 0 5px;
    border-bottom: 1px solid #36383e;
}

.directory-section:last-child {
    border-bottom: 0;
}

.directory-section h2 {
    margin: 0;
    padding: 7px 9px;
    border-bottom: 1px solid #36383e;
    background: #2e3035;
    color: #d5d8de;
    font-size: 12px;
    font-weight: bold;
}

.directory-section ul {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.directory-section li {
    margin: 0;
    padding: 0;
}

.directory-section a {
    display: block;
    margin: 1px 5px;
    padding: 5px 7px 5px 10px;
    border-radius: 6px;
    color: #b9bec8;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.directory-section a::before {
    content: "›";
    display: inline-block;
    width: 12px;
    margin-left: -3px;
    color: #8ba5c9;
    font-weight: bold;
}

.directory-section a:hover {
    background: #404249;
    color: #ffffff;
    text-decoration: none;
}

/* Main content */

.main-content {
    min-width: 0;
}

/* Feature banner */

.feature-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 21px;
    border: 1px solid #41434a;
    border-radius: var(--radius-large);
    background: #313338;
}

.feature-icon {
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 1px solid #50535c;
    border-radius: 14px;
    background: #404249;
    color: #c5d4e9;
    font-size: 34px;
}

.feature-banner h2 {
    margin: 0 0 6px;
    color: #f2f3f5;
    font-size: 22px;
    line-height: 1.3;
}

.feature-banner p {
    margin: 0;
    color: #b9bec8;
    font-size: 13px;
}

/* Content panels */

.panel {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #3b3d43;
    border-radius: var(--radius-medium);
    background: var(--panel-background);
    box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
}

.panel-heading {
    margin: 0;
    padding: 10px 13px;
    border-bottom: 1px solid #41434a;
    background: #383a40;
    color: #f2f3f5;
    font-size: 13px;
    font-weight: bold;
}

.panel-content {
    min-height: 78px;
    padding: 13px 14px;
    background: var(--panel-background);
}

.panel-content h3 {
    margin: 0 0 5px;
    color: #e5e7eb;
    font-size: 13px;
}

.panel-content p {
    margin: 0;
    color: #c1c4cc;
    line-height: 1.6;
}

/* Form controls */

input,
select,
textarea {
    max-width: 100%;
    padding: 9px 10px;
    border: 1px solid #45474f;
    border-radius: var(--radius-small);
    background: #232428;
    color: #e3e5e8;
    font: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #949ba4;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #8ba5c9;
    outline: 2px solid rgb(139 165 201 / 25%);
    outline-offset: 1px;
}

/* Buttons */

button {
    border-radius: var(--radius-small);
}

/* Logout button */

.account-logout {
    padding: 6px 12px;
    border: 1px solid #45474f;
    border-radius: var(--radius-small);
    background: #383a40;
    color: #dbdee1;
    font: inherit;
    cursor: pointer;
}

.account-logout:hover {
    background: #45474f;
    color: #ffffff;
}

/* Footer */

.site-footer {
    padding: 14px 16px;
    border-top: 1px solid #3b3d43;
    background: #232428;
    color: #a0a4ad;
    font-size: 11px;
    text-align: center;
}

.site-footer p {
    margin: 2px 0;
}

/* Tablet */

@media (max-width: 760px) {
    body {
        padding: 10px;
    }

    .site-header {
        gap: 16px;
        padding: 17px;
    }

    .brand-mark {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        font-size: 21px;
    }

    .brand-text h1 {
        font-size: 27px;
    }

    .header-account {
        flex-basis: 170px;
    }

    .page-columns {
        grid-template-columns: 155px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .feature-banner {
        padding: 15px;
    }

    .feature-banner h2 {
        font-size: 19px;
    }
}

/* Mobile */

@media (max-width: 540px) {
    body {
        padding: 0;
    }

    .site-wrapper {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
        padding: 18px 14px;
    }

    .brand {
        justify-content: center;
    }

    .brand-text h1 {
        font-size: 29px;
    }

    .header-account {
        flex-basis: auto;
        width: 100%;
    }

    .login-button {
        width: 100%;
        max-width: 260px;
    }

    .page-columns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }

    .sidebar-left,
    .main-content {
        width: 100%;
    }

    .sidebar-left {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .directory-section a {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .feature-banner {
        align-items: flex-start;
        gap: 12px;
    }

    .feature-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 27px;
    }

    .feature-banner h2 {
        font-size: 18px;
    }

    .site-footer {
        border-radius: 0;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

```css
/* KritterPals - stronger blue and charcoal theme */

:root {
    --page-background: #20242c;
    --site-background: #282e38;
    --panel-background: #303947;

    --blue-dark: #dceaff;
    --blue: #6f9fe0;
    --blue-light: #3b4d67;
    --blue-pale: #293648;

    --border: #414f63;
    --text: #e1e8f2;
    --muted: #aab7c9;

    --link: #91bcfa;
    --link-hover: #c1dcff;
}

/* Links */
a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

/* Main header */
.site-header {
    background: linear-gradient(135deg, #303e53, #29313e);
    border-bottom: 1px solid #4a6383;
}

/* Brand title */
.brand-text h1 {
    color: #d7e7ff;
}

/* Account button */
.login-button {
    background: #477fc4;
    border: 1px solid #6699dc;
    color: #ffffff;
}

.login-button:hover {
    background: #5c94dc;
}

/* Welcome strip */
.welcome-strip {
    background: linear-gradient(135deg, #34445c, #2c394b);
    border-color: #465e7e;
}

/* Sidebar title */
.directory-title {
    background: #3b4c64;
    color: #e1edff;
    border-bottom: 1px solid #506987;
}

/* Feature banner */
.feature-banner {
    background: linear-gradient(135deg, #34455e, #2d3747);
    border: 1px solid #4a607e;
}

/* Feature icon */
.feature-icon {
    background: #48658b;
    color: #e3efff;
}

/* Panel headings */
.panel-heading {
    background: #3a475a;
    color: #e0ebfb;
    border-bottom: 1px solid #4b607b;
}


input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #78a9ed;
    box-shadow: 0 0 0 3px rgba(111, 159, 224, 0.22);
}

/* Footer */
.site-footer {
    background: #252d39;
    border-top: 1px solid #3e5068;
}


/* Shared KritterPals layout */

.site-header {
    width: 100%;
}

.main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 5%;
    background: var(--main-bar-bg, #55436f);
    color: var(--main-bar-text, #ffffff);
}

.site-logo {
    color: inherit;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
}

.member-points {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 5%;
    background: var(--nav-bg, #eee8f5);
}

.site-nav a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--nav-text, #3d304d);
    text-decoration: none;
}

.site-nav a:hover {
    background: rgba(100, 75, 130, 0.12);
}

.site-main {
    width: 90%;
    max-width: 1200px;
    min-height: 60vh;
    margin: 30px auto;
}

.site-footer {
    padding: 20px;
    text-align: center;
    color: var(--footer-text, #999999);
}

.page-heading {
    margin-bottom: 24px;
}

.page-notice {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--notice-bg, #e9f6e9);
}

.page-error {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--error-bg, #fbeaea);
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.pet-card {
    padding: 20px;
    border: 1px solid var(--card-border, #ded6e7);
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
}

.pet-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.pet-card h2,
.pet-card h3 {
    margin-top: 0;
}

.pet-card label {
    display: block;
    margin: 12px 0 5px;
}

.pet-card input,
.pet-card select {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
}

.pet-card button,
.pet-action-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: var(--button-bg, #665080);
    color: var(--button-text, #ffffff);
}

.pet-card button:hover,
.pet-action-button:hover {
    filter: brightness(1.08);
}

.pet-active {
    border: 2px solid var(--active-border, #6a9c6a);
}

.pet-meta {
    color: var(--muted-text, #716879);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .main-bar {
        padding: 15px 5%;
    }

    .site-logo {
        font-size: 1.3rem;
    }

    .site-main {
        width: 92%;
        margin: 20px auto;
    }
}


/* Points balance in the shared header */

.header-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 10px;
    padding: 8px 12px;
    border: 1px solid #506987;
    border-radius: 8px;
    background: #293648;
    color: #dceaff;
    font-size: 12px;
}

.header-points strong {
    color: #a9ceff;
    font-size: 17px;
}

.header-logout-form {
    margin-top: 8px;
}

.header-logout-form button {
    margin: 0;
}

.pet-card {
    background: var(--panel-background);
    border-color: var(--border);
    color: var(--text);
}

.pet-card h2,
.pet-card h3 {
    color: #e1eaff;
}

.pet-meta {
    color: var(--muted);
}

.pet-active {
    border-color: #78a9ed;
}

.page-notice {
    border: 1px solid #456b57;
    background: #293b33;
    color: #d5f0df;
}

.page-error {
    border: 1px solid #805151;
    background: #402c30;
    color: #ffdede;
}

.pet-card button,
.pet-action-button {
    background: #477fc4;
    color: #ffffff;
}

.pet-card button:hover,
.pet-action-button:hover {
    background: #5c94dc;
}

@media (max-width: 540px) {
    .header-points {
        max-width: 260px;
    }
}

```css
/* Expandable pet species */

.pet-species-card {
    padding: 0;
    overflow: hidden;
}

.pet-species-details {
    width: 100%;
}

.pet-species-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    cursor: pointer;
    list-style: none;
    text-align: center;
}

.pet-species-summary::-webkit-details-marker {
    display: none;
}

.pet-species-summary::marker {
    content: "";
}

.pet-species-summary::after {
    content: "+";
    color: #a9ceff;
    font-size: 22px;
    font-weight: bold;
}

.pet-species-details[open] .pet-species-summary::after {
    content: "−";
}

.pet-species-summary .pet-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.pet-species-title {
    color: #e1eaff;
    font-size: 18px;
    font-weight: bold;
}

.pet-expand-hint {
    color: var(--muted);
    font-size: 12px;
}

.pet-species-description {
    margin: 0 16px 14px;
}

.pet-species-details form {
    padding: 0 16px 16px;
}

.pet-species-details form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
}

.pet-species-details form select,
.pet-species-details form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.pet-species-details form button {
    margin-top: 16px;
    width: 100%;
}

.pet-color-preview {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    text-align: center;
}

.pet-color-preview[hidden] {
    display: none;
}

.pet-color-image {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.pet-color-caption {
    margin: 8px 0 0;
    font-weight: bold;
}

```css
/* Always-visible pet collection cards */

.pet-species-card {
    padding: 18px;
    overflow: hidden;
}

.pet-species-title {
    margin-top: 0;
    text-align: center;
}

.pet-species-description {
    text-align: center;
}

.pet-color-preview {
    margin: 12px 0 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    text-align: center;
}

.pet-color-image {
    display: block;
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.pet-color-caption {
    margin: 10px 0 0;
    color: var(--text);
    font-weight: bold;
}

.pet-species-card form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
}

.pet-species-card form select,
.pet-species-card form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.pet-species-card form button {
    width: 100%;
    margin-top: 18px;
}


/* Pet Profile */
.pet-profile-page {
    --profile-panel: #202a38;
    --profile-panel-light: #273548;
    --profile-border: #35465b;
    --profile-accent: #78baff;
    --profile-text-muted: #aebed0;
    max-width: 1050px;
    margin: 0 auto;
    color: #edf4fc;
}

.pet-profile-page * {
    box-sizing: border-box;
}

.pet-profile-page .profile-hero {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #27384d, #1c2532);
    border: 1px solid var(--profile-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.pet-profile-page .profile-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 12px;
    background: #18212d;
    border: 1px solid #40556e;
    border-radius: 14px;
}

.pet-profile-page .profile-portrait img {
    display: block;
    max-width: 100%;
    width: 200px;
    max-height: 240px;
    object-fit: contain;
    border-radius: 10px;
}

.pet-profile-page .profile-identity h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.pet-profile-page .profile-subtitle {
    margin: 0 0 18px;
    color: var(--profile-text-muted);
    font-size: 1rem;
}

.pet-profile-page .profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.pet-profile-page .profile-tag {
    display: inline-block;
    padding: 6px 11px;
    color: #dcecff;
    background: #33475f;
    border: 1px solid #465d78;
    border-radius: 20px;
    font-size: 0.82rem;
}

.pet-profile-page .profile-owner {
    color: var(--profile-text-muted);
    margin-top: 16px;
}

.pet-profile-page .profile-owner a,
.pet-profile-page .profile-link {
    color: var(--profile-accent);
    text-decoration: none;
}

.pet-profile-page .profile-owner a:hover,
.pet-profile-page .profile-link:hover {
    text-decoration: underline;
}

.pet-profile-page .profile-section {
    margin: 22px 0;
    padding: 24px;
    background: var(--profile-panel);
    border: 1px solid var(--profile-border);
    border-radius: 16px;
}

.pet-profile-page .profile-section h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--profile-border);
    font-size: 1.3rem;
}

.pet-profile-page .profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pet-profile-page .profile-stat {
    min-width: 0;
    padding: 16px;
    background: var(--profile-panel-light);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
}

.pet-profile-page .profile-stat-label {
    display: block;
    margin-bottom: 9px;
    color: var(--profile-text-muted);
    font-size: 0.86rem;
}

.pet-profile-page .profile-stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pet-profile-page .profile-stat-detail {
    display: block;
    margin-top: 5px;
    color: var(--profile-text-muted);
    font-size: 0.8rem;
}

.pet-profile-page .profile-meter {
    height: 7px;
    margin-top: 13px;
    overflow: hidden;
    background: #151e29;
    border-radius: 10px;
}

.pet-profile-page .profile-meter-fill {
    height: 100%;
    border-radius: inherit;
}

.pet-profile-page .meter-hp {
    background: #e66f7c;
}

.pet-profile-page .meter-hunger {
    background: #e5b75f;
}

.pet-profile-page .meter-happiness {
    background: #66d3a0;
}

.pet-profile-page .profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pet-profile-page .profile-info-item {
    padding: 13px 15px;
    background: var(--profile-panel-light);
    border-radius: 10px;
}

.pet-profile-page .profile-info-label {
    display: block;
    margin-bottom: 5px;
    color: var(--profile-text-muted);
    font-size: 0.82rem;
}

.pet-profile-page .profile-info-value {
    font-size: 1.05rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pet-profile-page .profile-equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.pet-profile-page .profile-equipment-slot {
    padding: 18px 8px;
    text-align: center;
    background: var(--profile-panel-light);
    border: 1px solid var(--profile-border);
    border-radius: 12px;
}

.pet-profile-page .profile-equipment-icon {
    display: block;
    margin-bottom: 10px;
    color: #9eb9d9;
    font-size: 1.7rem;
}

.pet-profile-page .profile-equipment-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.pet-profile-page .profile-equipment-status {
    display: block;
    margin-top: 6px;
    color: var(--profile-text-muted);
    font-size: 0.8rem;
}

.pet-profile-page .profile-description {
    color: var(--profile-text-muted);
    line-height: 1.7;
}

.pet-profile-page .profile-back {
    display: inline-block;
    margin: 8px 0 28px;
    padding: 10px 16px;
    background: #2c4058;
    border: 1px solid #405976;
    border-radius: 9px;
    text-decoration: none;
}

@media (max-width: 760px) {
    .pet-profile-page .profile-hero {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }

    .pet-profile-page .profile-portrait {
        min-height: 170px;
    }

    .pet-profile-page .profile-portrait img {
        max-height: 190px;
    }

    .pet-profile-page .profile-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pet-profile-page .profile-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pet-profile-page .profile-equipment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pet-profile-page .profile-section {
        padding: 18px;
    }
}

```css
/* Right account and shoutbox sidebar */

.page-columns {
    grid-template-columns: 174px minmax(0, 1fr) 220px;
}

.sidebar-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.right-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--panel-background);
}

.right-panel-heading {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #3a475a;
    color: #e0ebfb;
    font-size: 13px;
}

.right-panel-content {
    padding: 12px;
}

.account-summary {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.account-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.account-detail span {
    color: var(--muted);
    font-size: 11px;
}

.account-detail strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
}

.account-premium-currency strong {
    color: #a9ceff;
}

.right-sidebar-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid #6699dc;
    border-radius: 8px;
    background: #477fc4;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.right-sidebar-button:hover {
    background: #5c94dc;
    color: #fff;
}

.right-sidebar-button.secondary {
    border-color: var(--border);
    background: #343f4e;
}

.right-sidebar-button.secondary:hover {
    background: #42536a;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-welcome {
    margin: 0 0 10px;
}

.shoutbox-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    padding: 10px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: #607a9c #202a38;
}

.shout-message {
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #273548;
}

.shout-message-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
}

.shout-message-header strong {
    color: #b9d7ff;
    font-size: 12px;
}

.shout-message-header span {
    color: var(--muted);
    font-size: 10px;
}

.shout-message p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.shoutbox-empty,
.shoutbox-notice {
    margin: 10px;
    color: var(--muted);
    font-size: 12px;
}

.shoutbox-form {
    padding: 10px;
    border-top: 1px solid var(--border);
}

.shoutbox-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: bold;
}

.shoutbox-form textarea {
    display: block;
    width: 100%;
    min-height: 70px;
    resize: vertical;
    font-size: 12px;
}

.shoutbox-form .right-sidebar-button {
    margin-top: 8px;
}

.shout-moderation {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.shout-moderation form {
    margin: 0;
}

.shout-moderation button {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #34445c;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.shout-moderation .shout-action-delete {
    background: #713f4b;
    border-color: #995563;
}

.shout-moderation .shout-action-timeout {
    background: #765a30;
    border-color: #9a7846;
}

.shout-moderation button:hover {
    filter: brightness(1.2);
}

@media (max-width: 1050px) {
    .page-columns {
        grid-template-columns: 155px minmax(0, 1fr) 200px;
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 760px) {
    .page-columns {
        grid-template-columns: 155px minmax(0, 1fr);
    }

    .sidebar-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 540px) {
    .page-columns {
        display: flex;
        flex-direction: column;
    }

    .sidebar-left,
    .main-content,
    .sidebar-right {
        width: 100%;
    }

    .sidebar-left {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .sidebar-right {
        order: 3;
        display: flex;
    }
}

@media (min-width: 1001px) {
    .page-columns {
        display: grid !important;
        grid-template-columns: 174px minmax(0, 1fr) 220px !important;
        grid-template-areas: "left content right" !important;
        align-items: start;
    }

    .sidebar-left {
        grid-area: left !important;
    }

    .main-content {
        grid-area: content !important;
    }

    .sidebar-right {
        grid-area: right !important;
        display: flex;
        flex-direction: column;
        align-self: start;
    }
}

.account-username {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 5px;
}

.account-username strong,
.account-username span {
    display: inline;
}

.right-panel .account-summary .account-detail.account-username {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 6px !important;
    align-items: baseline !important;
}

.right-panel .account-summary .account-detail.account-username span {
    display: inline !important;
    text-align: left !important;
    margin: 0 !important;
}


.banned-user {
    text-decoration: line-through !important;
    opacity: 0.8;
}


.slt-clock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(65, 110, 145, 0.12);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.slt-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.75;
}

/* Admin bug-report notifications */
.kp-bug-notices {
    margin: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-bug-notice {
    box-sizing: border-box;
    padding: 10px 9px;
    border: 1px solid;
    border-radius: 8px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

.kp-bug-notice a {
    color: #fff !important;
    text-decoration: none !important;
    display: block;
}

.kp-bug-notice a:hover {
    text-decoration: underline !important;
}

.kp-bug-notice-new {
    border-color: #ff6474;
    background: #8f1d2b;
}

.kp-bug-notice-response {
    border-color: #ffc66d;
    background: #8a5019;
}

/* Optional KritterPals header banner */
/*
.site-header {
    overflow: hidden;
    border-radius: 12px;
}

.site-banner {
    display: block;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
    border-radius: inherit;
}

.site-banner img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

@media (max-width: 600px) {
    .site-banner img {
        height: 100px;
    }
}
*/

/* Header banner fills the entire blue header area */
.site-header {
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.site-banner {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.site-banner img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

@media (max-width: 600px) {
    .site-banner img {
        height: 100px;
    }
}


.site-footer .footer-links {
    margin-top: 6px;
    font-size: 0.7rem;
}

.site-footer .footer-links a {
    color: #aebbd0;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* Username links and role icons */
.kp-online-username {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    vertical-align: middle;
}

.kp-online-username:hover {
    text-decoration: underline;
}

.kp-user-role-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    gap: 4px;
    flex-shrink: 0;
    vertical-align: middle;
}

.kp-username-text {
    display: inline;
}


/* Member display emoji artwork */
.kp-member-display-emoji {
    display: inline-block;
    width: 15px;
    height: 15px;
    object-fit: contain;
    vertical-align: -4px;
    margin-left: 4px;
}

/* Text-based emoji, including the temporary Premium star */
.kp-member-display-emoji-text {
    width: 15px;
    height: 15px;
    object-fit: initial;
    font-size: 1em;
    line-height: 1;
}

/* Premium username role styling */
.kp-premium-username {
    font-weight: 600;
}


/* Admin username */
.kp-admin-username,
.kp-admin-username .kp-username-text {
  /*  color: #B31414 !important; */
    text-decoration: underline;
}

/* Owner username color */




.kp-owner-username {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 4px 9px;
    background: #1D3D60;
    border: 1px solid #4C8AC0;
    border-radius: 6px;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
}

.kp-owner-username .kp-owner-badge {
    display: inline;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: #A9D7FF;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.kp-owner-username .kp-username-text {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
}


/* Banned usernames */
.kp-online-username.banned-user,
.kp-online-username.banned-user .kp-username-text {
    text-decoration: line-through;
}
