:root {
    --primary-text-color: #002869;
    --primary-text-stroke-color: #FFFFFF;
    --featured-text-color: #FF8C00;
    --featured-text-highlight-color: #E97B7B;
    --mobile-safe-padding: 15px;
    --content-max-width: 600px;
    --today-pulse-duration: 2.5s;
}

/* Force light mode and hide scrollbars */
html {
    color-scheme: light only;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* Hide any progress indicators */
progress,
[role="progressbar"],
.progress,
.loading-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

html {
    /* Prevent Chrome's loading progress indicator from appearing */
    scroll-behavior: auto;
}

body {
    margin: 0 5px;
    width: calc(100% - 10px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
    /* Prevent any progress indicators or loading bars */
    -webkit-tap-highlight-color: transparent;
    /* Ensure no overflow that could trigger progress indicators */
    overflow-x: hidden;
    position: relative;
    /* Hide any progress elements */
    --progress-bar-height: 0;
    font-size: 16px;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
span,
a,
button,
label,
ul,
ol,
form,
input,
textarea,
select,
.form-control {
    text-align: center;
}

ul,
ol {
    list-style-position: inside;
}

p {
    margin: 0;
}

.main-list {
    max-width: var(--content-max-width);
    margin: 0 auto;
    text-align: left;
}

/* Hero image styling */
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    pointer-events: none;
    padding-inline: var(--mobile-safe-padding);
}

.hero-image {
    width: 90%;
    max-width: var(--content-max-width);
    height: auto;
}

/* Utility classes */
.white-text-overlay {
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
}

.bubble-text {
    color: var(--primary-text-color);
    font-weight: bold;
    text-shadow:
        -2px -2px 0 var(--primary-text-stroke-color), 0px -2px 0 var(--primary-text-stroke-color), 2px -2px 0 var(--primary-text-stroke-color),
        -2px 0px 0 var(--primary-text-stroke-color), 2px 0px 0 var(--primary-text-stroke-color),
        -2px 2px 0 var(--primary-text-stroke-color), 0px 2px 0 var(--primary-text-stroke-color), 2px 2px 0 var(--primary-text-stroke-color);
}

.bubble-text-featured {
    --primary-text-color: var(--featured-text-color);
}

.bubble-text-featured-highlighted {
    --primary-text-color: var(--featured-text-highlight-color);
}

.title-text {
    line-height: 1.2;
    font-size: 24px;
}

.type-card-title-l {
    line-height: 1.2;
    font-size: 18px;
}

.type-card-title-m {
    line-height: 1.2;
    font-size: 16px;
}

.type-card-title-s {
    line-height: 1.2;
    font-size: 14px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header styling */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--mobile-safe-padding);
    margin: 20px auto 10px;
    max-width: 550px;
}

.header-left {
    gap: 10px;
    flex: 1;
}

.star-icon {
    width: 40px;
    height: auto;
}

.coin-count {
    font-size: 24px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-right {
    flex: 1;
}

.admin-button {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.admin-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    pointer-events: none;
}

/* Fit-to-width text scaling */
@property --captured-length {
    syntax: "<length>";
    initial-value: 0px;
    inherits: true;
}

.text-fit {
    display: flex;
    container-type: inline-size;
    --captured-length: initial;
    width: 100%;
    max-width: 100%;
    --max-font-size: 48px;
}

.text-fit>[aria-hidden] {
    visibility: hidden;
}

.text-fit> :not([aria-hidden]) {
    flex-grow: 1;
    container-type: inline-size;
    --captured-length: 100cqi;
    --available-space: var(--captured-length);
}

.text-fit> :not([aria-hidden])>* {
    --captured-length: 100cqi;
    --ratio: tan(atan2(var(--available-space),
                var(--available-space) - var(--captured-length)));
    --font-size: clamp(16px, 1em * var(--ratio), var(--max-font-size));
    inline-size: var(--available-space);
    display: block;
    font-size: var(--font-size);
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
}

/* Main title styling */
.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 25px 0 20px 0;
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-inline: var(--mobile-safe-padding);
}

.title-logo {
    width: 70%;
    max-width: 400px;
    height: auto;
}

/* Day buttons styling */
.day-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    padding-inline: var(--mobile-safe-padding);
}

