/* Mirrors the Material Kit React styles used by the original React app (Kaciukai/ClientApp). */

html * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

:focus {
    outline: 0;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: #3c4858;
    background-color: #e5e5e5;
    font-size: 1rem;
    text-align: left;
}

/* Safety net: nothing may widen the page on phones (a wider page makes mobile browsers zoom out, and
   that zoom then sticks across Blazor's in-page navigations). Wide content scrolls inside its own box. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px;
    color: inherit;
}

h1, h2, h3 {
    margin-top: 20px;
}

h4, h5, h6 {
    margin-top: 10px;
}

h1 {
    font-size: 3.3125rem;
    line-height: 1.15em;
}

h3 {
    font-size: 1.5625rem;
    line-height: 1.4em;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.5em;
}

p {
    margin: 0 0 10px;
    font-size: 14px;
}

a {
    color: #9c27b0;
    background-color: transparent;
}

a, a:focus, a:hover {
    text-decoration: none;
}

a:focus, a:hover {
    color: #89229b;
}

img {
    vertical-align: middle;
    border-style: none;
}

.header-container,
.gallery-container,
.footer-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 576px) {
    .header-container,
    .gallery-container,
    .footer-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .header-container,
    .gallery-container,
    .footer-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .header-container,
    .gallery-container,
    .footer-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .header-container,
    .gallery-container,
    .footer-container {
        max-width: 1140px;
    }
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1100;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
    padding: 25px 0 0.625rem;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background-color: transparent;
    box-shadow: none;
    transition: all 150ms ease 0s;
}

.site-header.is-scrolled {
    padding: 0.625rem 0;
    color: #555;
    background-color: #fff;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15);
}

.header-container {
    position: relative;
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
}

.header-brand-wrapper {
    flex: 1;
}

.header-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 3px;
    color: inherit;
    background: transparent;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: unset;
    text-transform: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.header-brand:hover,
.header-brand:focus {
    color: inherit;
    background: transparent;
}

/* Right-hand header links (Material Kit headerLinksStyle). */
.nav-list {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 14px;
    list-style: none;
}

.nav-list li {
    position: relative;
    display: block;
    float: left;
    width: auto;
    margin: 0;
    padding: 0;
    color: inherit;
}

.nav-list form {
    margin: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    margin: 0;
    padding: 0.9375rem;
    border: 0;
    border-radius: 3px;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
    color: inherit;
    background: rgba(200, 200, 200, 0.2);
}

@media (max-width: 959.98px) {
    .header-links:not(.header-links-always) {
        display: none;
    }
}

.drawer-paper .nav-list li {
    float: none;
    width: 100%;
}

.drawer-paper .nav-list li::after {
    display: block;
    width: calc(100% - 30px);
    height: 1px;
    margin-left: 15px;
    background-color: #e5e5e5;
    content: "";
}

.drawer-paper .nav-link {
    width: calc(100% - 30px);
    margin: 8px 0 8px 15px;
    color: #3c4858;
    text-align: left;
}

.mobile-menu {
    display: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font-size: 1.5rem;
    line-height: 0;
    cursor: pointer;
}

.mobile-menu svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

@media (max-width: 959.98px) {
    .mobile-menu {
        display: inline-flex;
    }
}

.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background-color: rgba(0, 0, 0, 0.5);
}

