/* ============================================
   KASUMI WIKI - CLEAN READABLE STYLE
   Reclaimed from Fandom's surveillance capitalism
   ============================================ */
html {
  scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1e3a 100%);
    color: #E0E0E0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    padding: 40px 20px;
}

/* Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(16, 24, 74, 0.5);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 183, 197, 0.1);
    backdrop-filter: blur(5px);
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #FFB7C5;
}

header h1 {
    color: #FFB7C5;
    font-size: 3em;
    margin-bottom: 10px;
}

header em {
    color: #C5C6C5;
    font-size: 0.9em;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 183, 197, 0.3);
    color: #C5C6C5;
    font-size: 0.9em;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: #FFB7C5;
    margin: 24px 0 16px 0;
    font-weight: 600;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid rgba(255, 183, 197, 0.3);
    padding-bottom: 8px;
}

h3 {
    font-size: 1.5em;
}

/* Paragraphs */
p {
    margin: 12px 0;
    color: #E0E0E0;
}

/* Links */
a {
    color: #FFB7C5;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff69b4;
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
    color: #E0E0E0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(to right, rgba(255, 183, 197, 0.3), rgba(255, 183, 197, 0.1));
    color: #FFB7C5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 183, 197, 0.3);
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 183, 197, 0.1);
}