.day-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.day-buttons .styled-button {
    width: 7.5em;
}

.styled-button-container:has(.styled-button.monday),
.styled-button.monday {
    background-color: #fcb96a;
}

.styled-button-container:has(.styled-button.tuesday),
.styled-button.tuesday {
    background-color: #fc7a6a;
}

.styled-button-container:has(.styled-button.wednesday),
.styled-button.wednesday {
    background-color: #f76fa9;
}

.styled-button-container:has(.styled-button.thursday),
.styled-button.thursday {
    background-color: #84b4e3;
}

.styled-button-container:has(.styled-button.friday),
.styled-button.friday {
    background-color: #76cd88;
}

.styled-button-container:has(.styled-button.saturday),
.styled-button.saturday {
    background-color: #aa8bd9;
}

.styled-button-container:has(.styled-button.sunday),
.styled-button.sunday {
    background-color: #f15e78;
}

.day-button {
    position: relative;
    cursor: pointer;
    width: calc(25% - 10px);
    container-type: inline-size;
}

.day-button img {
    width: 100%;
    height: auto;
    display: block;
}

.day-button span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14cqw;
    pointer-events: none;
    width: 100%;
    text-align: center;
    line-height: 1;
}

/* Taskling icons styling */
.taskling-icons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    padding-inline: var(--mobile-safe-padding);
}

.taskling-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    width: 100%;
}

.taskling-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 15px);
    max-width: 185px;
}

.taskling-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 185px;
    gap: 10px;
}

.taskling-get-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 5px;
}

.taskling-acquisition-status {
    margin-top: 5px;
}

.taskling-image-container {
    /* Contain rendering to improve performance */
    contain: layout style paint;
    /* Create new stacking context for GPU acceleration */
    transform: translateZ(0);
    width: 150px;
    height: 150px;
}

.taskling-info-container {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.taskling-info-container h2 {
    margin-top: 5px;
    margin-bottom: 5px;
}

.taskling-info-container .styled-button {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.taskling-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.taskling-image {
    /* Performance optimizations for animated AVIF */
    will-change: contents;
    transform: translateZ(0);
    /* Force GPU acceleration */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    contain: layout style paint;
    width: 150px;
    height: 150px;
    border-radius: 20px;
}

.taskling-image.taskling-image-inset {
    background: white;
    padding: 25px;
    box-sizing: border-box;
}

.taskling-image-large {
    /* Performance optimizations for large animated AVIF */
    will-change: contents;
    transform: translateZ(0);
    /* Force GPU acceleration */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout style paint;
    width: 100%;
    height: auto;
}

.taskling-text-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    container-type: inline-size;
}

.taskling-text-overlay {
    width: 100%;
    height: auto;
}

.taskling-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.taskling-details {
    font-size: 8cqw;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.0;
    white-space: nowrap;
}

.taskling-xp-bar {
    width: 100%;
    height: auto;
}

/* Day page styling */
.day-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.day-header {
    display: flex;
    justify-content: center;
}

.day-header-button {
    width: 120px;
    max-width: 120px;
    min-width: 120px;
}

.day-title {
    margin-bottom: 0;
}

.day-date {
    margin-top: 0;
}

.progress-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.progress-bar-image {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.task-checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: fit-content;
    margin: 0 auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    text-align: left;
}

.checkbox-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.task-checkbox-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.task-checkbox-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: table;
    width: 100%;
    table-layout: fixed;
}

.task-checkbox-cell {
    display: table-cell;
    vertical-align: middle;
    width: 50px;
}