.drawer-paper {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    width: 260px;
    height: 100vh;
    padding-top: 10px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

body.drawer-open .drawer-backdrop,
body.drawer-open .drawer-paper {
    display: block;
}

.gallery-parallax {
    position: relative;
    display: flex;
    align-items: center;
    height: 90vh;
    max-height: 1000px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background-image: url('/dark-kitty.d8ab9aa6.jpg');
    background-position: center center;
    background-size: cover;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    margin-right: -15px;
    margin-left: -15px;
}

.gallery-grid-item {
    position: relative;
    flex-basis: auto;
    width: 100%;
    min-height: 1px;
    margin: 0;
    padding-right: 15px;
    padding-left: 15px;
}

.gallery-brand {
    color: #fff;
    text-align: left;
    /* Opacity and transform are driven by js/site.js while scrolling. */
    will-change: opacity, transform;
}

.gallery-brand h1 {
    position: relative;
    display: inline-block;
    font-size: 4.2rem;
    font-weight: 600;
}

.gallery-brand h3 {
    max-width: 500px;
    margin: 10px 0 0;
    font-size: 1.313rem;
}

.gallery-main {
    position: relative;
    z-index: 3;
    margin: -60px 30px 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .gallery-main {
        margin: -60px 0 0;
    }
}

.photo-columns {
    position: relative;
    width: 100%;
}

.photo-columns img {
    display: block;
}

.gallery-footer {
    position: relative;
    z-index: 2;
    display: flex;
    padding: 0.9375rem 0;
    text-align: center;
}

.footer-left {
    display: block;
    float: left !important;
}

.footer-links {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    position: relative;
    display: inline-block;
    width: auto;
    padding: 0;
    text-align: left;
}

.footer-links a {
    position: relative;
    display: block;
    padding: 0.9375rem;
    border-radius: 3px;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-credit {
    float: right !important;
    margin: 0;
    padding: 15px 0;
}

.footer-heart {
    position: relative;
    top: 3px;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

.footer-author {
    color: #9c27b0;
    text-decoration: none;
}

.gallery-end {
    text-align: center;
}

.gallery-error {
    max-width: 800px;
    margin: 40px auto;
    padding: 24px;
    color: #8b1e1e;
}

.gallery-error button {
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    color: white;
    background: #9c27b0;
    cursor: pointer;
}

.gallery-scroll-sentinel {
    height: 1px;
}

.photo-columns img {
    cursor: pointer;
}

/* Pages other than the gallery: short hero (Material Kit "small" parallax) + raised card. */
.gallery-parallax-small {
    height: 380px;
}

.gallery-brand .page-title {
    font-size: 3.3rem;
    font-weight: 600;
}

.page-main {
    min-height: 200px;
}

.page-content {
    padding: 30px;
}

.page-content.narrow {
    max-width: 720px;
}

.page-content h3 {
    margin-top: 30px;
    font-weight: 400;
}

@media (max-width: 576px) {
    .page-content {
        padding: 20px 15px;
    }

    .gallery-brand .page-title {
        font-size: 2.4rem;
    }
}

.muted {
    color: #999;
}

.small {
    font-size: 12px;
}

.form-error {
    color: #f44336;
}

.form-success {
    color: #4caf50;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background-color: #999;
    box-shadow: 0 2px 2px 0 rgba(153, 153, 153, 0.14), 0 3px 1px -2px rgba(153, 153, 153, 0.2), 0 1px 5px 0 rgba(153, 153, 153, 0.12);
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.42857143;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s;
}

.btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.btn-primary {
    background-color: #9c27b0;
    box-shadow: 0 2px 2px 0 rgba(156, 39, 176, 0.14), 0 3px 1px -2px rgba(156, 39, 176, 0.2), 0 1px 5px 0 rgba(156, 39, 176, 0.12);
}

.btn-danger {
    background-color: #f44336;
    box-shadow: 0 2px 2px 0 rgba(244, 67, 54, 0.14), 0 3px 1px -2px rgba(244, 67, 54, 0.2), 0 1px 5px 0 rgba(244, 67, 54, 0.12);
}

.btn-small {
    padding: 6px 14px;
    font-size: 11px;
}

.btn-google {
    margin: 10px 0 20px;
    padding: 10px 24px;
    color: #3c4858;
    background-color: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    font-size: 14px;
    text-transform: none;
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.link-button {
    padding: 0;
    border: 0;
    color: #9c27b0;
    background: none;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.link-button:disabled {
    color: #999;
    cursor: default;
}

input:not([type]),
input[type="text"],
textarea {
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #d2d2d2;
    color: #3c4858;
    background: transparent;
    font: inherit;
    font-size: 14px;
}

/* iPhone Safari zooms in when a field with text under 16px gets focus and doesn't zoom back out. */
@media (max-width: 959.98px) {
    input:not([type]),
    input[type="text"],
    textarea,
    select {
        font-size: 16px;
    }
}

input:not([type]):focus,
input[type="text"]:focus,
textarea:focus {
    border-bottom: 2px solid #9c27b0;
}

textarea {
    resize: vertical;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.inline-form input {
    flex: 1 1 220px;
    width: auto;
}

.profile-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 20px;
    margin: 0;
}

.profile-facts dt {
    color: #999;
}

.profile-facts dd {
    margin: 0;
}

.upload-box {
    margin: 20px 0;
    padding: 30px;
    border: 2px dashed #d2d2d2;
    border-radius: 6px;
    text-align: center;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.thumb {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.thumb img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.thumb-footer,
.thumb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 12px;
}

.status {
    font-weight: 500;
}

.status-pending {
    color: #ff9800;
}

.status-published {
    color: #4caf50;
}

.status-hidden,
.status-rejected {
    color: #f44336;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: #999;
    font-weight: 400;
}

/* Phones: each user becomes a card with labelled rows instead of a table that scrolls sideways. */
@media (max-width: 767.98px) {
    .user-table thead {
        display: none;
    }

    .user-table,
    .user-table tbody,
    .user-table tr,
    .user-table td {
        display: block;
        width: 100%;
    }

    .user-table tr {
        padding: 12px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .user-table td {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        min-height: 36px;
        padding: 4px 0;
        border: 0;
    }

    .user-table td::before {
        flex: none;
        color: #999;
        content: attr(data-label);
    }

    .user-table td.user-name {
        font-size: 16px;
        font-weight: 400;
    }

    .user-table td.user-name::before {
        content: none;
    }

    .user-table td.user-email {
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: right;
    }
}

/* Photo dialog with likes and comments. */
.photo-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.8);
}

.photo-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1301;
    display: flex;
    /* Leaves room at the sides for the previous/next buttons. */
    width: min(1200px, calc(100vw - 140px));
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    /* Scrolling inside the dialog never carries on to the page behind it. */
    overscroll-behavior: contain;
}

/* Pinned to the screen corner as a dark round badge, so it is visible on any photo and never scrolls away. */
.photo-dialog-close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    z-index: 1302;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.photo-dialog-close svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.photo-dialog-close:hover,
.photo-dialog-close:focus-visible {
    background: rgba(0, 0, 0, 0.8);
}

/* Previous / next: same badge style, pinned to the middle of the screen's left and right edges. */
.photo-dialog-nav {
    position: fixed;
    top: 50%;
    z-index: 1302;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
    cursor: pointer;
}

.photo-dialog-nav svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.photo-dialog-nav:hover,
.photo-dialog-nav:focus-visible {
    background: rgba(0, 0, 0, 0.85);
}

.photo-dialog-prev {
    left: 16px;
}

.photo-dialog-next {
    right: 16px;
}

@media (max-width: 768px) {
    .photo-dialog-nav {
        display: none;
    }
}

.photo-dialog-status {
    padding: 40px;
}

.photo-dialog-image {
    display: flex;
    flex: 1 1 65%;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: #000;
}

.photo-dialog-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 40px);
}

.photo-dialog-side {
    flex: 1 1 35%;
    min-width: 280px;
    padding: 20px;
    overflow-y: auto;
}

.photo-meta {
    /* Room for the pinned close button when the dialog reaches the screen corner. */
    margin-right: 50px;
}

.photo-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 10px 0;
}

.like-button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    color: #3c4858;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.like-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.like-button.is-liked {
    border-color: #e91e63;
    color: #e91e63;
}