tr:hover {
    background: rgba(255, 183, 197, 0.05);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Infoboxes */
.infobox, .portable-infobox, aside.portable-infobox {
    float: right;
    width: 340px;
    margin: 0 0 20px 20px;
    background: rgba(26, 30, 58, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 197, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 183, 197, 0.15);
}

.infobox img, .portable-infobox img {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

.infobox h2, .portable-infobox h2,
.pi-title {
    background: linear-gradient(to right, rgba(255, 183, 197, 0.8), rgba(255, 183, 197, 0.5));
    color: #0a0e27 !important;
    text-align: center;
    padding: 12px !important;
    margin: 0 !important;
    border: none !important;
    font-size: 1.5em !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.infobox th, .portable-infobox th,
.pi-data-label {
    background: rgba(255, 183, 197, 0.2);
    color: #FFB7C5;
    font-weight: 600;
    padding: 8px 12px;
}

.infobox td, .portable-infobox td,
.pi-data-value {
    padding: 8px 12px;
    color: #E0E0E0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #FFB7C5;
    padding-left: 20px;
    margin: 20px 0;
    color: #C5C6C5;
    font-style: italic;
}

/* Code blocks */
code {
    background: rgba(26, 30, 58, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    color: #88DD88;
    font-family: 'Courier New', monospace;
}

pre {
    background: rgba(26, 30, 58, 0.8);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Content sections */
.mw-parser-output > div {
    margin: 20px 0;
}

/* Image captions and thumbnails */
figure.thumb {
    margin: 0;
    text-align: center;
}

.outfit-gallery figure.thumb {
    display: inline-block;
    vertical-align: top;
}

figure.thumb img {
    display: block;
    margin: 0 auto 8px auto;
}

.thumbcaption {
    display: block;
    font-style: italic;
    color: #C5C6C5;
    font-size: 0.85em;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 183, 197, 0.2);
    padding-top: 8px;
}

.thumbcaption .caption {
    margin: 0;
    padding: 0;
    font-style: italic;
    color: #C5C6C5;
    font-size: 0.85em;
}

/* Gallery styling */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    main {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .infobox, .portable-infobox {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
    
    h2 {
        font-size: 1.5em;
    }
}

/* Section headers within infobox groups */
.pi-section-header {
    background: rgba(255, 183, 197, 0.15) !important;
    color: #FFB7C5 !important;
    font-size: 1em !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 183, 197, 0.3);
}

.pi-group {
    border-top: 1px solid rgba(255, 183, 197, 0.1);
    margin: 0;
    padding: 0;
}

/* Image Gallery Tabs */
.pi-image-collection.wds-tabber {
    margin: 0;
    padding: 0;
}

.wds-tabs__wrapper {
    overflow-x: visible;
    overflow-y: hidden;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 183, 197, 0.3);
    display: flex;
    justify-content: center;
    position: relative;
}

.wds-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    justify-content: center;
    max-width: 100%;
}

.wds-tabs__tab {
    display: inline-block;
    padding: 8px 16px;
    cursor: pointer;
    background: rgba(26, 30, 58, 0.6);
    border: 1px solid rgba(255, 183, 197, 0.2);
    border-radius: 4px 4px 0 0;
    color: #C5C6C5;
    transition: all 0.2s ease;
    user-select: none;
}

.wds-tabs__tab:hover {
    background: rgba(255, 183, 197, 0.1);
    color: #FFB7C5;
    border-color: rgba(255, 183, 197, 0.5);
}

.wds-tabs__tab.wds-is-current {
    background: rgba(255, 183, 197, 0.2);
    color: #FFB7C5;
    border-color: #FFB7C5;
    font-weight: 600;
}

.wds-tabs__tab-label {
    font-size: 0.85em;
}

/* Tab content */
.wds-tab__content {
    display: none;
}

.wds-tab__content.wds-is-current {
    display: block;
}

.wds-tabs__arrow-left,
.wds-tabs__arrow-right {
    display: none; /* Hide arrows for now */
}

/* Portable Infobox Data Items - Clean rows */
.pi-data {
    display: block;
    border-bottom: 1px solid rgba(255, 183, 197, 0.1);
    padding: 0;
    margin: 0;
}

.pi-data-label {
    display: inline-block;
    width: 30%;
    background: transparent;
    padding: 8px 8px;
    font-weight: 600;
    color: #FFB7C5;
    vertical-align: middle;
    font-size: 0.85em;
    word-break: break-word;
}

.pi-data-value {
    display: inline-block;
    width: 68%;
    padding: 8px 8px;
    color: #E0E0E0;
    margin-top: 6px;
    vertical-align: middle;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Utility Classes */
.clear {
    clear: both;
}

.text-center {
    text-align: center;
}

/* Hide edit sections and Fandom remnants */
.mw-editsection {
    display: none !important;
}

.fandom-ad, .wikia-ad, [class*="ad-"], [class*="advertisement"] {
    display: none !important;
}
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.video-item h3 {
    margin-top: 12px;
    margin-bottom: 6px;
}

.video-item p {
    color: #C5C6C5;
    font-size: 0.9em;
}
.kasumi-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.kasumi-gallery figure {
  margin: 0;
}
.outfit-gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.outfit-gallery figure {
  margin: 0;
}
.quotes-tabber {
  margin: 20px 0;
}

.quotes-list {
  padding: 20px 0;
}

.quote-category {
  margin: 20px 0;
}

.quote-category h4 {
  color: #FFB7C5;
  margin: 15px 0 10px 0;
  font-size: 1.1em;
}

.quote-item {
  background: rgba(26, 30, 58, 0.6);
  padding: 12px 15px;
  margin: 8px 0;
  border-left: 3px solid #FFB7C5;
  border-radius: 4px;
}

.quote-text {
  color: #E0E0E0;
  font-style: italic;
  margin: 0 0 6px 0;
  font-size: 0.95em;
}

.quote-context {
  color: #C5C6C5;
  font-size: 0.85em;
  margin: 0;
}
.quote-language-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.toggle-btn {
  background: rgba(255, 183, 197, 0.2);
  border: 1px solid #FFB7C5;
  color: #FFB7C5;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9em;
}

.toggle-btn:hover {
  background: rgba(255, 183, 197, 0.3);
}

.toggle-btn.toggle-active {
  background: #FFB7C5;
  color: #0a0e27;
}

.quote-languages {
  display: none;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 183, 197, 0.2);
}

.quote-japanese {
  color: #FFB7C5;
  font-weight: 600;
  margin: 0 0 4px 0;
  font-size: 0.95em;
}

.quote-romaji {
  color: #C5C6C5;
  margin: 0 0 8px 0;
  font-size: 0.85em;
  font-style: italic;
}

body.show-all-languages .quote-languages {
  display: block;
}

.game-list ul {
  column-count: 3;
  column-gap: 40px;
  padding: 0;
  margin: 0;
}

.game-list li {
  list-style: none;
  margin: 12px 0;
  padding-left: 20px;
  color: #E0E0E0;
  break-inside: avoid;
}

.game-list li i {
  color: #FFB7C5;
  font-style: italic;
}

.game-list li:before {
  content: "▸ ";
  color: #FFB7C5;
  margin-right: 8px;
  margin-left: -20px;
}
/* Wiki Background - Full Page */
.wiki-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.wiki-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.15;
    filter: grayscale(100%) brightness(1.1);
    transition: opacity 0.4s ease;
    display: block;
}

.wiki-background:hover img {
    opacity: 0.25;
    filter: grayscale(80%) brightness(1.15);
}

/* Center content block - no transparency issues */
main {
    max-width: 948px;
    margin: 0 auto;
    background: rgba(16, 24, 74, 0.6);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .wiki-background {
        display: none;
    }
    
    body {
        padding: 0;
    }
}
.reference, .cite-bracket {
  font-size: 0.8em !important;
  vertical-align: super !important;
}

.reference a {
  text-decoration: none !important;
  color: #FFB7C5 !important;
}
.game-list ul {
  margin: 0;
  padding: 0;
}

.game-list li {
  margin-top: 0;
  margin-bottom: 8px; 
}