.task-title-cell {
    display: table-cell;
    vertical-align: middle;
    font-size: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.task-reward-coins-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
    width: 1%;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

.task-title {
    font-size: 20px;
    margin-left: 15px;
}

.task-final .bubble-text {
    opacity: 0.6;
}

.no-tasks {
    font-size: 18px;
    text-align: center;
}

.back-link {
    margin-top: 20px;
}

.back-link a {
    font-size: 18px;
    text-decoration: none;
}

.taskling-detail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    max-width: var(--content-max-width);
    padding: 0 20px;
}

.taskling-name-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.taskling-frame-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.taskling-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.taskling-description {
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    max-width: 500px;
    padding: 0 20px;
}

.offline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.offline-message {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.offline-message p {
    margin: 1rem 0;
    font-size: 18px;
}

.offline-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.complete-day-button {
    width: auto;
    max-width: 300px;
    min-height: 50px;
    padding: 10px 20px;
    align-self: center;
}

.online-status-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.online-status-indicator[data-status="unknown"] {
    background-color: #9E9E9E;
}

.online-status-indicator[data-status="online"] {
    background-color: #4CAF50;
}

.online-status-indicator[data-status="offline"] {
    background-color: #F44336;
}

.coin-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taskling-item-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.day-button-link {
    text-decoration: none;
}

/* Rarity filter buttons */
.rarity-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    margin-bottom: 30px;
    padding-inline: var(--mobile-safe-padding);
}

.rarity-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: var(--content-max-width);
    width: 100%;
}

.rarity-buttons .styled-button {
    width: 8em;
}

.taskling-icon-link {
    text-decoration: none;
}

/* Page container styling */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.page-container h1 {
    margin: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0.75rem;
}

.form-field label {
    font-weight: bold;
    color: var(--primary-text-color);
}

.form-field small {
    color: var(--primary-text-color);
    opacity: 0.7;
}

.form-errors {
    color: red;
    font-weight: bold;
}

form .styled-button {
    margin-top: 0.75rem;
}

.error-message {
    color: red;
}

.styled-button-container {
    padding: 6px;
    background-color: black;
    border-radius: 27px;

}

.styled-button-container>.styled-button {
    outline: 2px solid #fff9;
    padding: 11px 11px;
}

.styled-button {
    padding: 15px 15px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    background-color: #fcb96a;
    color: #fafafa;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.65);
    box-shadow:
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.styled-button a {
    text-decoration: none;
    color: inherit;
}

.styled-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.styled-button-active {
    background-color: #4CAF50;
}

.styled-button-highlighted {
    background-color: #f15e78;
}

.styled-button-small {
    padding: 10px;
    border-radius: 10px;
    box-shadow:
        inset -1px -1px 2px rgba(0, 0, 0, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.2);
    height: fit-content;
    width: fit-content;
    font-size: 14px
}

.sorting-button-up,
.sorting-button-down {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sorting-button-up {
    margin-bottom: 5px;
}

.sorting-button-down {
    margin-top: 5px;
}

.sorting-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.sorting-arrow-up {
    border-bottom: 10px solid currentColor;
}

.sorting-arrow-down {
    border-top: 10px solid currentColor;
}

.styled-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding-top: 11px;
    padding-left: 11px;
    user-select: none;
    background-color: #9E9E9E;
    color: #fafafa;
}

.styled-checkbox.checked {
    background-color: #4CAF50;
    color: #fafafa;
}

.logout-button {
    font-size: 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
}

.logout-button:disabled {
    cursor: not-allowed;
}

.parent-section-container {
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.parent-item-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

.parent-item-sorting {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    align-self: stretch;
}

.parent-item-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.parent-item-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.parent-item-title {
    flex: 1;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.parent-item-remove-button {
    padding: 5px 10px;
    background-color: #dc3545;
    color: white;
    flex-shrink: 0;
    font-size: 16px;
}

.parent-item-row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.parent-task-days {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.parent-item-input {
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.parent-new-item-form .parent-item-row-content {
    justify-content: center;
}

input,
select {
    border-radius: 5px;
    box-sizing: border-box;
    max-width: 300px;
    font-size: 16px;
}

input {
    padding: 18px 10px;
    height: 1.5em;
    line-height: 1.5em;
}

select {
    padding: 8px 8px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-text-color);
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--primary-text-color);
}

.modal-content form>div {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-text-color);
    font-weight: bold;
    text-align: left;
}

.password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #fcb96a;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-buttons .styled-button {
    min-width: 100px;
}

.evolution-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-size: cover;
    background-position: center;
}

