@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&family=Roboto:wght@400;500;700&family=Quicksand:wght@500;700&family=Montserrat:wght@600&family=Poppins:wght@600&display=swap');

:root {
--primary-bg: #2b2a40;
--card-bg: #3b3a55;
--accent-color: #a69cd2;
--text-color: #e6e6e6;
--secondary-text: #b3b3b3;
--link-color: #4db6ac;
--error-color: #ff6b6b;
--main-color: #6361a0;
--border-radius: 12px;
--shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
--animation-speed: 0.3s;
}

/* Waifu-specific color themes */
/* These classes will be applied to the body when a waifu is selected */

/* Aqua Theme */
body.waifu-theme-aqua {
  --primary-bg: #1a2a3a;
  --card-bg: #2a3d4f;
  --accent-color: #64b3f4;
  --text-color: #e6f3ff;
  --secondary-text: #a8c8e6;
  --link-color: #4db6f4;
  --main-color: #3498db;
}

/* Megumin Theme */
body.waifu-theme-megumin {
  --primary-bg: #2d1a1a;
  --card-bg: #3d2a2a;
  --accent-color: #d64545;
  --text-color: #ffe6e6;
  --secondary-text: #e6a8a8;
  --link-color: #e74c3c;
  --main-color: #c0392b;
}

/* Darkness Theme */
body.waifu-theme-darkness {
  --primary-bg: #1a1a2d;
  --card-bg: #2a2a3d;
  --accent-color: #ffd700;
  --text-color: #fffacd;
  --secondary-text: #e6e6a8;
  --link-color: #f39c12;
  --main-color: #e67e22;
}

/* Wiz Theme */
body.waifu-theme-wiz {
  --primary-bg: #2d1a2d;
  --card-bg: #3d2a3d;
  --accent-color: #9b59b6;
  --text-color: #f3e6ff;
  --secondary-text: #c8a8e6;
  --link-color: #8e44ad;
  --main-color: #7b2d8e;
}

/* Kazuma Theme */
body.waifu-theme-kazuma {
  --primary-bg: #1a2d1a;
  --card-bg: #2a3d2a;
  --accent-color: #27ae60;
  --text-color: #e6ffe6;
  --secondary-text: #a8e6a8;
  --link-color: #2ecc71;
  --main-color: #229954;
}

/* Hangover Theme (default/fallback) */
body.waifu-theme-hangover {
  --primary-bg: #2b2a40;
  --card-bg: #3b3a55;
  --accent-color: #a69cd2;
  --text-color: #e6e6e6;
  --secondary-text: #b3b3b3;
  --link-color: #4db6ac;
  --main-color: #6361a0;
}