.like-button.is-liked svg {
    fill: currentColor;
}

.comment-list {
    margin: 0 0 15px;
    padding: 0;
    list-style: none;
}

.comment-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    font-size: 13px;
}

.comment-body {
    margin: 4px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

/* Phones: the dialog becomes a full-screen sheet (photo on top, likes and comments below). */
@media (max-width: 768px) {
    .photo-dialog {
        top: 0;
        left: 0;
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-height: none;
        overflow-y: auto;
        border-radius: 0;
        transform: none;
    }

    .photo-dialog-image {
        flex: none;
    }

    .photo-dialog-side {
        flex: 1 0 auto;
    }

    .photo-dialog-image img {
        max-height: 60vh;
    }

    .photo-dialog-side {
        min-width: 0;
        overflow: visible;
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 0.6rem 1.25rem 0.7rem;
    background: lightyellow;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    cursor: pointer;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzQzI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ---------- Kitten game (/kaciukas, /kaciukas/perziura) ---------- */

.cat-picture {
    display: block;
    width: 100%;
    height: auto;
}

.kp-tail {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    animation: kp-sway 2.6s ease-in-out infinite alternate;
}

.kp-blink {
    transform-box: fill-box;
    transform-origin: center;
    animation: kp-blink 4s infinite;
}

.kp-fly {
    animation: kp-buzz 1.4s ease-in-out infinite;
}

.kp-zz {
    animation: kp-float 3s ease-in-out infinite;
}

@keyframes kp-sway {
    from { transform: rotate(-7deg); }
    to { transform: rotate(9deg); }
}

@keyframes kp-blink {
    0%, 94%, 100% { transform: scaleY(1); }
    97% { transform: scaleY(0.1); }
}

@keyframes kp-buzz {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(6px, -4px); }
    50% { transform: translate(10px, 2px); }
    75% { transform: translate(3px, 5px); }
}

@keyframes kp-float {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    50% { transform: translateY(-5px); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .kp-tail, .kp-blink, .kp-fly, .kp-zz {
        animation: none;
    }
}

.kitten-card {
    max-width: 420px;
    margin: 10px auto 20px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.kitten-top {
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(60deg, #ab47bc, #8e24aa);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.kitten-stats {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 12px 16px 4px;
    font-size: 13px;
}

.kitten-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}

.kitten-bar i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ba68c8, #8e24aa);
    transition: width 0.4s;
}

.kitten-bar.low i {
    background: linear-gradient(90deg, #ff8a65, #f44336);
}

.kitten-messes {
    grid-column: 1 / -1;
    color: #999;
}

.kitten-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px 8px 14px;
}

.kitten-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    color: #3c4858;
    background: none;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.kitten-actions button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f3e5f5;
    font-size: 24px;
    transition: transform 0.15s, background-color 0.15s;
}

.kitten-actions button:hover:not(:disabled) span {
    background: #e1bee7;
    transform: translateY(-2px);
}

.kitten-actions button:disabled {
    opacity: 0.45;
    cursor: default;
}

.kitten-feed,
.kitten-away {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 0 16px 16px;
    text-align: center;
}

.kitten-away {
    padding-top: 12px;
}

.kitten-away p {
    flex-basis: 100%;
    margin: 0;
}

.kitten-today {
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 16px;
    border-left: 4px solid #9c27b0;
    border-radius: 4px;
    background: #f3e5f5;
}

.kitten-icon {
    font-size: 28px;
}

.kitten-diary {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kitten-diary li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.kitten-day {
    display: inline-block;
    min-width: 3em;
    color: #999;
    font-size: 12px;
}

.kitten-new {
    margin-top: 30px;
    text-align: center;
}

.kitten-new .btn {
    margin: 0 5px;
}

.kitten-link {
    padding: 0;
    border: 0;
    color: #9c27b0;
    background: none;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.laser-game {
    padding: 4px 16px 16px;
}

.laser-info {
    margin: 0 0 8px;
    font-size: 13px;
    text-align: center;
}

.laser-area {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 280 / 160;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    background: radial-gradient(circle at 30% 30%, #fdf3e6, #f2d3b3);
    box-shadow: inset 0 0 0 1px #e6c4a0;
}

.laser-dot {
    position: absolute;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #ff1744 0 5px, rgba(255, 23, 68, 0.35) 6px 9px, transparent 10px);
    cursor: pointer;
    transition: left 0.25s ease-out, top 0.25s ease-out;
}

.kitten-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.kitten-preview figure {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.kitten-preview figcaption {
    padding: 4px 8px;
    font-size: 12px;
}

.nav-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: #e53935;
    vertical-align: middle;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.allcats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.allcats-card {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.allcats-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px 12px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.allcats-flag {
    align-self: flex-start;
    padding: 0 8px;
    border-radius: 10px;
    background: #fdecea;
    color: #b71c1c;
    font-size: 12px;
}

.kitten-memories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kitten-memories li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.kitten-memory-pic {
    flex: 0 0 96px;
    overflow: hidden;
    border-radius: 6px;
}