.evolution-text {
    opacity: 0;
    transition: opacity 500ms ease-in-out;
}

.evolution-text.visible {
    opacity: 1;
}

.evolution-frame {
    position: relative;
    width: 280px;
    height: 280px;
}

.evolution-frame-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.evolution-taskling-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    object-fit: contain;
    border-radius: 15%;
}

.evolution-name {
    font-size: 2rem;
}

.evolution-evolving,
.evolution-complete {
    font-size: 1.5rem;
}

.evolution-evolving.visible {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.styled-text-svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.inlined-icon {
    width: 20px;
    height: auto;
    margin-right: 4px;
}

.weekly-section-header {
    font-size: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.parent-task-weekly-toggle {
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 14px;
    border: 2px dashed #CC6600;
    color: #993D00;
    background: rgba(255, 200, 100, 0.25);
    transition: all 0.2s ease;
}

.parent-task-weekly-toggle.weekly-active {
    border-style: solid;
    border-color: #B35900;
    background: linear-gradient(135deg, #FF8C00, #FFB800);
    color: #4A1800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

@keyframes today-float-brighten {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        filter: brightness(1);
    }

    50% {
        transform: translateY(-8px) scale(1.04);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18), 0 5px 10px rgba(0, 0, 0, 0.1);
        filter: brightness(1.12);
    }
}

.today-pulse {
    animation-name: today-float-brighten;
    animation-duration: var(--today-pulse-duration);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .today-pulse {
        animation: none;
        transform: translateY(-4px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        filter: brightness(1.08);
    }
}

.styled-select-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.styled-select-option-label {
    white-space: nowrap;
}

.evolution-chain {
    gap: 8px;
    flex-wrap: nowrap;
}

.evolution-chain-item {
    gap: 8px;
}

.evolution-chain-arrow {
    font-size: 20px;
}

.evolution-chain .taskling-image {
    width: 56px;
    height: 56px;
}

.evolution-chain .styled-button-highlighted .taskling-image {
    width: 80px;
    height: 80px;
    outline: 3px solid white;
    outline-offset: 3px;
}

.star-rating-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.star-picker-icon {
    width: 40px;
    height: 40px;
}

.bubble-overlay {
    position: fixed;
    left: var(--bubble-x);
    top: var(--bubble-y);
    transform: translate(-50%, -100%);
    transform-origin: bottom center;
    display: flex;
    gap: 8px;
    padding: 12px;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    animation: bubble-pop-in 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.bubble-arrow {
    position: absolute;
    bottom: -10px;
    left: calc(50% + var(--arrow-offset, 0px));
    transform: translateX(-50%);
    border-top: 11px solid rgba(255, 255, 255, 0.95);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

@keyframes bubble-pop-in {
    0% {
        transform: translate(-50%, calc(-100% + 15px)) scale(0.6);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -100%) scale(1);
        opacity: 1;
    }
}

.bubble-option-icon {
    flex-shrink: 0;
    pointer-events: none;
}

.bubble-option {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 8px;
}

.bubble-option-active {
    background: rgba(0, 0, 0, 0.1);
    outline: 2px solid rgba(0, 0, 0, 0.2);
}

.bubble-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}