/* Generic waifu theme class for custom colors */
body.waifu-theme-custom {
  --primary-bg: var(--waifu-primary-bg, #2b2a40);
  --card-bg: var(--waifu-card-bg, #3b3a55);
  --accent-color: var(--waifu-accent-color, #a69cd2);
  --text-color: var(--waifu-text-color, #e6e6e6);
  --secondary-text: var(--waifu-secondary-text, #b3b3b3);
  --link-color: var(--waifu-link-color, #4db6ac);
  --main-color: var(--waifu-main-color, #6361a0);
}

/* Smooth theme transitions */
.gallery-item,
.admin-overrides,
.gallery-pledge,
.info-content,
.calendar-container {
  transition: 
    background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-tab,
.language-tab,
.info-tab,
.rating-sub-tab,
.admin-overrides button,
.submit-review-btn {
  transition: 
    background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}

.gallery-tab:active, .language-tab:active, .info-tab:active, .admin-overrides button:active, .calendar-nav button:active {
transform: translateY(1px);
filter: brightness(0.9);
}

.entry-content.wp-block-post-content.has-background.is-layout-flow.wp-block-post-content-is-layout-flow {
max-width: 55%;
margin: 0 auto;
position: relative;
overflow: hidden;
}

body {
font-family: 'Roboto', sans-serif;
background-color: var(--primary-bg);
color: var(--text-color);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%233b3a55' fill-opacity='0.08' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
/* Add these lines to ensure waifu background fits and is static */
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
/* Smooth theme transitions */
transition: 
  background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
  color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
text-align: center;
margin: 60px auto; /* Increased margin for clearance */
width: 100%;
max-width: 400px; /* Adjust based on logo size */
height: auto;
position: relative;
display: block;
}

.logo-img {
width: 100%;
max-width: 400px; /* Full logo size */
height: auto;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
display: block;
}

/* When it's a Fun Fact, give the logo a little pop. */
.fun-fact-logo-container .logo-img,
.good-logo-container .logo-img {
transform: scale(1.1);
}

@media (min-width: 1401px) {
.custom-gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
padding: 20px;
}
.gallery-item {
width: 100%;
max-width: 100%;
margin-bottom: 20px;
background-color: var(--card-bg);
/* Add a subtle gradient overlay for depth */
background-image: linear-gradient(135deg, rgba(166,156,210,0.08) 0%, rgba(99,97,160,0.10) 100%);
padding: 15px;
box-sizing: border-box;
/* More pronounced shadow for depth */
box-shadow: 0 8px 32px rgba(99,97,160,0.18), 0 1.5px 8px rgba(0,0,0,0.18);
/* Softer, larger border radius */
border-radius: 20px;
/* Optional accent border */
border: 1.5px solid rgba(166,156,210,0.18);
/* Enhanced smooth transitions */
transition: 
  transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
  box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
  background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
  border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
  height 0.3s ease-in-out;
overflow: visible;
opacity: 0;
transform: translateY(20px);
position: relative;
animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
/* Add subtle hover preparation */
transform-origin: center;
will-change: transform, box-shadow, background, border-color;
}

.gallery-item:hover {
/* Beautiful multi-layered hover effect */
transform: scale(1.05) translateY(-12px) rotateX(2deg);
/* Enhanced shadow system */
box-shadow: 
  0 20px 60px 0 rgba(99,97,160,0.35),
  0 8px 24px 0 rgba(0,0,0,0.25),
  0 0 0 1px rgba(166,156,210,0.3),
  inset 0 1px 0 rgba(255,255,255,0.1);
/* Dynamic gradient shift */
background-image: linear-gradient(135deg, rgba(166,156,210,0.2) 0%, rgba(99,97,160,0.25) 100%);
/* Animated border glow */
border-color: rgba(166,156,210,0.6);
/* Add a subtle shine effect */
position: relative;
}

.gallery-item:hover::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
  90deg,
  transparent 0%,
  rgba(255,255,255,0.1) 50%,
  transparent 100%
);
border-radius: inherit;
animation: shine-sweep 0.8s ease-out;
pointer-events: none;
z-index: 1;
}

@keyframes shine-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.gallery-item:hover .gallery-item-inner {
transform: translateZ(10px);
}

.gallery-item:hover .gallery-img img {
transform: scale(1.02);
filter: brightness(1.1) saturate(1.1);
}

.gallery-item:active {
transform: scale(0.98) translateY(-8px);
transition: transform 0.1s ease-out;
}

.gallery-item:not(.hidden) {
opacity: 1;
transform: translateY(0);
animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

.gallery-item-inner {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
box-sizing: border-box;
position: relative;
}
.custom-gallery.missing-items .gallery-item {
background-color: var(--card-bg);
}
.custom-gallery.missing-items .gallery-item-inner {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100%;
}
.gallery-pledge {
width: 100%;
max-width: 100%;
margin-bottom: 15px;
background-color: var(--card-bg);
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
transition: transform var(--animation-speed) ease-in-out;
}
.gallery-pledge:hover {
transform: scale(1.02);
}
.admin-overrides {
width: 100%;
max-width: 100%;
margin-bottom: 15px;
background-color: var(--card-bg);
padding: 15px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 15px;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
}
.admin-overrides label {
margin-right: 8px;
font-weight: 500;
}
.admin-overrides input[type="number"], .admin-overrides select {
padding: 8px;
background-color: var(--card-bg);
color: var(--text-color);
border: 1px solid #555;
border-radius: 8px;
transition: border-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
box-sizing: border-box;
}
.admin-overrides input[type="number"]:focus, .admin-overrides select:focus {
border-color: var(--accent-color);
outline: none;
transform: scale(1.02);
}
.admin-overrides button {
padding: 8px 16px;
background-color: var(--main-color);
color: var(--text-color);
border: none;
cursor: pointer;
border-radius: 8px;
font-weight: 500;
transition: background-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
}
.admin-overrides button:hover {
background-color: var(--accent-color);
transform: scale(1.05);
}
.filter-controls {
display: flex;
flex-wrap: wrap;
justify-content: center;
position: relative;
gap: 0;
padding: 4px;
background-color: rgba(43, 42, 64, 0.6);
border-radius: 50px;
margin-bottom: 15px;
}
.glider {
position: absolute;
background-color: var(--accent-color);
border-radius: 50px;
z-index: 1;
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.gallery-tab, .language-tab {
padding: 8px 20px;
color: var(--secondary-text);
cursor: pointer;
border-radius: 50px;
transition: color 0.22s cubic-bezier(0.4,0,0.2,1), background 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
font-weight: 500;
position: relative;
z-index: 2;
background-color: transparent !important;
backdrop-filter: none !important;
border: none !important;
box-shadow: none !important;
white-space: nowrap;
}
.gallery-tab.active, .language-tab.active {
color: #fff;
transform: scale(1.12);
}
.gallery-tab:hover, .language-tab:hover {
color: var(--accent-color);
transform: scale(1.08);
}
.gallery-tab.hidden, .language-tab.hidden {
display: none;
}
.gallery-tab[data-tab="calendar"] i {
font-size: 18px;
}
.language-tab[data-tab="calendar"] {
padding: 8px 16px;
}
.language-tab[data-tab="calendar"] i {
font-size: 18px;
}
.gallery-content {
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: center;
box-sizing: border-box;
padding: 0 10px;
}
.gallery-title {
font-family: 'Oswald', sans-serif;
font-size: clamp(16px, 2.5vw, 20px);
font-weight: 500;
margin-bottom: 12px;
margin-top: 0;
letter-spacing: 0.5px;
text-transform: uppercase;
transition: color 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.gallery-title:hover {
color: var(--accent-color);
transform: scale(1.06);
}

.hide-item-btn {
position: absolute !important;
top: 10px !important;
right: 10px !important;
left: auto !important;
background: rgba(255, 100, 100, 0.8);
color: white;
border: none;
border-radius: 16px;
padding: 6px 12px;
font-size: 11px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 2px;
z-index: 1000;
opacity: 0.2;
min-width: auto;
width: auto;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(12px) saturate(1.2);
border: 1.5px solid rgba(255, 255, 255, 0.15);
/* Critical: Immune to parent transforms - just like NEW badge */
transform: none !important;
will-change: auto;
/* Modern glassmorphism effect */
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
letter-spacing: 0.5px;
}

.hide-item-btn:hover {
background: rgba(255, 80, 80, 0.9);
opacity: 1;
transform: scale(1.1);
box-shadow: 0 2px 6px rgba(255, 100, 100, 0.4);
}

.hide-item-btn:active {
transform: translateY(0);
}

.hide-item-btn i {
font-size: 11px;
}

/* Hidden items get a different style */
.gallery-item[data-user-hidden="true"] .hide-item-btn {
background: rgba(100, 150, 255, 0.8);
}

.gallery-item[data-user-hidden="true"] .hide-item-btn:hover {
background: rgba(80, 130, 255, 0.9);
opacity: 1;
transform: scale(1.1);
box-shadow: 0 3px 8px rgba(100, 150, 255, 0.5);
}

/* Mobile-specific improvements for hide button */
@media (max-width: 768px) {
.hide-item-btn {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    padding: 8px 12px;
    font-size: 10px;
    min-width: 44px; /* Ensure touch target is at least 44px for accessibility */
    min-height: 32px;
    justify-content: center;
    /* Keep same styling as desktop */
    border-radius: 16px;
    font-weight: 700;
    z-index: 1000;
    transform: none !important;
}

.hide-item-btn i {
    font-size: 10px;
}
}

.countdown-container {
color: #ff9800;
font-style: italic;
margin-bottom: 8px;
font-weight: 400;
}
.gallery-version, .gallery-language {
font-size: 13px;
margin-bottom: 6px;
font-weight: 400;
color: var(--secondary-text);
}
.newer-version-message {
font-size: 12px;
color: var(--error-color);
font-style: italic;
margin-top: 4px;
animation: subtle-flash 2s infinite;
}
.newer-version-message a {
color: var(--error-color);
text-decoration: none;
}
.newer-version-message a:hover {
text-decoration: underline;
}
@keyframes subtle-flash {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.gallery-links {
display: flex;
flex-wrap: wrap;
margin-bottom: 8px;
margin-top: 8px;
gap: 12px;
box-sizing: border-box;
}
.gallery-links a {
display: inline-flex;
align-items: center;
color: var(--link-color);
text-decoration: none;
font-weight: 500;
padding: 6px 12px;
border-radius: 8px;
transition: color 0.22s cubic-bezier(0.4,0,0.2,1), background 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1);
}
.gallery-links a:hover {
color: #fff;
background-color: var(--accent-color);
transform: scale(1.08);
box-shadow: 0 4px 16px 0 rgba(166,156,210,0.18);
}
.gallery-links a.raise-pledge {
color: var(--accent-color);
font-style: italic;
}
.gallery-links a img {
height: 20px;
margin-right: 8px;
vertical-align: middle;
}
.info-tabs {
display: flex;
margin-top: 8px;
gap: 8px;
}
.info-tab {
padding: 4px 10px;
background-color: rgba(59, 58, 85, 0.6);
backdrop-filter: blur(5px);
color: var(--text-color);
cursor: pointer;
border: 1px solid rgba(230, 230, 230, 0.1);
border-radius: 8px;
transition: background-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
font-weight: 500;
font-size: 13px;
white-space: nowrap;
}
.info-tab.active {
background-color: rgba(99, 97, 160, 0.8);
color: var(--text-color);
border: none;
transform: scale(1.05);
}
.info-tab:hover {
background-color: #555;
transform: scale(1.08);
}
.info-content {
display: block;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.info-content.active {
opacity: 1;
max-height: none;
transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.overlay-img, .demo-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
box-sizing: border-box;
opacity: 0;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
text-align: center;
max-height: 250px;
overflow-y: auto;
}
.overlay-img img, .demo-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.countdown {
color: #ff9800;
font-style: italic;
font-weight: 500;
}
.calendar-container {
width: 100%;
max-width: 100%;
background-color: var(--card-bg);
padding: 20px;
box-sizing: border-box;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
transition: opacity var(--animation-speed) ease-in-out;
}
.calendar-container:not(.hidden) {
opacity: 1;
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.calendar-header h2 {
margin: 0;
font-size: 20px;
font-weight: 700;
}
.calendar-nav {
display: flex;
gap: 10px;
}
.calendar-nav button {
background-color: var(--card-bg);
color: var(--text-color);
border: none;
padding: 8px 12px;
cursor: pointer;
border-radius: 8px;
font-size: 16px;
transition: background-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
}
.calendar-nav button:hover {
background-color: #555;
transform: scale(1.05);
}
.calendar-nav button:disabled {
background-color: var(--card-bg);
cursor: not-allowed;
transform: none;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 8px;
}
.calendar-day-header {
text-align: center;
font-weight: 500;
padding: 10px;
background-color: var(--card-bg);
color: var(--text-color);
border-radius: 8px;
}
.calendar-day {
background-color: var(--primary-bg);
padding: 10px;
min-height: 100px;
box-sizing: border-box;
border: 1px solid #555;
border-radius: 8px;
overflow: hidden;
}
.calendar-day.empty {
background-color: #1f1e30;
}
.calendar-day.today {
border: 2px solid var(--accent-color);
}
.calendar-release {
margin-bottom: 10px;
}
.calendar-release img {
width: 100%;
max-height: 100px;
object-fit: cover;
margin-bottom: 8px;
border-radius: 8px;
}
.calendar-release .version {
display: block; /* Re-enable for desktop */
font-size: 12px;
font-weight: 500;
text-align: center;
margin: 0 auto 2px auto;
}
.calendar-release .tier {
font-size: 12px;
color: var(--accent-color);
font-weight: 500;
text-align: center;
margin: 0 auto 2px auto;
}
.login-buttons {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 10px;
margin-bottom: 15px;
box-sizing: border-box;
}
.login-buttons .ptrn-button {
width: 250px;
max-width: 250px;
height: auto;
box-sizing: border-box;
}
.login-buttons .ptrn-button img {
width: 100%;
height: auto;
}
.login-buttons .subscribestar-connect-button {
width: 250px;
max-width: 250px;
height: auto;
box-sizing: border-box;
border-radius: 12px;
}
.login-buttons .subscribestar-connect-button img {
width: 100%;
height: auto;
}
.login-buttons .ptrn-button:hover,
.login-buttons .subscribestar-connect-button:hover {
transform: scale(1.05);
}
.gallery-item[data-tab-type="upcoming"] {
border: none !important;
}
.social-icons {
display: flex;
justify-content: center;
gap: 15px;
margin: 20px auto;
max-width: 400px;
}
.social-icon {
display: inline-block;
width: 32px;
height: 32px;
transition: transform 0.2s ease, filter 0.2s ease;
}
.social-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.social-icon:hover {
transform: scale(1.2) rotate(5deg);
filter: brightness(1.2);
}
.social-icon:active {
transform: scale(1.1);
filter: brightness(1.4);
}
}

@media (max-width: 1400px) {
.custom-gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 15px;
padding: 15px;
}
.social-icons {
gap: 10px;
margin: 15px auto;
justify-content: center;
max-width: 400px;
display: flex;
}
.social-icon {
width: 28px;
height: 28px;
}
.social-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.entry-content.wp-block-post-content.has-background.is-layout-flow.wp-block-post-content-is-layout-flow {
max-width: 90%;
margin: 0 auto;
}
.gallery-item {
width: 100%;
max-width: 100%;
margin-bottom: 15px;
background-color: var(--card-bg);
background-image: linear-gradient(135deg, rgba(166,156,210,0.08) 0%, rgba(99,97,160,0.10) 100%);
padding: 10px;
box-sizing: border-box;
box-shadow: 0 6px 24px rgba(99,97,160,0.15), 0 1.5px 8px rgba(0,0,0,0.13);
border-radius: 16px;
border: 1.2px solid rgba(166,156,210,0.13);
/* Enhanced smooth transitions for mobile */
transition: 
  transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
  box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
  background 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
  border-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
  height 0.3s ease-in-out;
overflow: visible;
opacity: 0;
transform: translateY(20px);
position: relative;
animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
transform-origin: center;
will-change: transform, box-shadow, background, border-color;
}

.gallery-item:hover {
/* Mobile-optimized beautiful hover effect */
transform: scale(1.03) translateY(-6px) rotateX(1deg);
/* Enhanced shadow system for mobile */
box-shadow: 
  0 12px 40px 0 rgba(99,97,160,0.25),
  0 4px 16px 0 rgba(0,0,0,0.2),
  0 0 0 1px rgba(166,156,210,0.25),
  inset 0 1px 0 rgba(255,255,255,0.08);
/* Dynamic gradient shift */
background-image: linear-gradient(135deg, rgba(166,156,210,0.15) 0%, rgba(99,97,160,0.2) 100%);
/* Animated border glow */
border-color: rgba(166,156,210,0.5);
position: relative;
}

.gallery-item:hover::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
  90deg,
  transparent 0%,
  rgba(255,255,255,0.08) 50%,
  transparent 100%
);
border-radius: inherit;
animation: shine-sweep 0.7s ease-out;
pointer-events: none;
z-index: 1;
}

.gallery-item:hover .gallery-item-inner {
transform: translateZ(5px);
}

.gallery-item:hover .gallery-img img {
transform: scale(1.01);
filter: brightness(1.05) saturate(1.05);
}

.gallery-item:active {
transform: scale(0.99) translateY(-3px);
transition: transform 0.1s ease-out;
}

.gallery-item-inner {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
box-sizing: border-box;
position: relative;
}
.custom-gallery.missing-items .gallery-item {
background-color: var(--card-bg);
}
.custom-gallery.missing-items .gallery-item-inner {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.gallery-pledge {
width: 100%;
max-width: 100%;
margin-bottom: 10px;
background-color: var(--card-bg);
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
transition: transform var(--animation-speed) ease-in-out;
}
.gallery-pledge:hover {
transform: scale(1.02);
}
.admin-overrides {
width: 100%;
max-width: 100%;
margin-bottom: 10px;
background-color: var(--card-bg);
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
}
.admin-overrides label {
margin-right: 5px;
font-weight: 500;
}
.admin-overrides input[type="number"], .admin-overrides select {
padding: 6px;
background-color: var(--card-bg);
color: var(--text-color);
border: 1px solid #555;
border-radius: 6px;
transition: border-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
box-sizing: border-box;
}
.admin-overrides input[type="number"]:focus, .admin-overrides select:focus {
border-color: var(--accent-color);
outline: none;
transform: scale(1.02);
}
.admin-overrides button {
padding: 6px 12px;
background-color: var(--main-color);
color: var(--text-color);
border: none;
cursor: pointer;
border-radius: 6px;
font-weight: 500;
transition: background-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
}
.admin-overrides button:hover {
background-color: var(--accent-color);
transform: scale(1.05);
}
.filter-controls {
display: flex;
flex-wrap: wrap;
justify-content: center;
position: relative;
gap: 0;
padding: 4px;
background-color: rgba(43, 42, 64, 0.6);
border-radius: 50px;
margin-bottom: 15px;
}
.glider {
position: absolute;
background-color: var(--accent-color);
border-radius: 50px;
z-index: 1;
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.gallery-tab, .language-tab {
position: relative;
z-index: 2;
padding: 6px 14px;
font-size: 14px;
}
.gallery-tab.hidden, .language-tab.hidden {
display: none;
}
.gallery-tab[data-tab="calendar"], .language-tab[data-tab="calendar"] {
padding: 6px 12px;
}
.gallery-tab[data-tab="calendar"] i, .language-tab[data-tab="calendar"] i {
font-size: 16px;
}
.gallery-content {
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
}
.gallery-title {
font-family: 'Oswald', sans-serif;
font-size: clamp(12px, 4vw, 16px);
font-weight: 700;
margin-bottom: 6px;
margin-top: 0;
text-align: center;
transition: color 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.gallery-title:hover {
color: var(--accent-color);
transform: scale(1.06);
}
.countdown-container {
color: #ff9800;
font-style: italic;
margin-bottom: 6px;
font-weight: 500;
text-align: center;
}
.planned-release-date {
color: var(--secondary-text);
margin-bottom: 6px;
font-weight: 400;
text-align: center;
}
.gallery-version {
font-size: 14px;
margin-bottom: 4px;
font-weight: 500;
text-align: center;
}
.newer-version-message {
font-size: 12px;
color: var(--error-color);
font-style: italic;
margin-bottom: 6px;
animation: subtle-flash 2s infinite;
}
.newer-version-message a {
color: var(--error-color);
text-decoration: none;
}
.newer-version-message a:hover {
text-decoration: underline;
}
.gallery-language {
font-size: 12px;
margin-bottom: 6px;
font-weight: 400;
}
.gallery-links {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 6px;
gap: 10px;
box-sizing: border-box;
}
.gallery-links a {
display: inline-flex;
align-items: center;
color: var(--link-color);
text-decoration: none;
font-weight: 500;
padding: 5px 10px;
border-radius: 6px;
transition: color 0.22s cubic-bezier(0.4,0,0.2,1), background 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1);
}
.gallery-links a:hover {
color: #fff;
background-color: var(--accent-color);
transform: scale(1.08);
box-shadow: 0 4px 16px 0 rgba(166,156,210,0.18);
}
.gallery-links a.raise-pledge {
color: var(--accent-color);
font-style: italic;
}
.gallery-links a img {
height: 20px;
margin-right: 8px;
vertical-align: middle;
}
.info-tabs {
display: flex;
justify-content: center;
margin-top: 6px;
gap: 6px;
}
.info-tab {
padding: 3px 8px;
background-color: rgba(59, 58, 85, 0.6);
backdrop-filter: blur(5px);
color: var(--text-color);
cursor: pointer;
border: 1px solid rgba(230, 230, 230, 0.1);
border-radius: 6px;
transition: background-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
font-weight: 500;
font-size: 12px;
white-space: nowrap;
}
.info-tab.active {
background-color: rgba(99, 97, 160, 0.8);
color: var(--text-color);
border: none;
transform: scale(1.05);
}
.info-tab:hover {
background-color: #555;
transform: scale(1.08);
}
.info-content {
display: block;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.info-content.active {
opacity: 1;
max-height: none;
transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.overlay-img, .demo-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
box-sizing: border-box;
opacity: 0;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
text-align: center;
max-height: 250px;
overflow-y: auto;
}
.overlay-img img, .demo-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.countdown {
color: #ff9800;
font-style: italic;
font-weight: 500;
}
.calendar-container {
width: 100%;
max-width: 100%;
background-color: var(--card-bg);
padding: 15px;
box-sizing: border-box;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
transition: opacity var(--animation-speed) ease-in-out;
}
.calendar-container:not(.hidden) {
opacity: 1;
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.calendar-header h2 {
margin: 0;
font-size: 16px;
font-weight: 700;
}
.calendar-nav {
display: flex;
gap: 8px;
}
.calendar-nav button {
background-color: var(--card-bg);
color: var(--text-color);
border: none;
padding: 6px 10px;
cursor: pointer;
border-radius: 6px;
font-size: 14px;
transition: background-color var(--animation-speed) ease-in-out, transform var(--animation-speed) ease-in-out;
}
.calendar-nav button:hover {
background-color: #555;
transform: scale(1.05);
}
.calendar-nav button:disabled {
background-color: var(--card-bg);
cursor: not-allowed;
transform: none;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
}
.calendar-day-header {
text-align: center;
font-weight: 500;
padding: 6px 0;
background-color: var(--card-bg);
color: var(--text-color);
border-radius: 6px;
font-size: 10px;
}
.calendar-day {
padding: 2px;
min-height: 45px;
border-radius: 6px;
}
.calendar-day.empty {
background-color: #1f1e30;
}
.calendar-day.today {
border: 2px solid var(--accent-color);
}
.calendar-day .day-number {
font-size: 9px;
text-align: right;
padding-right: 2px;
}
.calendar-day.today .day-number {
color: var(--accent-color);
font-weight: 700;
}
.calendar-release {
margin-bottom: 4px;
}
.calendar-release img {
width: 100%;
max-height: 20px;
object-fit: cover;
margin-bottom: 2px;
border-radius: 4px;
}
.calendar-release .version {
display: none;
}
.calendar-release .subject-to-change {
font-size: 8px;
line-height: 1;
}
.calendar-release .tier {
font-size: 8px;
line-height: 1;
}
.login-buttons {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 8px;
margin-bottom: 10px;
box-sizing: border-box;
}
.login-buttons .ptrn-button {
width: 180px;
max-width: 180px;
height: auto;
box-sizing: border-box;
}
.login-buttons .ptrn-button img {
width: 100%;
height: auto;
}
.login-buttons .subscribestar-connect-button {
width: 180px;
max-width: 180px;
height: auto;
box-sizing: border-box;
border-radius: 12px;
}
.login-buttons .subscribestar-connect-button img {
width: 100%;
height: auto;
}
.login-buttons .ptrn-button:hover,
.login-buttons .subscribestar-connect-button:hover {
transform: scale(1.05);
}
.gallery-item[data-tab-type="upcoming"] {
border: none !important;
}

/* Force compact calendar styles for mobile */
.calendar-day {
padding: 2px !important;
min-height: 45px !important;
border-radius: 6px !important;
}
.calendar-day-header {
padding: 6px 0 !important;
font-size: 10px !important;
border-radius: 6px !important;
}
.calendar-day .day-number {
font-size: 9px !important;
}
.calendar-release img {
max-height: 20px !important;
margin-bottom: 2px !important;
border-radius: 4px !important;
}
.calendar-release .version {
display: none !important;
}
.calendar-release .subject-to-change,
.calendar-release .tier {
font-size: 8px !important;
line-height: 1 !important;
}
.calendar-release {
margin-bottom: 4px;
text-align: center;
}
.calendar-release .version {
display: none !important;
text-align: center;
}
.calendar-release .tier {
font-size: 8px !important;
line-height: 1 !important;
text-align: center;
}
}

@media (max-width: 600px) {
.rating-widget-container {
flex-direction: row;
flex-wrap: wrap;
gap: 2px;
padding: 6px 0;
}
.rating-widget-container i {
font-size: 22px;
padding: 0 2px;
}
.rating-feedback {
font-size: 12px;
height: auto;
min-height: 16px;
padding: 2px 0;
word-break: break-word;
}
.review-textarea {
font-size: 15px;
min-height: 60px;
padding: 8px;
width: 100%;
box-sizing: border-box;
}
.reviews-list {
font-size: 14px;
padding: 0;
margin: 0;
}
.review-item {
padding: 8px 0;
word-break: break-word;
overflow-wrap: break-word;
}
.review-text {
font-size: 14px;
line-height: 1.4;
word-break: break-word;
overflow-wrap: break-word;
}
.review-header {
flex-wrap: wrap;
gap: 6px;
}
.review-author, .review-version-tag, .review-perspective-tag {
font-size: 13px;
}
.rating-sub-tabs {
overflow-x: auto;
flex-wrap: nowrap;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.rating-sub-tab, .info-tab {
white-space: nowrap;
overflow-wrap: anywhere;
word-break: keep-all;
min-width: 60px;
max-width: 100vw;
font-size: 11px;
}
.review-submission-options {
flex-direction: column;
align-items: stretch;
gap: 6px;
}
.review-submission-options .emote-picker-container {
align-self: flex-start;
}
.emote-picker-btn {
max-width: 40px;
box-sizing: border-box;
}
.rating-sub-tab {
font-size: 9px;
padding: 4px 4px;
max-width: 33vw;
text-overflow: ellipsis;
overflow: hidden;
}
.info-tab {
font-size: 11px;
}
.calendar-countdown {
font-size: 8px !important;
color: var(--secondary-text);
margin-top: 2px;
padding: 0 2px;
text-align: center;
line-height: 1.2;
opacity: 0.85;
font-style: italic;
letter-spacing: 0.1px;
word-break: break-word;
}
/* Waifu button mobile styles */
.waifu-controls-container {
gap: 10px;
margin: 15px auto 0 auto;
}

.leading-waifu-trophy {
width: 45px;
height: 45px;
}

.trophy-base {
font-size: 36px;
}

.trophy-waifu-icon {
top: 6px;
width: 18px;
height: 18px;
border-width: 1.5px;
}

.choose-waifu-btn {
font-size: 13px;
padding: 5px 12px;
}
/* Waifu modal mobile styles */
.waifu-modal-content { padding: 14px 2vw 8px 2vw; }
.waifu-grid { gap: 14px 8px; }
.waifu-choice { min-width: 80px; max-width: 90px; padding: 8px 4px 6px 4px; }
.waifu-icon { width: 56px; height: 56px; }
.waifu-name { font-size: 13px; }
.waifu-modal-content h2 { font-size: 1.2rem; }
/* Waifu leaderboard mobile styles */
.waifu-leaderboard-rank {
flex-direction: row;
align-items: center;
min-width: 320px; /* Increased minimum width to accommodate all elements */
max-width: 100vw;
width: 100% !important;
padding: 12px 10px !important; /* Slightly increased padding */
border-radius: 18px !important;
margin-bottom: 10px;
box-sizing: border-box;
background-size: 100% 100% !important;
background-repeat: no-repeat !important;
overflow: visible !important; /* Ensure sprites are visible */
}
.waifu-leaderboard-rank .waifu-rank-num {
font-size: 1.6em !important;
margin-right: 10px !important;
min-width: 2.2em;
text-align: center;
display: inline-block;
position: static !important;
color: #fff !important;
background: rgba(0,0,0,0.18);
border-radius: 8px;
box-shadow: 0 1px 4px #0002;
z-index: 2;
}
.waifu-leaderboard-rank .waifu-sprite {
max-width: 100px !important; /* Balanced size for mobile visibility without overflow */
max-height: 160px !important; /* Balanced size for mobile visibility without overflow */
margin-right: 12px !important; /* Increased margin to move sprites more to the left */
margin-left: auto !important; /* Push sprite to the right but with margin */
}
.waifu-leaderboard-rank .waifu-name {
font-size: 1.1em !important;
margin-right: 4px !important;
white-space: normal;
flex: 1 1 0;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.waifu-leaderboard-rank .waifu-pick-count {
font-size: 1.1em !important; /* Slightly increased for better readability */
margin-left: 6px !important; /* Increased margin for better spacing */
opacity: 0.95; /* Increased opacity for better visibility */
white-space: nowrap;
min-width: 60px !important; /* Add minimum width */
max-width: 100px !important; /* Add maximum width to prevent overflow */
}

/* Mobile progress bar styles */
.waifu-progress-bar-outer {
flex-direction: column !important;
gap: 8px !important;
margin: 8px 0 !important;
align-items: stretch !important;
}

.waifu-progress-bar-outer > div:first-child {
display: flex !important;
flex-direction: column !important;
align-items: flex-end !important;
min-width: auto !important;
}

.waifu-progress-bar {
flex: 1 1 auto !important;
height: 24px !important;
border-radius: 16px !important;
margin-top: 4px !important;
}

.vote-change-24h {
font-size: 0.8em !important;
margin-top: 2px !important;
text-align: right !important;
}

/* Mobile badge styles */
.waifu-badges {
margin-bottom: 8px !important;
gap: 6px !important;
}

.waifu-badge {
font-size: 0.65em !important;
padding: 3px 6px !important;
}
}

.alert-container {
background-color: var(--error-color);
color: var(--text-color);
padding: 10px;
margin-bottom: 20px;
display: none;
transition: height 1s ease-in-out, opacity var(--animation-speed) ease-in-out;
overflow: hidden;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
}
.gallery-item.hidden {
display: none;
}
.custom-gallery.missing-items {
justify-content: center;
}
.calendar-container.hidden {
display: none;
opacity: 0;
}

/* Changelog Styling */
.changelog-container {
    text-align: left;
    margin: 0;
    padding: 0;
}

.changelog-section {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 16px 0 8px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.changelog-section:first-child {
    margin-top: 0;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    text-align: left;
}

.log-item {
    padding: 10px 16px;
    margin: 4px 0;
    border-radius: 6px;
    border-left: 4px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.log-item.log-added { 
    border-left-color: #4CAF50; 
    background: rgba(76, 175, 80, 0.1);
}

.log-item.log-fixed { 
    border-left-color: #2196F3; 
    background: rgba(33, 150, 243, 0.1);
}

.log-item.log-improved { 
    border-left-color: #FFC107; 
    background: rgba(255, 193, 7, 0.1);
}

.log-item.log-known-issue { 
    border-left-color: #f44336; 
    background: rgba(244, 67, 54, 0.1);
}

.log-item.log-general { 
    border-left-color: var(--secondary-text); 
    background: rgba(255, 255, 255, 0.05);
}

.log-item span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    display: block;
    font-weight: 400;
}

/* Release Note Styling */
.release-note-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 0;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.release-note-content p {
    margin: 0 0 18px 0;
    text-indent: 0;
}

.release-note-content p:first-child {
    margin-top: 0;
}

.release-note-content p:last-child {
    margin-bottom: 0;
}

/* Enhanced text styling for release notes */
.release-note-content br + br {
    display: block;
    content: "";
    margin-top: 8px;
}

.release-note-content strong,
.release-note-content b {
    font-weight: 600;
    color: var(--accent-color);
}

.release-note-content em,
.release-note-content i {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.overlay-img, .demo-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
box-sizing: border-box;
opacity: 0;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
text-align: center;
max-height: 250px;
overflow-y: auto;
}
.overlay-img img, .demo-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.countdown {
color: #ff9800;
font-style: italic;
font-weight: 500;
}
/* Removed duplicate calendar-container definition - consolidated above */
/* Removed duplicate login-buttons definition - consolidated with other responsive versions */
.gallery-item[data-tab-type="upcoming"] {
border: none !important;
}
/* Removed duplicate social-icons definition - consolidated with other responsive versions */

.rating-review-container {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 8px;
flex-wrap: wrap;
}

.average-rating {
display: flex;
align-items: center;
gap: 5px;
}
.stars-outer {
position: relative;
display: inline-block;
font-size: 16px;
}
.stars-outer::before {
content: "\f005 \f005 \f005 \f005 \f005";
font-family: "Font Awesome 6 Free";
font-weight: 400; /* Regular style */
color: #444;
}
.stars-inner {
position: absolute;
top: 0;
left: 0;
white-space: nowrap;
overflow: hidden;
width: 0;
}
.stars-inner::before {
content: "\f005 \f005 \f005 \f005 \f005";
font-family: "Font Awesome 6 Free";
font-weight: 900; /* Solid style */
color: #FFC107;
}
.rating-count {
font-size: 12px;
color: var(--secondary-text);
}

.review-count-display {
display: flex;
align-items: center;
gap: 6px;
font-size: 14px;
}

.review-icon {
color: var(--accent-color);
font-size: 14px;
opacity: 0.8;
}

.review-count {
font-size: 12px;
color: var(--secondary-text);
}
.rating-widget-container {
display: flex;
justify-content: center;
padding: 10px 0;
}
.rating-widget-container i {
font-size: 24px;
color: #ccc;
cursor: pointer;
transition: color 0.2s, transform 0.2s;
padding: 0 5px;
}
.rating-widget-container i:hover {
transform: scale(1.1);
}
.rating-widget-container.rated i,
.rating-widget-container:not(.rated) i:hover,
.rating-widget-container:not(.rated) i:hover ~ i {
color: #ccc;
}
.rating-widget-container.rated i.active,
.rating-widget-container.rated i.active ~ i {
color: #FFC107;
}
.rating-widget-container:not(.rated) i:hover,
.rating-widget-container:not(.rated) i:hover ~ i.hovered {
color: #FFC107 !important;
}
.rating-feedback {
font-size: 13px;
color: var(--accent-color);
height: 16px;
margin-top: 5px;
text-align: center;
}

.rating-sub-tabs {
display: flex;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 10px;
}
.rating-sub-tab {
padding: 8px 12px;
cursor: pointer;
color: var(--secondary-text);
font-size: 14px;
border-bottom: 2px solid transparent;
}
.rating-sub-tab.active {
color: var(--text-color);
border-bottom-color: var(--accent-color);
}
.rating-sub-content {
display: none;
}
.rating-sub-content.active {
display: block;
}

.review-textarea {
width: 100%;
background-color: rgba(43, 42, 64, 0.7);
border: 1px solid #555;
border-radius: 8px;
color: var(--text-color);
padding: 10px;
min-height: 80px;
margin-top: 10px;
resize: vertical;
box-sizing: border-box;
}
.submit-review-btn {
display: block;
margin: 10px 0 0 auto;
padding: 6px 14px;
background-color: var(--main-color);
color: var(--text-color);
border: none;
cursor: pointer;
border-radius: 8px;
font-weight: 500;
}
.submit-review-btn:hover {
background-color: var(--accent-color);
}

.reviews-list {
padding: 0;
margin: 0;
list-style: none;
}
.review-item {
padding: 10px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.review-item:last-child {
border-bottom: none;
}
.review-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 5px;
}
.review-author {
font-weight: 700;
color: var(--text-color);
}
.review-version-tag {
font-size: 12px;
color: var(--secondary-text);
font-style: italic;
}
.delete-review-btn {
margin-left: auto;
cursor: pointer;
font-size: 22px;
font-weight: 700;
color: var(--secondary-text);
line-height: 1;
padding: 0 5px;
}
.delete-review-btn:hover {
color: var(--error-color);
}
.review-stars i {
color: #FFC107;
font-size: 14px;
}
.review-text {
margin: 0;
color: var(--secondary-text);
line-height: 1.5;
}
.no-reviews-message {
text-align: center;
color: var(--secondary-text);
padding: 20px 0;
}
.gallery-item[data-tab-type="missing"] .overlay-img {
opacity: 1;
}

.gallery-item[data-tab-type="missing"] .gallery-img {
position: relative;
overflow: hidden;
}

.gallery-item[data-tab-type="missing"] .gallery-img img,
.gallery-item[data-tab-type="missing"] .overlay-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.gallery-item[data-tab-type="missing"] .gallery-img:hover img {
transform: none !important;
}

.admin-panel-toggle {
padding: 6px 12px;
font-size: 14px;
background-color: #555;
color: var(--text-color);
border: none;
cursor: pointer;
border-radius: 8px;
font-weight: 500;
transition: background-color var(--animation-speed) ease-in-out;
align-self: center;
}
.admin-panel-toggle:hover {
background-color: var(--main-color);
}
#show-admin-panel {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
display: none;
}

#dynamic-bg-container {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
overflow: hidden;
pointer-events: none;
}

#dynamic-bg-container img {
position: absolute;
opacity: 0;
transition: opacity 3s ease-in-out;
will-change: opacity;
}

#dynamic-bg-container img.fade-in {
opacity: var(--target-opacity, 0.1);
}

.dynamic-bg-image {
position: absolute;
opacity: 0;
transition: opacity 3s ease-in-out;
will-change: opacity;
z-index: 0;
}

.dynamic-bg-image.fade-in {
opacity: var(--target-opacity, 0.2);
}

.shortcode-content-wrapper {
position: relative;
z-index: 1;
}

.dynamic-bg-image {
position: absolute;
will-change: transform;
}

.pattern-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
overflow: hidden;
}

.pattern-background img {
flex-shrink: 0;
width: 120px;
height: auto;
margin: 15px;
transform: rotate(var(--rotation));
opacity: 0.15;
}

.logo-container,
.social-icons,
.login-buttons,
.custom-gallery,
.admin-overrides,
.waifu-controls-container {
position: relative;
z-index: 1;
}

.review-filter-container {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 20px;
margin-bottom: 15px;
}
.review-filter-container > div {
display: flex;
align-items: center;
gap: 8px;
}
.review-filter-container label {
font-size: 14px;
color: var(--secondary-text);
flex-shrink: 0;
}
.review-filter-container select {
background-color: var(--primary-bg);
color: var(--text-color);
border: 1px solid #555;
border-radius: 6px;
padding: 5px;
font-size: 14px;
}

.review-perspective-tag {
font-size: 12px;
color: #a69cd2;
background-color: rgba(166, 156, 210, 0.1);
padding: 2px 6px;
border-radius: 4px;
margin-left: 8px;
}

.review-submission-options {
display: flex;
gap: 10px;
margin-top: 10px;
align-items: center;
justify-content: flex-end;
}

.review-submission-options .review-perspective-select {
background-color: var(--primary-bg);
color: var(--text-color);
border: 1px solid #555;
border-radius: 6px;
padding: 6px;
font-size: 14px;
}

.review-submission-options .submit-review-btn {
margin: 0;
flex-shrink: 0;
}

.review-textarea {
width: 100%;
background-color: rgba(43, 42, 64, 0.7);
border: 1px solid #555;
border-radius: 8px;
color: var(--text-color);
padding: 10px;
min-height: 80px;
margin-top: 10px;
resize: vertical;
box-sizing: border-box;
}



.review-emote {
height: 28px;
width: 28px;
vertical-align: middle;
margin: -4px 1px 0;
}

.emote-picker-container {
position: relative;
}

.emote-picker-btn {
font-size: 22px;
cursor: pointer;
color: var(--secondary-text);
padding: 5px;
}
.emote-picker-btn:hover {
color: var(--accent-color);
}

.emote-picker {
display: none;
position: absolute;
bottom: 120%;
left: 0;
background: var(--primary-bg);
border: 1px solid #555;
border-radius: 8px;
padding: 8px;
max-height: 200px;
overflow-y: auto;
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 5px;
z-index: 10;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.emote-picker img {
width: 32px;
height: 32px;
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: background-color 0.2s;
}

.emote-picker img:hover {
background-color: var(--card-bg);
}

.review-perspective-tag {
font-size: 12px;
color: #a69cd2;
background-color: rgba(166, 156, 210, 0.1);
padding: 2px 6px;
border-radius: 4px;
margin-left: 8px;
}

.review-submission-options .emote-picker-container {
flex-shrink: 0;
}

.review-submission-options .review-perspective-select {
background-color: var(--primary-bg);
color: var(--text-color);
border: 1px solid #555;
border-radius: 6px;
padding: 6px;
font-size: 14px;
}

.review-submission-options .submit-review-btn {
margin: 0;
flex-shrink: 0;
}

.speech-bubble {
position: relative;
background: var(--card-bg);
border-radius: 15px;
padding: 20px;
margin-top: 30px; /* Space from logo */
text-align: center;
border: 2px solid var(--accent-color);
box-shadow: var(--shadow);
transition: border-color 0.3s, opacity 0.3s;
opacity: 0;
animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
.speech-bubble:after {
content: '';
position: absolute;
bottom: 100%; /* At the top of the bubble */
left: 50%;
transform: translateX(-50%);
border: 20px solid transparent;
border-bottom-color: var(--accent-color);
width: 0;
height: 0;
transition: border-bottom-color 0.3s;
}
.speech-bubble.major:after {
border-bottom-color: #FFC107;
}
.speech-bubble.major {
border-color: #FFC107;
}
.speech-bubble p {
margin: 0;
font-size: 16px;
line-height: 1.5;
color: var(--text-color);
}

.close-bubble {
position: absolute;
top: 8px;
right: 12px;
font-size: 24px;
color: var(--secondary-text);
cursor: pointer;
line-height: 1;
}
.close-bubble:hover {
color: var(--text-color);
}

.calendar-countdown {
font-size: 10px;
color: var(--secondary-text);
margin-top: 2px;
padding: 0 2px;
text-align: center;
line-height: 1.2;
opacity: 0.85;
font-style: italic;
letter-spacing: 0.1px;
word-break: break-word;
}

.rating-widget-container .star {
position: relative;
display: inline-block;
width: 24px;
height: 24px;
cursor: pointer;
}
.rating-widget-container .star i {
font-size: 24px;
color: #ccc;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.rating-widget-container .star.full i,
.rating-widget-container .star.selected i {
color: #FFC107;
}
.rating-widget-container .star.half i {
color: #FFC107;
clip-path: inset(0 50% 0 0);
}
.rating-widget-container .star.half i.far {
color: #ccc;
clip-path: inset(0 0 0 50%);
}
.rating-widget-container .star:hover i,
.rating-widget-container .star.hovered i {
color: #FFC107;
}
/* ✨ Premium Badge System - Beautiful, modern design with subtle animations */

/* Badge animations */
@keyframes badge-glow-pulse {
  0%, 100% { 
    box-shadow: 
      0 3px 12px rgba(0, 0, 0, 0.15),
      0 1px 4px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 0 0 rgba(var(--accent-rgb, 166, 156, 210), 0.3);
  }
  50% { 
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.2),
      0 2px 6px rgba(0, 0, 0, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 8px rgba(var(--accent-rgb, 166, 156, 210), 0.4);
  }
}

@keyframes badge-exclusive-glow {
  0%, 100% { 
    box-shadow: 
      0 3px 12px rgba(255, 215, 0, 0.25),
      0 1px 4px rgba(255, 140, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 0 0 rgba(255, 215, 0, 0.2);
  }
  50% { 
    box-shadow: 
      0 4px 16px rgba(255, 215, 0, 0.35),
      0 2px 6px rgba(255, 140, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 12px rgba(255, 215, 0, 0.3);
  }
}

@keyframes badge-shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

/* NEW Badge - Premium design with waifu theme integration */
.gallery-item[data-new="true"] {
  position: relative;
}

.gallery-item[data-new="true"]::after {
  content: '✨ NEW';
  position: absolute;
  top: 10px;
  left: 10px;
  background: 
    linear-gradient(135deg, var(--accent-color, #a69cd2) 0%, var(--main-color, #6361a0) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  background-size: 100% 100%, 200% 100%;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 16px;
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: 
    badge-glow-pulse 3s ease-in-out infinite,
    badge-shimmer 4s ease-in-out infinite;
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  /* Critical: Immune to parent transforms */
  transform: none !important;
  transition: none !important;
  pointer-events: none;
  will-change: auto;
  /* Modern glassmorphism effect */
  background-blend-mode: overlay, normal;
}

/* EXCLUSIVE Badge - Luxury gold design */
.gallery-item[data-exclusive="true"]:not([data-new="true"])::after {
  content: '👑 EXCLUSIVE';
  position: absolute;
  top: 10px;
  left: 10px;
  background: 
    linear-gradient(135deg, #ffd700 0%, #ffb347 30%, #ff8c00 70%, #ffa500 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  background-size: 100% 100%, 200% 100%;
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 16px;
  font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  z-index: 999;
  animation: 
    badge-exclusive-glow 3s ease-in-out infinite,
    badge-shimmer 4s ease-in-out infinite 0.5s;
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  /* Critical: Immune to parent transforms */
  transform: none !important;
  transition: none !important;
  pointer-events: none;
  will-change: auto;
  background-blend-mode: overlay, normal;
}

/* Combined Badge - When both NEW and EXCLUSIVE are present */
.gallery-item[data-exclusive="true"][data-new="true"]::after {
  content: '✨👑 NEW • EXCLUSIVE';
  background: 
    linear-gradient(135deg, var(--accent-color, #a69cd2) 0%, #ffd700 40%, #ffb347 60%, var(--main-color, #6361a0) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  background-size: 100% 100%, 200% 100%;
  padding: 6px 14px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  animation: 
    badge-glow-pulse 2.5s ease-in-out infinite,
    badge-exclusive-glow 3.5s ease-in-out infinite 1s,
    badge-shimmer 3s ease-in-out infinite;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* Fix lock overlay/image stacking */
.gallery-item[data-tab-type="missing"] .gallery-img img {
position: relative !important;
z-index: 1;
opacity: 1;
}
.gallery-item[data-tab-type="missing"] .overlay-img {
z-index: 2;
opacity: 1;
}

/* Animated lock overlay for locked items */
.gallery-item[data-tab-type="missing"] .gallery-img img {
filter: blur(0.5px) brightness(1);
position: relative !important;
z-index: 1;
opacity: 1;
}
.gallery-item[data-tab-type="missing"] .overlay-img {
z-index: 2;
opacity: 1;
background: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
pointer-events: none;
}
.gallery-item[data-tab-type="missing"] .overlay-img img {
display: none;
}
.gallery-item[data-tab-type="missing"] .overlay-img .animated-lock {
font-size: 54px;
color: #fff;
text-shadow: 0 2px 12px #000a, 0 0 8px #a69cd2;
animation: lock-ultra-subtle-wiggle 4.5s infinite linear !important;
margin-bottom: 8px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
border: 3px solid #fff;
box-shadow: 0 0 18px 6px #ff6b6b88, 0 0 8px 2px #a69cd288;
background: rgba(43,42,64,0.25);
}
.gallery-item[data-tab-type="missing"] .overlay-img .animated-lock i {
display: inline-block;
}
.gallery-item[data-tab-type="missing"] .overlay-img .animated-lock .fallback-lock {
font-size: 54px;
margin-left: 0.5em;
}

.gallery-item[data-tab-type="missing"] .overlay-img .locked-text {
color: #fff;
font-size: 20px;
font-weight: 700;
text-shadow: 0 2px 8px #000a;
letter-spacing: 1.5px;
background: rgba(43,42,64,0.7);
border-radius: 8px;
padding: 2px 16px;
}
.gallery-item[data-tab-type="missing"] .gallery-img img {
filter: blur(0.5px) brightness(0.96);
position: relative !important;
z-index: 1;
opacity: 1;
}










/* Ultra-subtle, non-tiring lock animation: gentle slow wiggle only, no color or brightness change */
@keyframes lock-ultra-subtle-wiggle {
0%   { transform: rotate(-4deg); }
20%  { transform: rotate(4deg); }
50%  { transform: rotate(0deg); }
80%  { transform: rotate(-4deg); }
100% { transform: rotate(-4deg); }
}
.gallery-item[data-tab-type="missing"] .gallery-img .overlay-img .animated-lock {
font-size: 54px;
color: #ffffff;
text-shadow: 0 2px 12px #1a8cff33, 0 0 8px #b3d1ff44;
animation: lock-ultra-subtle-wiggle 4.5s infinite linear !important;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
border: none;
box-shadow: none;
background: none;
padding: 0;
position: static;
transform-origin: 50% 50%;
}
.gallery-item[data-tab-type="missing"] .gallery-img img {
filter: blur(0.3px) brightness(1);
position: relative !important;
z-index: 1;
opacity: 1;
}

/* --- Button Ripple & Feedback Enhancements --- */
.button, .submit-review-btn, .admin-overrides button, .admin-panel-toggle {
position: relative;
overflow: hidden;
transition: background 0.22s, transform 0.18s, box-shadow 0.18s;
outline: none;
}
.button:active, .submit-review-btn:active, .admin-overrides button:active, .admin-panel-toggle:active {
transform: scale(0.97);
box-shadow: 0 2px 8px rgba(99,97,160,0.18);
}
.button .ripple, .submit-review-btn .ripple, .admin-overrides button .ripple, .admin-panel-toggle .ripple {
position: absolute;
border-radius: 50%;
transform: scale(0);
animation: ripple 0.5s linear;
background: rgba(255,255,255,0.5);
pointer-events: none;
z-index: 2;
}
@keyframes ripple {
to {
transform: scale(3.5);
opacity: 0;
}
}
.button.loading, .submit-review-btn.loading, .admin-overrides button.loading, .admin-panel-toggle.loading {
pointer-events: none;
color: transparent !important;
position: relative;
}
.button.loading::after, .submit-review-btn.loading::after, .admin-overrides button.loading::after, .admin-panel-toggle.loading::after {
content: '';
position: absolute;
left: 50%; top: 50%;
width: 22px; height: 22px;
margin: -11px 0 0 -11px;
border: 3px solid #fff;
border-top: 3px solid var(--accent-color, #a69cd2);
border-radius: 50%;
animation: spin 0.7s linear infinite;
z-index: 3;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.button.success, .submit-review-btn.success, .admin-overrides button.success, .admin-panel-toggle.success {
background: #4CAF50 !important;
color: #fff !important;
position: relative;
}
.button.success::after, .submit-review-btn.success::after, .admin-overrides button.success::after, .admin-panel-toggle.success::after {
content: '✔';
position: absolute;
left: 50%; top: 50%;
transform: translate(-50%, -50%);
font-size: 20px;
color: #fff;
z-index: 3;
}
/* Add to the CSS section (after .calendar-nav button) */
.cute-arrow {
background: linear-gradient(135deg, #f8e1ff 60%, #e0f7fa 100%);
border-radius: 50%;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
box-shadow: 0 2px 8px #a69cd233;
border: 2px solid #fff4;
transition: background 0.22s, transform 0.18s, box-shadow 0.18s;
position: relative;
}
.cute-arrow .arrow-icon {
display: flex;
align-items: center;
gap: 2px;
}
.cute-arrow .paw {
font-size: 18px;
margin: 0 2px;
}
.cute-arrow:hover:not(:disabled) {
background: linear-gradient(135deg, #e1f7fa 60%, #f8e1ff 100%);
animation: cute-wiggle 0.5s;
box-shadow: 0 4px 16px #a69cd288;
transform: scale(1.08) rotate(-8deg);
}
@keyframes cute-wiggle {
0% { transform: scale(1) rotate(0deg); }
20% { transform: scale(1.08) rotate(-8deg); }
40% { transform: scale(0.98) rotate(8deg); }
60% { transform: scale(1.05) rotate(-6deg); }
80% { transform: scale(1.02) rotate(6deg); }
100% { transform: scale(1.08) rotate(-8deg); }
}
.cute-arrow:disabled {
opacity: 0.5;
cursor: not-allowed;
filter: grayscale(0.3);
box-shadow: none;
}
@keyframes cat-wiggle {
0% { transform: rotate(0deg) scale(1); }
10% { transform: rotate(-6deg) scale(1.04); }
20% { transform: rotate(6deg) scale(1.06); }
30% { transform: rotate(-4deg) scale(1.03); }
40% { transform: rotate(4deg) scale(1.04); }
50% { transform: rotate(-2deg) scale(1.01); }
60% { transform: rotate(2deg) scale(1.02); }
70% { transform: rotate(-1deg) scale(1.01); }
80% { transform: rotate(1deg) scale(1.01); }
90% { transform: rotate(0deg) scale(1); }
100% { transform: rotate(0deg) scale(1); }
}
.logo-img.wiggle {
animation: cat-wiggle 1s infinite linear;
}
.speech-bubble p.typing {
/* border-right: 2px solid #fff6; */
/* animation: blink-cursor 0.8s steps(1) infinite; */
}

.waifu-controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 18px auto 0 auto;
    z-index: 10;
}

.leading-waifu-trophy {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

.leading-waifu-trophy:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.5));
}

.leading-waifu-trophy:active {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.7));
}

.trophy-base {
    font-size: 48px;
    position: absolute;
    z-index: 1;
    animation: trophy-glow 3s ease-in-out infinite;
}

.trophy-waifu-icon {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffd700;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leading-waifu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes trophy-glow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

@keyframes trophy-celebration {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.choose-waifu-btn {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 12px 24px;
background: linear-gradient(135deg, var(--accent-color) 0%, #a69cd2 100%);
color: #fff;
font-size: 16px;
font-weight: 700;
border: none;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(166, 156, 210, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
outline: none;
z-index: 10;
position: relative;
line-height: 1.3;
min-width: 0;
font-family: 'Poppins', 'Montserrat', sans-serif;
letter-spacing: 0.5px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
overflow: hidden;
}

.choose-waifu-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}

.choose-waifu-btn:hover::before {
left: 100%;
}

.choose-waifu-btn:hover, .choose-waifu-btn:focus {
background: linear-gradient(135deg, #b8a9e0 0%, var(--main-color) 100%);
color: #fff;
box-shadow: 0 6px 20px rgba(166, 156, 210, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
transform: translateY(-2px) scale(1.02);
}

.choose-waifu-btn:active {
transform: translateY(0) scale(0.98);
box-shadow: 0 2px 8px rgba(166, 156, 210, 0.3);
transition: all 0.1s;
}

.waifu-btn-icon {
transition: transform 0.3s ease;
}

.choose-waifu-btn:hover .waifu-btn-icon {
transform: scale(1.1) rotate(-5deg);
}
/* Removed duplicate mobile media query - consolidated below */
.waifu-modal {
position: fixed;
z-index: 9999;
left: 0; top: 0; width: 100vw; height: 100vh;
background: rgba(44, 42, 64, 0.85);
display: flex;
align-items: center;
justify-content: center;
animation: fadeInUp 0.4s;
transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
opacity: 1;
}
.waifu-modal.hide {
opacity: 0;
pointer-events: none;
transform: scale(0.96) translateY(30px);
transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.waifu-modal-content {
background: rgba(60, 58, 90, 0.65);
border-radius: 24px;
padding: 38px 38px 28px 38px;
box-shadow: 0 8px 32px rgba(99,97,160,0.18), 0 1.5px 8px rgba(0,0,0,0.18);
min-width: 340px;
max-width: 95vw;
max-height: 80vh;
overflow-y: auto;
position: relative;
text-align: center;
/* Glassmorphism */
backdrop-filter: blur(16px) saturate(1.2);
border: 1.5px solid rgba(255,255,255,0.13);
font-family: 'Quicksand', 'Montserrat', 'Poppins', 'Oswald', 'Roboto', sans-serif;
animation: modalPopIn 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalPopIn {
0% { opacity: 0; transform: scale(0.92) translateY(40px); }
100% { opacity: 1; transform: scale(1) translateY(0); }
}
.waifu-modal-close {
position: absolute;
top: 18px;
right: 24px;
font-size: 32px;
color: #fff;
cursor: pointer;
z-index: 2;
transition: color 0.2s, transform 0.18s;
background: rgba(166,156,210,0.13);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
}
.waifu-modal-close:hover {
color: #ffb6c1;
background: rgba(166,156,210,0.22);
transform: scale(1.12) rotate(8deg);
}
.waifu-modal-content h2 {
font-family: 'Poppins', 'Montserrat', 'Quicksand', 'Oswald', 'Roboto', sans-serif;
font-size: 2.1rem;
font-weight: 700;
color: #fff;
margin-bottom: 18px;
letter-spacing: 1.2px;
text-shadow: 0 2px 8px #a69cd288;
}
.waifu-grid {
display: flex;
flex-wrap: wrap;
gap: 32px 28px;
justify-content: center;
margin-top: 24px;
}
.waifu-choice {
display: flex;
flex-direction: column;
align-items: center;
background: linear-gradient(135deg, var(--waifu-color, #fff) 60%, #fff2 100%);
border-radius: 18px;
padding: 18px 14px 12px 14px;
box-shadow: 0 2px 12px #a69cd233;
cursor: pointer;
transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
border: 2.5px solid transparent;
min-width: 120px;
max-width: 150px;
font-family: 'Quicksand', 'Montserrat', 'Poppins', 'Oswald', 'Roboto', sans-serif;
position: relative;
overflow: hidden;
}
.waifu-choice:hover, .waifu-choice.selected {
transform: scale(1.11) rotate(-2deg);
box-shadow: 0 8px 32px #a69cd288;
border-color: var(--waifu-color, #ffb6c1);
background: linear-gradient(135deg, var(--waifu-color, #fff) 80%, #fff8 100%);
z-index: 2;
}
.waifu-choice::after {
content: '';
display: block;
position: absolute;
inset: 0;
border-radius: 18px;
pointer-events: none;
box-shadow: 0 0 0 0 #fff0;
transition: box-shadow 0.3s;
}
.waifu-choice.selected::after {
box-shadow: 0 0 0 4px #a69cd244;
}
.waifu-icon {
width: 96px;
height: 96px;
object-fit: contain;
border-radius: 14px;
background: #fff;
margin-bottom: 10px;
box-shadow: 0 1px 8px #0002;
transition: box-shadow 0.18s, transform 0.18s;
}
.waifu-choice:hover .waifu-icon, .waifu-choice.selected .waifu-icon {
box-shadow: 0 4px 18px #a69cd288;
transform: scale(1.07) rotate(-2deg);
}
.waifu-name {
font-size: 1.18rem;
font-weight: 700;
color: #fff;
margin-top: 6px;
text-shadow: 0 2px 8px #000a, 0 1px 2px #fff8;
font-family: 'Montserrat', 'Poppins', 'Quicksand', 'Oswald', 'Roboto', sans-serif;
letter-spacing: 0.5px;
text-align: center;
padding: 2px 0 0 0;
border-radius: 4px;
background: linear-gradient(90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 100%);
}
/* Removed duplicate mobile media query - consolidated below */
.waifu-leaderboard-rank {
font-family: 'Bangers', sans-serif;
letter-spacing: 1px;
display: flex;
align-items: center;
margin-bottom: 8px;
box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 1px 5px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
border-radius: 0;
transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), width 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
position: relative;
min-width: 300px; /* Increased minimum width to accommodate sprites */
max-width: 700px;
width: 100%;
box-sizing: border-box;
overflow: visible; /* Changed from hidden to visible so sprites can be seen */
border: 1px solid rgba(255,255,255,0.08);
backdrop-filter: blur(4px);
}
.waifu-leaderboard-rank.first { border-top-left-radius: 32px; border-top-right-radius: 32px; }
.waifu-leaderboard-rank.last { border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }

/* Podium-style visual hierarchy - make #1 REALLY stand out */
.waifu-leaderboard-rank.top1 { 
    transform: scale(1.08) translateY(-6px); /* Reduced scale to fit container better */
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4), 0 4px 16px rgba(255, 215, 0, 0.2); /* Golden glow */
    border: 3px solid #FFD700; /* Gold border */
    z-index: 10;
    position: relative;
    overflow: visible; /* Allow sprite to extend beyond bounds */
}

/* Champion Belt Effect - outer golden glow */
.waifu-leaderboard-rank.top1::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(45deg, 
        #FFD700 0%, #FFF8DC 25%, #FFD700 50%, #FFF8DC 75%, #FFD700 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    animation: champion-belt-glow 4s ease-in-out infinite;
}

@keyframes champion-belt-glow {
    0%, 100% { 
        opacity: 0.6; 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.3);
        transform: scale(1.02);
    }
}

/* Podium effect - #2 and #3 slightly elevated */
.waifu-leaderboard-rank.top2 { 
    transform: scale(1.08) translateY(-4px); 
    box-shadow: 0 6px 24px rgba(192, 192, 192, 0.3), 0 2px 12px rgba(192, 192, 192, 0.15); /* Silver glow */
    border: 2px solid #C0C0C0; /* Silver border */
    z-index: 8;
    position: relative;
}

.waifu-leaderboard-rank.top3 { 
    transform: scale(1.04) translateY(-2px); 
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.25), 0 2px 8px rgba(205, 127, 50, 0.12); /* Bronze glow */
    border: 2px solid #CD7F32; /* Bronze border */
    z-index: 6;
    position: relative;
}

/* Other ranks stay grounded */
.waifu-leaderboard-rank.other { 
    transform: scale(1.0); 
    z-index: 1; 
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}
/* Enhanced competitive rank number styling with competitive elements */
.waifu-leaderboard-rank.top1 .waifu-rank-num { 
    font-size: 4.5em; /* Bigger for champion impact */
    color: #FFD700;
    text-shadow: 3px 3px 0 #000, 0 0 16px #FFD700, 0 0 32px #FFD700, 0 0 48px #FFD700;
    animation: golden-pulse 2s ease-in-out infinite alternate, champion-bounce 3s ease-in-out infinite;
    font-weight: 900; /* Extra bold */
    transform: rotate(-5deg); /* Dynamic tilt */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    position: relative;
}

/* Add crown icon for #1 */
.waifu-leaderboard-rank.top1 .waifu-rank-num::before {
    content: "👑";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    font-size: 0.6em;
    animation: crown-float 2.5s ease-in-out infinite;
}
.waifu-leaderboard-rank.top2 .waifu-rank-num { 
    font-size: 4.2em; /* Increased size */
    color: #E8E8E8;
    text-shadow: 3px 3px 0 #000, 0 0 12px #C0C0C0, 0 0 24px #C0C0C0;
    font-weight: 800;
    transform: rotate(-2deg); /* Subtle tilt */
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    position: relative;
}

/* Add silver medal for #2 */
.waifu-leaderboard-rank.top2 .waifu-rank-num::before {
    content: "🥈";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    font-size: 0.5em;
    animation: medal-sway 3s ease-in-out infinite;
}

.waifu-leaderboard-rank.top3 .waifu-rank-num { 
    font-size: 3.8em; /* Increased size */
    color: #CD7F32;
    text-shadow: 2px 2px 0 #000, 0 0 10px #CD7F32, 0 0 20px #CD7F32;
    font-weight: 700;
    transform: rotate(-1deg); /* Minimal tilt */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    position: relative;
}

/* Add bronze medal for #3 */
.waifu-leaderboard-rank.top3 .waifu-rank-num::before {
    content: "🥉";
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    font-size: 0.5em;
    animation: medal-sway 3.5s ease-in-out infinite;
}

@keyframes golden-pulse {
    0% { 
        text-shadow: 3px 3px 0 #000, 0 0 16px #FFD700, 0 0 32px #FFD700, 0 0 48px #FFD700;
        transform: rotate(-5deg) scale(1);
    }
    50% {
        text-shadow: 3px 3px 0 #000, 0 0 24px #FFD700, 0 0 48px #FFD700, 0 0 72px #FFD700, 0 0 96px #FFD700;
        transform: rotate(-5deg) scale(1.05);
    }
    100% { 
        text-shadow: 3px 3px 0 #000, 0 0 20px #FFD700, 0 0 40px #FFD700, 0 0 60px #FFD700, 0 0 80px #FFD700;
        transform: rotate(-5deg) scale(1.02);
    }
}

/* Competitive animations */
@keyframes champion-bounce {
    0%, 100% { transform: rotate(-5deg) translateY(0px); }
    50% { transform: rotate(-5deg) translateY(-2px); }
}

@keyframes crown-float {
    0%, 100% { transform: translateX(-50%) rotate(5deg) translateY(0px); }
    50% { transform: translateX(-50%) rotate(8deg) translateY(-3px); }
}

/* Removed unused transform-based animations that were causing positioning conflicts */

/* Sprite animations for different positions */
@keyframes champion-glow {
    0% { 
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) drop-shadow(0 0 20px rgba(255,215,0,0.3));
        transform: translateY(-8px) scale(1);
    }
    50% { 
        filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)) drop-shadow(0 0 35px rgba(255,215,0,0.6));
        transform: translateY(-10px) scale(1.02);
    }
    100% { 
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) drop-shadow(0 0 20px rgba(255,215,0,0.3));
        transform: translateY(-8px) scale(1);
    }
}

@keyframes podium-sway {
    0%, 100% { 
        transform: translateY(-4px) rotate(0deg);
    }
    25% { 
        transform: translateY(-5px) rotate(0.5deg);
    }
    75% { 
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

@keyframes gentle-float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-3px);
    }
}
/* Main leaderboard layout structure */
.waifu-leaderboard-main {
display: flex;
align-items: center;
gap: 16px; /* Add consistent spacing between elements */
flex: 1;
min-width: 0; /* Allow flexbox to shrink properly */
}

.waifu-leaderboard-rank .waifu-sprite {
object-fit: contain;
display: block;
position: relative;
z-index: 5; /* Above background effects */
flex-shrink: 0; /* Prevent sprite from shrinking */
margin-left: auto; /* Push sprite to the right side */
margin-right: 16px; /* Add right margin to move sprites more to the left */
}

/* Enhanced sprite styling to pop out from background */
.waifu-leaderboard-rank.top1 .waifu-sprite { 
    max-width: 400px; 
    max-height: 800px;
    z-index: 15; /* Well above golden background */
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) drop-shadow(0 0 20px rgba(255,215,0,0.3));
    transform: translateY(-8px); /* Lift sprite up from background */
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: champion-glow 3s ease-in-out infinite; /* Champion glow animation */
}

.waifu-leaderboard-rank.top2 .waifu-sprite,
.waifu-leaderboard-rank.top3 .waifu-sprite { 
    max-width: 300px; 
    max-height: 600px;
    z-index: 12;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3));
    transform: translateY(-4px);
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: podium-sway 5s ease-in-out infinite; /* Podium sway animation */
}

.waifu-leaderboard-rank.other .waifu-sprite { 
    max-width: 180px; /* Balanced size for visibility without overflow */
    max-height: 360px; /* Balanced size for visibility without overflow */
    z-index: 8;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
    animation: gentle-float 4s ease-in-out infinite; /* Gentle floating animation */
}
.waifu-leaderboard-rank .waifu-name {
font-size: 2.2em;
font-family: 'Bangers', sans-serif;
font-weight: bold;
color: #fff;
margin-right: 16px;
background: none !important;

}
.waifu-leaderboard-rank.top1 .waifu-name { font-size: 2.2em; }
.waifu-leaderboard-rank.top2 .waifu-name { font-size: 2em; }
.waifu-leaderboard-rank.top3 .waifu-name { font-size: 1.7em; }
.waifu-leaderboard-rank.other .waifu-name { font-size: 1.2em; }
/* Removed first duplicate pick-count definition */
/* Enhanced rank number styles with visual polish */
.waifu-leaderboard-rank .waifu-rank-num {
font-size: 4em;
font-family: 'Bangers', sans-serif;
font-weight: bold;
margin-right: 16px; /* Reduced from 32px to save space */
min-width: 1.2em; /* Reduced from 1.7em to save space */
max-width: 1.5em; /* Add max-width to prevent overflow */
text-align: right;
line-height: 1;
letter-spacing: 2px;
color: #fff;
text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255,255,255,0.3);
position: relative;
flex-shrink: 0; /* Prevent rank number from shrinking */
z-index: 2;
transition: all 0.3s ease;
}

/* Enhanced rank number styles */
.waifu-rank-num .rank-number {
display: inline-block;
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.waifu-rank-num.rank-champion .rank-number {
animation: rank-number-bounce 3s ease-in-out infinite;
text-shadow: 3px 3px 0px #000, 0 0 15px #ffd700, 0 0 25px #ffd700;
}

.waifu-rank-num.rank-silver .rank-number {
text-shadow: 3px 3px 0px #000, 0 0 12px #c0c0c0;
animation: rank-number-bounce 4s ease-in-out infinite;
}

.waifu-rank-num.rank-bronze .rank-number {
text-shadow: 3px 3px 0px #000, 0 0 10px #cd7f32;
animation: rank-number-bounce 5s ease-in-out infinite;
}

/* Count number animations */
.count-number {
display: inline-block;
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.count-number.animate-up {
animation: count-up 0.8s ease-out;
}

/* Enhanced sprite interactions */
.waifu-sprite {
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
cursor: pointer;
}

.waifu-sprite:hover {
animation: sprite-hover-bounce 0.6s ease-in-out;
}

/* Tier-specific sprite glows */
.waifu-leaderboard-rank.top1 .waifu-sprite {
animation: sprite-champion-glow 2.5s ease-in-out infinite;
}

.waifu-leaderboard-rank.top2 .waifu-sprite {
animation: sprite-silver-glow 3s ease-in-out infinite;
}

.waifu-leaderboard-rank.top3 .waifu-sprite {
animation: sprite-bronze-glow 3.5s ease-in-out infinite;
}

/* Character-specific sprite personalities */
.sprite-hangover:hover { animation: sprite-confident 2s ease-in-out infinite; }
.sprite-megumin:hover { animation: sprite-excited 1.5s ease-in-out infinite; }
.sprite-darkness:hover { animation: sprite-confident 2.5s ease-in-out infinite; }
.sprite-aqua:hover { animation: sprite-excited 1.8s ease-in-out infinite; }
.sprite-wiz:hover { animation: sprite-shy 3s ease-in-out infinite; }
.sprite-kazuma:hover { animation: sprite-confident 2.2s ease-in-out infinite; }
/* Removed second duplicate pick-count definition */
/* Removed duplicate sprite margin definition */
/* Removed duplicate waifu-name definitions */
/* Removed third duplicate pick-count definition */
.waifu-leaderboard-rank.animated-move {
z-index: 10;
box-shadow: 0 0 0 4px #fff7, 0 0 24px 8px #ffd70055;
animation: pop-move 0.7s cubic-bezier(.23,1.02,.32,1);
}
@keyframes pop-move {
0% { transform: scale(1); }
30% { transform: scale(1.08); }
60% { transform: scale(0.97); }
100% { transform: scale(1); }
}
/* Removed duplicate mobile media query - consolidated above */

/* Medium screen optimizations for waifu leaderboard */
@media (max-width: 1200px) and (min-width: 601px) {
.waifu-leaderboard-rank {
max-width: 90vw;
width: 100%;
box-sizing: border-box;
background-size: 100% 100% !important;
background-repeat: no-repeat !important;
}
.waifu-leaderboard-rank.top1 .waifu-sprite { max-width: 300px; max-height: 600px; }
.waifu-leaderboard-rank.top2 .waifu-sprite,
.waifu-leaderboard-rank.top3 .waifu-sprite { max-width: 200px; max-height: 400px; }
.waifu-leaderboard-rank.other .waifu-sprite { max-width: 140px; max-height: 280px; } /* Reduced to fit better in medium screens */
}

/* Small desktop screens */
@media (max-width: 900px) and (min-width: 601px) {
.waifu-leaderboard-rank.top1 .waifu-sprite { max-width: 250px; max-height: 500px; }
.waifu-leaderboard-rank.top2 .waifu-sprite,
.waifu-leaderboard-rank.top3 .waifu-sprite { max-width: 180px; max-height: 360px; }
.waifu-leaderboard-rank.other .waifu-sprite { max-width: 120px; max-height: 240px; } /* Reduced to fit better in smaller screens */
}



.waifu-bg-animated { position: relative; overflow: hidden; }
.waifu-bg-gold::before {
content: '';
position: absolute; inset: 0;
background: linear-gradient(120deg, #fffbe6 0%, #ffe066 50%, #fffbe6 100%);
opacity: 0.35;
animation: shineGold 2.5s linear infinite;
z-index: 0;
}
@keyframes shineGold {
0% { opacity: 0.25; }
50% { opacity: 0.55; }
100% { opacity: 0.25; }
}
.waifu-bg-silver::before {
content: '';
position: absolute; inset: 0;
background: linear-gradient(120deg, #f8f9fa 0%, #bfc9ca 50%, #f8f9fa 100%);
opacity: 0.28;
animation: shineSilver 2.7s linear infinite;
z-index: 0;
}
@keyframes shineSilver {
0% { opacity: 0.18; }
50% { opacity: 0.38; }
100% { opacity: 0.18; }
}
.waifu-bg-bronze::before {
content: '';
position: absolute; inset: 0;
background: linear-gradient(120deg, #fbeee6 0%, #cd7f32 50%, #fbeee6 100%);
opacity: 0.22;
animation: shineBronze 2.9s linear infinite;
z-index: 0;
}
@keyframes shineBronze {
0% { opacity: 0.12; }
50% { opacity: 0.32; }
100% { opacity: 0.12; }
}
.waifu-crown { display: inline-block; vertical-align: middle; margin-right: 10px; position: relative; top: -6px; }
.waifu-medal { display: inline-block; vertical-align: middle; margin-right: 8px; position: relative; top: -2px; }



/* Ensure leaderboard container allows overflow and animates height smoothly */
#waifu-war-tab-content > div[style*="flex-direction: column"] {
position: relative;
overflow: visible !important;
transition: height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.waifu-leaderboard-rank {
transition: transform 0.18s cubic-bezier(0.4,1.3,0.4,1), box-shadow 0.18s, z-index 0s;
cursor: pointer;
z-index: 1;
}
/* Safe hover effects that don't interfere with positioning during animations */
.waifu-leaderboard-rank:not(.flip-animating):hover {
transform: scale(1.02); /* Subtle scale that won't break positioning */
box-shadow: 0 12px 48px 0 rgba(0,0,0,0.35), 0 0 0 5px var(--waifu-glow, #ffe06666), inset 0 1px 0 rgba(255,255,255,0.2);
z-index: 15;
border-color: rgba(255,255,255,0.3);
filter: brightness(1.05);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced hover for top 3 positions with competitive effects */
.waifu-leaderboard-rank.top1:not(.flip-animating):hover {
transform: scale(1.03); /* Slightly more for champion but still safe */
box-shadow: 0 16px 64px rgba(255, 215, 0, 0.6), 0 8px 32px rgba(255, 215, 0, 0.4), 0 0 0 6px #FFD700;
filter: brightness(1.1) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* Fun click effects */
.waifu-leaderboard-rank.top1:not(.flip-animating):active {
transform: scale(0.98);
filter: brightness(1.2) drop-shadow(0 0 25px rgba(255, 215, 0, 0.7));
}

.waifu-leaderboard-rank.top2:not(.flip-animating):hover {
transform: scale(1.025);
box-shadow: 0 12px 48px rgba(192, 192, 192, 0.5), 0 6px 24px rgba(192, 192, 192, 0.3), 0 0 0 5px #C0C0C0;
filter: brightness(1.05) drop-shadow(0 0 15px rgba(192, 192, 192, 0.4));
}

.waifu-leaderboard-rank.top3:not(.flip-animating):hover {
transform: scale(1.02);
box-shadow: 0 10px 40px rgba(205, 127, 50, 0.4), 0 4px 16px rgba(205, 127, 50, 0.25), 0 0 0 4px #CD7F32;
filter: brightness(1.05) drop-shadow(0 0 12px rgba(205, 127, 50, 0.4));
}

/* Click effects for other ranks */
.waifu-leaderboard-rank:not(.flip-animating):active {
transform: scale(0.99);
}

/* Enhanced sprite hover effects with subtle movement */
.waifu-leaderboard-rank.top1:not(.flip-animating):hover .waifu-sprite {
transform: translateY(-2px) scale(1.02); /* Very subtle movement */
filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(255,215,0,0.5)) brightness(1.1);
}

.waifu-leaderboard-rank.top2:not(.flip-animating):hover .waifu-sprite,
.waifu-leaderboard-rank.top3:not(.flip-animating):hover .waifu-sprite {
transform: translateY(-1px) scale(1.01);
filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) brightness(1.05);
}

.waifu-leaderboard-rank.other:not(.flip-animating):hover .waifu-sprite {
transform: scale(1.01);
filter: drop-shadow(0 3px 8px rgba(0,0,0,0.3)) brightness(1.02);
}

/* Fun but safe click animation */
@keyframes gentle-bounce {
0% { transform: scale(1); }
50% { transform: scale(0.98); }
100% { transform: scale(1); }
}

.waifu-leaderboard-rank.clicked {
animation: gentle-bounce 0.2s ease-out;
}

.waifu-leaderboard-rank.top1 {
background: linear-gradient(90deg, #ffe066 80%, #fffbe6 100%) !important;
box-shadow: 0 0 24px 6px #ffe06688, 0 0 0 6px #ffe06644;
}
.waifu-leaderboard-rank.top2 {
background: linear-gradient(90deg, #c0c0c0 80%, #f8f8f8 100%) !important;
box-shadow: 0 0 20px 4px #c0c0c088, 0 0 0 5px #c0c0c044;
}
.waifu-leaderboard-rank.top3 {
background: linear-gradient(90deg, #cd7f32 80%, #fff2e0 100%) !important;
box-shadow: 0 0 18px 3px #cd7f3288, 0 0 0 4px #cd7f3244;
}
.waifu-leaderboard-rank.top1::after,
.waifu-leaderboard-rank.top2::after,
.waifu-leaderboard-rank.top3::after {
content: '';
position: absolute;
right: 24px; top: 10px;
width: 36px; height: 36px;
pointer-events: none;
background: url('data:image/svg+xml;utf8,<svg width="36" height="36" xmlns="http://www.w3.org/2000/svg"><g><circle cx="18" cy="18" r="16" fill="none"/><g><circle cx="18" cy="18" r="12" fill="white" fill-opacity="0.0"/><g><circle cx="18" cy="18" r="12" fill="url(%23sparkle)"/></g></g><defs><radialGradient id="sparkle" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="white" stop-opacity="0.9"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs></g></svg>') no-repeat center/cover;
opacity: 0.7;
animation: sparkle-spin 2.2s linear infinite;
}
@keyframes sparkle-spin {
0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
60% { opacity: 1; }
100% { transform: rotate(360deg) scale(1.08); opacity: 0.7; }
}
.waifu-leaderboard-rank.top1 .waifu-crown svg,
.waifu-leaderboard-rank.top2 .waifu-medal svg,
.waifu-leaderboard-rank.top3 .waifu-medal svg {
filter: drop-shadow(0 0 8px #fff7) drop-shadow(0 0 16px #fff5);
animation: shine-crown 2.5s cubic-bezier(0.4,1.3,0.4,1) infinite;
}
@keyframes shine-crown {
0% { filter: drop-shadow(0 0 8px #fff7) drop-shadow(0 0 16px #fff5); }
10% { filter: drop-shadow(0 0 24px #fff9) drop-shadow(0 0 32px #ffe066cc); }
20% { filter: drop-shadow(0 0 8px #fff7) drop-shadow(0 0 16px #fff5); }
100% { filter: drop-shadow(0 0 8px #fff7) drop-shadow(0 0 16px #fff5); }
}
/* Removed conflicting text-shadow rules that were causing blur */

.waifu-progress-bar-outer {
display: flex;
align-items: center;
gap: 12px; /* Reduced gap to save space */
margin: 12px 0;
flex: 1; /* Allow progress bar to take available space */
min-width: 0; /* Allow flexbox to shrink properly */
}
.waifu-pick-count {
font-size: 1.8em; /* Reduced from 2.1em to save space */
font-family: 'Bangers', sans-serif;
color: #fff;
text-shadow: 2px 2px 8px #000a, 0 0 8px #ffd700;
font-weight: bold;
letter-spacing: 1px;
min-width: 70px; /* Reduced from 80px to save space */
max-width: 120px; /* Add max-width to prevent overflow */
text-align: right;
flex-shrink: 0; /* Prevent pick count from shrinking too much */
z-index: 2;
}
.waifu-progress-bar {
flex: 1 1 auto;
background: #23272f;
border-radius: 16px;
height: 28px;
overflow: hidden;
box-shadow: 0 2px 8px #0003;
position: relative;
}
.waifu-progress {
height: 100%;
background: linear-gradient(90deg, var(--waifu-color, #FFD700) 0%, #fffbe6 60%, #fff2 100%);
border-radius: 16px 0 0 16px;
transition: width 0.7s cubic-bezier(.23,1.02,.32,1);
position: relative;
overflow: hidden;
}

/* Competitive progress bar effects */
.waifu-leaderboard-rank.top1 .waifu-progress {
background: linear-gradient(90deg, #FFD700 0%, #FFF8DC 40%, #FFD700 80%, #FFFACD 100%);
animation: golden-flow 2s ease-in-out infinite;
}

/* Competitive status indicators as DOM elements */
.waifu-status-indicator {
position: absolute;
top: 8px;
right: 8px;
font-size: 1.2em;
z-index: 25;
pointer-events: none;
}

.waifu-status-indicator.hot {
animation: fire-flicker 1.5s ease-in-out infinite;
}

.waifu-status-indicator.rising {
font-size: 1.1em;
animation: trend-up 2s ease-in-out infinite;
}

.waifu-status-indicator.falling {
font-size: 1.1em;
animation: trend-down 2s ease-in-out infinite;
}

/* Adjust positioning for top 3 positions */
.waifu-leaderboard-rank.top1 .waifu-status-indicator,
.waifu-leaderboard-rank.top2 .waifu-status-indicator,
.waifu-leaderboard-rank.top3 .waifu-status-indicator {
top: 12px;
right: 12px;
font-size: 1em;
}

/* Competitive status animations */
@keyframes fire-flicker {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.1) rotate(-2deg); opacity: 0.9; }
    50% { transform: scale(1.05) rotate(2deg); opacity: 1; }
    75% { transform: scale(1.08) rotate(-1deg); opacity: 0.95; }
}

@keyframes trend-up {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

@keyframes trend-down {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(3px) scale(1.1); }
}

.waifu-leaderboard-rank.top2 .waifu-progress {
background: linear-gradient(90deg, #C0C0C0 0%, #F8F8FF 40%, #C0C0C0 80%, #F5F5F5 100%);
animation: silver-flow 2.5s ease-in-out infinite;
}

.waifu-leaderboard-rank.top3 .waifu-progress {
background: linear-gradient(90deg, #CD7F32 0%, #FFEFD5 40%, #CD7F32 80%, #FFF8DC 100%);
animation: bronze-flow 3s ease-in-out infinite;
}

/* Progress bar flowing animations */
@keyframes golden-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes silver-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bronze-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced Progress Bar Animations */
@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.8; }
  25% { opacity: 1; }
  50% { opacity: 0.6; }
  75% { opacity: 1; }
}

@keyframes outer-glow-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Enhanced Visual Polish Animations */
@keyframes rank-number-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-2deg); }
  50% { transform: scale(1.15) rotate(2deg); }
  75% { transform: scale(1.05) rotate(-1deg); }
}

@keyframes count-up {
  0% { transform: scale(0.8) translateY(10px); opacity: 0; }
  50% { transform: scale(1.1) translateY(-5px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes sprite-hover-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

@keyframes sprite-champion-glow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); }
  50% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.4)); }
}

@keyframes sprite-silver-glow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(192, 192, 192, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(192, 192, 192, 0.8)); }
}

@keyframes sprite-bronze-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(205, 127, 50, 0.8)); }
}

/* Character-specific sprite animations */
@keyframes sprite-excited {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-1deg) scale(1.02); }
  50% { transform: rotate(1deg) scale(1.04); }
  75% { transform: rotate(-0.5deg) scale(1.02); }
}

@keyframes sprite-confident {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(3px) scale(1.03); }
}

@keyframes sprite-shy {
  0%, 100% { transform: scale(1) rotateY(0deg); }
  50% { transform: scale(0.98) rotateY(5deg); }
}

/* --- GALLERY IMAGE STYLES --- */
.gallery-img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 300px;
  max-height: 168.75px;
  margin-bottom: 8px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), filter 0.7s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(12px);
  opacity: 0.7;
  background: #222;
  transition: 
    filter 0.7s cubic-bezier(0.23, 1, 0.32, 1), 
    opacity 0.5s ease-in-out, 
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    brightness 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    saturate 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, filter;
}

.gallery-img img.loaded {
  filter: blur(0);
  opacity: 1;
}

.gallery-img:hover img {
  transform: scale(1.08);
  box-shadow: 0 8px 32px 0 rgba(99,97,160,0.18);
}

@media (min-width: 1401px) {
  .gallery-img {
    width: 50%;
    max-width: 600px;
    max-height: 337.5px;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .gallery-item[data-tab-type="upcoming"] .gallery-img,
  .gallery-item[data-tab-type="missing"] .gallery-img,
  .gallery-item[data-tab-type="planned"] .gallery-img,
  .gallery-item[data-tab-type="calendar"] .gallery-img {
    width: 50%;
    max-width: 600px;
    max-height: 337.5px;
    margin-right: 20px;
    margin-bottom: 10px;
  }
}
@media (max-width: 1400px) {
  .gallery-img {
    width: 100%;
    max-width: 300px;
    max-height: 168.75px;
    margin-bottom: 8px;
    border-radius: 8px;
  }
  .gallery-item[data-tab-type="upcoming"] .gallery-img,
  .gallery-item[data-tab-type="missing"] .gallery-img,
  .gallery-item[data-tab-type="planned"] .gallery-img,
  .gallery-item[data-tab-type="calendar"] .gallery-img {
    width: 100%;
    max-width: 300px;
    max-height: 168.75px;
    margin-bottom: 8px;
  }
}

/* --- GALLERY ITEM STYLES --- */
.gallery-item {
  width: 100%;
  max-width: 100%;
  margin-bottom: 15px;
  background-color: var(--card-bg);
  background-image: linear-gradient(135deg, rgba(166,156,210,0.08) 0%, rgba(99,97,160,0.10) 100%);
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 6px 24px rgba(99,97,160,0.15), 0 1.5px 8px rgba(0,0,0,0.13);
  border-radius: 16px;
  border: 1.2px solid rgba(166,156,210,0.13);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s cubic-bezier(0.4,0,0.2,1), background 0.28s cubic-bezier(0.4,0,0.2,1), height 0.3s ease-in-out;
  overflow: visible;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}
.gallery-item:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}
.gallery-item:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 12px 32px 0 rgba(99,97,160,0.18), 0 2px 12px 0 rgba(0,0,0,0.18);
  background-image: linear-gradient(135deg, rgba(166,156,210,0.16) 0%, rgba(99,97,160,0.18) 100%);
}


/* Fix for raise-pledge button text visibility on hover */
.gallery-links a.raise-pledge:hover {
color: #fff !important;
}

/* Spoiler Tab */
.spoiler-tab {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background-color: rgba(59, 58, 85, 0.3);
  color: var(--text-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(230, 230, 230, 0.1);
  user-select: none;
}

.spoiler-tab:hover {
  background-color: rgba(var(--accent-color-rgb), 0.2);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.spoiler-tab.active {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.spoiler-tab i {
  margin-right: 6px;
  font-size: 12px;
}

/* Spoiler Image Effect */
.gallery-item.spoiler-hidden .gallery-img img {
  filter: blur(15px) brightness(0.4) contrast(0.8) saturate(0.3);
  transition: filter 0.3s ease;
}

.gallery-item.spoiler-hidden .gallery-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(200, 220, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(5px);
  z-index: 2;
  pointer-events: none;
}

.gallery-item.spoiler-hidden .gallery-img::after {
  content: '🔒 Spoiler Hidden';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-item.spoiler-hidden:hover .gallery-img img {
  filter: blur(8px) brightness(0.6) contrast(0.9) saturate(0.5);
}

.gallery-item.spoiler-hidden:hover .gallery-img::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(200, 220, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 75%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

/* Mobile adjustments for spoiler tab */
@media (max-width: 1400px) {
  .spoiler-tab {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .spoiler-tab i {
    font-size: 10px;
    margin-right: 4px;
  }
}

@media (min-width: 1401px) {
  .gallery-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 20px;
    border: 1.5px solid rgba(166,156,210,0.18);
    box-shadow: 0 8px 32px rgba(99,97,160,0.18), 0 1.5px 8px rgba(0,0,0,0.18);
  }
}

/* Waifu Stats Window */
.waifu-stats-window {
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Stats toggle button styling */
.stats-toggle {
    transition: all 0.3s ease;
}

.stats-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stats-toggle:active {
    transform: translateY(0);
}

.stats-chevron {
    transition: transform 0.3s ease !important;
}

/* Responsive stats grid */
@media (max-width: 768px) {
    .waifu-stats-window div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .waifu-stats-window div[style*="justify-content: space-around"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .waifu-stats-window div[style*="justify-content: space-around"] > div {
        text-align: center !important;
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
    }
    
    .waifu-stats-window {
        max-width: 500px !important;
        padding: 12px !important;
    }
    
    .stat-card {
        padding: 10px !important;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .waifu-stats-window div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}
