/* Game guide (index.php?m=guides): menu on the left, one topic at a time on the right (tabs). */
.se-page-guides { --sg-gold: #d9bc84; --sg-gold-2: #f3dba8; --sg-card: #16161c; --sg-line: #ffffff12; }
.sg-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--sg-gold); }
.sg-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; color: var(--sg-gold); }
.sg-icon svg { width: 20px; height: 20px; }

.sg-hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 44px; border-bottom: 1px solid #d9bc8422; }
.sg-hero-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d0d11 35%, #0d0d11cc 60%, #0d0d1155), url('../img/south-era-hero-v1.webp') right center / cover no-repeat; }
.sg-hero h1 { margin: 12px 0 12px; font: 400 clamp(30px, 3.8vw, 48px)/1.15 Cinzel, Georgia, serif; color: #f6ead3; }
.sg-hero h1 span { color: var(--sg-gold-2); }
.sg-hero p { max-width: 56ch; margin: 0; font-size: 17px; line-height: 1.7; color: #c9c2b6; }

.sg-page { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; padding: 44px 0 96px; scroll-margin-top: 90px; }
.sg-index { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; display: grid; gap: 4px; padding: 12px; background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: 12px; }
.sg-group summary { display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; list-style: none; border-radius: 8px; font-size: 16px; font-weight: 700; color: #f0e5d0; }
.sg-group summary::-webkit-details-marker { display: none; }
.sg-group summary::after { content: '▾'; margin-left: auto; font-size: 12px; color: #8f877a; transition: transform .15s; }
.sg-group:not([open]) summary::after { transform: rotate(-90deg); }
.sg-group summary:hover { background: #ffffff07; }
.sg-group ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 20px; }
.sg-group li a { display: block; padding: 8px 12px; border-left: 2px solid #ffffff10; font-size: 15px; color: #aaa398; text-decoration: none; }
.sg-group li a:hover { color: #f1e6d2; border-left-color: #d9bc8466; }
.sg-group li a.is-active { color: var(--sg-gold-2); border-left-color: var(--sg-gold); background: linear-gradient(90deg, #d9bc841c, transparent); font-weight: 600; }

.sg-content { min-width: 0; }
.is-tabs .sg-panel[hidden] { display: none !important; }
.sg-panel { padding: 34px; background: linear-gradient(180deg, #1b1b22, var(--sg-card)); border: 1px solid var(--sg-line); border-radius: 14px; }
.sg-panel + .sg-panel { margin-top: 28px; }
.is-tabs .sg-panel + .sg-panel { margin-top: 0; }

.sg-topic-head { margin-bottom: 26px; }
.sg-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #d9bc841a; border: 1px solid #d9bc8440; color: var(--sg-gold); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.sg-topic-head h2 { margin: 14px 0 10px; font: 400 clamp(28px, 3vw, 40px)/1.15 Cinzel, Georgia, serif; color: #f6ead3; }
.sg-topic-head p { margin: 0; max-width: 66ch; font-size: 18px; line-height: 1.7; color: #c6bfb3; }

/* Video (or image) next to the info card */
.sg-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sg-top.is-wide { grid-template-columns: 1fr; }
.sg-media { aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid #d9bc8430; box-shadow: 0 18px 40px #0007; align-self: start; }
.sg-media video, .sg-media iframe, .sg-media img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.sg-media video { object-fit: contain; }
.sg-media-art { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 24px; background: linear-gradient(0deg, #0c0c10e6 5%, #0c0c1000 60%), var(--sg-art) center / cover no-repeat; }
.sg-media-art span { font: 400 26px Cinzel, Georgia, serif; color: #f6ead3; text-shadow: 0 2px 12px #000; }
.sg-info { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px; background: #121217; border: 1px solid #d9bc8426; border-radius: 14px; }
.sg-info h3 { margin: 0 0 4px; font: 400 22px/1.3 Cinzel, Georgia, serif; color: #f3e5ca; }
.sg-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-chips li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #1c1b21; border: 1px solid #ffffff10; border-radius: 10px; }
.sg-chip-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: #d9bc841a; color: var(--sg-gold-2); }
.sg-chip-icon svg { width: 20px; height: 20px; }
.sg-chips strong { display: block; font-size: 16px; color: #f2e8d6; line-height: 1.25; }
.sg-chips small { display: block; font-size: 13px; color: #9f988d; line-height: 1.35; }
.sg-note { margin: 0; font-size: 15px; line-height: 1.6; color: #bdb6aa; }

/* Sections with a pill and a centered title */
.sg-section { margin-top: 52px; }
.sg-section-head { margin-bottom: 22px; text-align: center; }
.sg-pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #d9bc8418; border: 1px solid #d9bc844d; color: var(--sg-gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.sg-section-head h3 { margin: 12px 0 0; font: 400 clamp(24px, 2.4vw, 30px)/1.2 Cinzel, Georgia, serif; color: var(--sg-gold-2); }

.sg-step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.sg-step-cards li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-content: start; padding: 18px; background: #18181e; border: 1px solid #ffffff12; border-radius: 12px; }
.sg-step-cards li:last-child { border-color: #d9bc8455; background: linear-gradient(135deg, #251f16, #18181e); }
.sg-step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dfab, #c39b5b); color: #1c160d; font: 700 15px Cinzel, Georgia, serif; }
.sg-step-cards strong { align-self: center; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #e9dcc3; }
.sg-step-cards p { grid-column: 1 / -1; margin: 0; font-size: 15px; line-height: 1.6; color: #aaa398; }

.sg-reward-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.sg-reward-cards li { display: grid; justify-items: center; gap: 8px; padding: 24px 18px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #d9bc8414, transparent 70%), #17171d; border: 1px solid #ffffff12; border-radius: 14px; }
.sg-reward-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #3a2e1b, #1d1a17); border: 1px solid #d9bc8455; color: var(--sg-gold-2); box-shadow: 0 8px 24px #c39b5b22; }
.sg-reward-icon svg { width: 28px; height: 28px; }
.sg-reward-cards strong { font-size: 17px; color: #f2e7d4; }
.sg-reward-cards p { margin: 0; font-size: 14px; line-height: 1.6; color: #a7a096; }

.sg-table { display: grid; gap: 8px; }
.sg-row { display: grid; gap: 12px; align-items: center; padding: 14px 18px; background: #17171d; border: 1px solid #ffffff10; border-radius: 10px; font-size: 15px; color: #c9c1b4; }
.sg-row-head { background: none; border: 0; padding: 0 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8f877a; }
.sg-row .is-first { font-weight: 700; color: #f2e7d4; }
.sg-row span:last-child:not(:first-child) { text-align: right; color: var(--sg-gold-2); font-weight: 600; }

.sg-entry { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sg-entry li { display: flex; gap: 16px; align-items: center; padding: 18px; background: #17171d; border: 1px solid #d9bc8433; border-radius: 12px; }
.sg-entry strong { font-size: 17px; color: #f2e7d4; }
.sg-entry p { margin: 4px 0 0; font-size: 15px; color: #aaa398; }

.sg-tips { margin-top: 40px; padding: 16px 20px; border-left: 3px solid var(--sg-gold); background: #d9bc840f; border-radius: 0 10px 10px 0; }
.sg-tips strong { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sg-gold); }
.sg-tips p { margin: 4px 0 0; font-size: 16px; line-height: 1.65; color: #cfc6b6; }

.sg-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.sg-pager a { display: grid; gap: 4px; padding: 16px 18px; background: var(--sg-card); border: 1px solid var(--sg-line); border-radius: 10px; text-decoration: none; }
.sg-pager a[hidden] { visibility: hidden; display: grid; }
.sg-pager a:hover { border-color: #d9bc8466; }
.sg-pager a.is-next { text-align: right; }
.sg-pager small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8a8173; }
.sg-pager strong { font-size: 16px; color: #ece2d0; }
.sg-pager [data-pager-prev] strong::before { content: '← '; color: var(--sg-gold); }
.sg-pager [data-pager-next] strong::after { content: ' →'; color: var(--sg-gold); }

/* Eras and FAQ reused as panels */
.sg-panel .se-era, .sg-panel .se-faq { padding: 0 !important; border: 0 !important; }
.sg-panel .se-era > .wrap, .sg-panel .se-faq > .wrap { width: auto; }

@media (max-width: 1100px) {
  .sg-page { grid-template-columns: 1fr; gap: 20px; }
  .sg-index { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
  .sg-top { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .sg-hero { padding: 44px 0 30px; }
  .sg-hero p, .sg-topic-head p { font-size: 16px; }
  .sg-index { grid-template-columns: 1fr; }
  .sg-panel { padding: 22px 16px; }
  .sg-chips { grid-template-columns: 1fr; }
  .sg-row { padding: 12px 14px; font-size: 14px; }
  .sg-pager { grid-template-columns: 1fr; }
  .sg-pager a.is-next { text-align: left; }
}

/* Item slots: a small framed square per item (like the inventory), the picture always centred inside */
.sg-item-art { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 6px; margin: 0 0 4px; padding: 0; background: none; }
.sg-item { --slot: 44px; position: relative; flex: none; display: grid; place-items: center; box-sizing: border-box; width: var(--slot); height: var(--slot); padding: 5px; border-radius: 8px; background: linear-gradient(180deg, #2b2720, #15141a); border: 1px solid #d9bc844d; box-shadow: inset 0 1px 0 #ffffff12, 0 2px 6px #0007; outline: none; cursor: help; }
.sg-item:hover, .sg-item:focus { border-color: #d9bc84; background: linear-gradient(180deg, #3a3326, #1b1a20); }
.sg-item img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px #000c); }
.sg-item-art:has(.sg-item:nth-child(5)) { gap: 4px; }
.sg-item-art:has(.sg-item:nth-child(5)) .sg-item { --slot: 38px; padding: 4px; }
.sg-entry .sg-item-art { flex: none; margin: 0; }
.sg-entry .sg-item { --slot: 58px; padding: 7px; }
.sg-item-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 20; display: none; width: max-content; max-width: 260px; padding: 9px 12px; transform: translateX(-50%); text-align: center; background: #0b0b0ef2; border: 1px solid #d9bc8466; border-radius: 6px; box-shadow: 0 10px 30px #000c; pointer-events: none; }
.sg-item-tip strong { display: block; margin-bottom: 3px; font-size: 14px; color: #f3dba8; }
.sg-item-tip span { display: block; font-size: 13px; line-height: 1.5; color: #d6d0c4; }
.sg-item:hover .sg-item-tip, .sg-item:focus .sg-item-tip, .sg-item:focus-within .sg-item-tip { display: block; }
.sg-game-desc { margin: 6px 0 0 !important; font-size: 13px !important; font-style: italic; color: #b9a983 !important; }
.sg-game-desc::before { content: 'En el juego: '; font-style: normal; font-weight: 700; color: var(--sg-gold); }
.sg-reward-cards li, .sg-entry li { overflow: visible; }
/* Same picture band in every reward card, so titles and texts line up across cards */
.sg-reward-cards li { grid-template-rows: 56px auto 1fr; align-content: start; row-gap: 10px; }
.sg-reward-cards .sg-item-art, .sg-reward-cards .sg-reward-icon { align-self: center; justify-self: center; margin: 0; }
.sg-reward-cards .sg-item-art { height: 56px; }
.sg-reward-cards .sg-reward-icon { width: 50px; height: 50px; border-radius: 12px; }
.sg-reward-cards .sg-reward-icon svg { width: 26px; height: 26px; }
.sg-reward-cards p { align-self: start; }

/* Game tooltip colours (0 white, 1 blue, 2 red, 3 yellow, 4 green, 5 white-red, 6 gray, 7 white-blue, 8 white-yellow, 9 green-blue, 10-11 gray) */
.sg-c0 { color: #ecebe8 !important; } .sg-c1 { color: #8fb7ff !important; } .sg-c2 { color: #ff7b72 !important; } .sg-c3 { color: #f5cf6b !important; }
.sg-c4 { color: #8ee08e !important; } .sg-c5 { color: #ffb6b0 !important; } .sg-c6 { color: #a9a9a9 !important; } .sg-c7 { color: #cfe0ff !important; }
.sg-c8 { color: #fff0b8 !important; } .sg-c9 { color: #7fe2d2 !important; } .sg-c10, .sg-c11 { color: #8d8d8d !important; }
.sg-game-desc { display: grid; gap: 2px; margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: #0c0c10cc; border: 1px solid #ffffff10; text-align: center; font-style: normal; }
.sg-entry .sg-game-desc { text-align: left; }
.sg-game-desc::before { content: none; }
.sg-game-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8f877a; }
.sg-game-desc p { margin: 0 !important; font-size: 13px !important; line-height: 1.5; }
.sg-item-none { width: 60%; height: 60%; color: #8f877a; }

/* The item tooltip opens below the slot (never under the top bar) and sits above everything */
.sg-item-tip { top: calc(100% + 8px); bottom: auto; z-index: 300; max-width: 300px; text-align: left; }
.sg-item-tip::before { content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: #0b0b0e; border-left: 1px solid #d9bc8466; border-top: 1px solid #d9bc8466; }
.sg-item-tip strong { text-align: center; }
.sg-item:hover, .sg-item:focus, .sg-item:focus-within { z-index: 300; }
.sg-reward-cards li:hover, .sg-reward-cards li:focus-within, .sg-entry li:hover, .sg-entry li:focus-within { position: relative; z-index: 250; }
.sg-panel, .sg-section, .sg-content { overflow: visible; }
/* Lines centred, as the game tooltip draws them */
.sg-item-tip { text-align: center; }

/* Wide items (wings): a wider slot filled by the picture */
.sg-item.is-wide { width: 76px; padding: 4px 5px; }
.sg-item-art:has(.sg-item:nth-child(5)) .sg-item.is-wide { width: 60px; }
.sg-entry .sg-item.is-wide { width: 96px; }
/* Wings bigger inside the same picture band (56 px) of the card */
.sg-item.is-wide { width: 100px; height: 54px; padding: 3px 4px; }
.sg-item-art:has(.sg-item:nth-child(5)) .sg-item.is-wide { width: 72px; height: 40px; }
.sg-entry .sg-item.is-wide { width: 110px; height: 58px; }
/* Capes and cloaks: the picture fills a bigger square slot inside the same 56 px band. */
.sg-item.is-big { --slot: 56px; padding: 2px; }
.sg-item-art:has(.sg-item:nth-child(5)) .sg-item.is-big { --slot: 44px; padding: 2px; }
.sg-entry .sg-item.is-big { --slot: 66px; padding: 3px; }
/* Guardarropa skins: full body in a tall slot; their cards get a taller picture band. */
.sg-item.is-tall { width: 62px; height: 104px; padding: 4px; }
.sg-reward-cards li:has(.sg-item.is-tall) { grid-template-rows: 104px auto 1fr; }
.sg-reward-cards li:has(.sg-item.is-tall) .sg-item-art { height: 104px; }
.sg-entry .sg-item.is-tall { width: 66px; height: 110px; }
/* Bigger pictures for wings, capes and skins (easier to see); the card band grows with them. */
.sg-item.is-big { --slot: 78px; padding: 3px; }
.sg-item-art:has(.sg-item:nth-child(5)) .sg-item.is-big { --slot: 60px; }
.sg-entry .sg-item.is-big { --slot: 84px; }
.sg-item.is-wide { width: 140px; height: 76px; padding: 3px 5px; }
.sg-item-art:has(.sg-item:nth-child(5)) .sg-item.is-wide { width: 100px; height: 56px; }
.sg-entry .sg-item.is-wide { width: 150px; height: 80px; }
.sg-item.is-tall { width: 96px; height: 160px; padding: 5px; }
.sg-entry .sg-item.is-tall { width: 96px; height: 160px; }
/* The whole row of cards uses the same band, so the titles stay aligned. */
.sg-reward-cards:has(.sg-item.is-big, .sg-item.is-wide) li { grid-template-rows: 80px auto 1fr; }
.sg-reward-cards:has(.sg-item.is-big, .sg-item.is-wide) .sg-item-art, .sg-reward-cards:has(.sg-item.is-big, .sg-item.is-wide) .sg-reward-icon { align-self: center; }
.sg-reward-cards:has(.sg-item.is-big, .sg-item.is-wide) .sg-item-art { height: 80px; }
.sg-reward-cards:has(.sg-item.is-tall) li { grid-template-rows: 160px auto 1fr; }
.sg-reward-cards:has(.sg-item.is-tall) .sg-item-art { height: 160px; }
/* Jefes y monstruos (Invasiones): gallery + list of every invasion monster with its model, drop and hours. */
.sm { padding: 22px; border: 1px solid var(--sg-line); border-radius: 14px; background: linear-gradient(180deg, #1d1a15, #141318); }
.sm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 16px; }
.sm-head h3 { margin: 0; font-family: 'Cinzel', serif; font-size: 24px; color: var(--sg-gold-2); }
.sm-views { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #0d0d10; border: 1px solid var(--sg-line); }
.sm-views button, .sm-filter button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; color: #cfc7b8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sm-views button { padding: 7px 16px; border-radius: 999px; }
.sm-views button svg { width: 16px; height: 16px; }
.sm-views button.is-active { background: linear-gradient(180deg, #f3c97a, #d69a3c); color: #24170a; }
.sm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: #0f0f13b3; border: 1px solid var(--sg-line); }
.sm-filter strong { margin-right: 10px; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: #efe6d4; }
.sm-filter span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8f877a; }
.sm-filter button { padding: 6px 12px; border-radius: 8px; border-color: var(--sg-line); background: #1a1a20; font-size: 13px; }
.sm-filter button.is-active { border-color: var(--sg-gold); color: var(--sg-gold-2); background: #d9bc841a; }
.sm-group { margin-bottom: 18px; }
.sm-group > summary { display: flex; align-items: center; gap: 10px; padding: 0 0 10px; margin-bottom: 12px; border-bottom: 1px solid var(--sg-line); cursor: pointer; list-style: none; }
.sm-group > summary::-webkit-details-marker { display: none; }
.sm-group > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid #8f877a; border-bottom: 2px solid #8f877a; transform: rotate(-45deg); transition: transform .15s; }
.sm-group[open] > summary::before { transform: rotate(45deg); }
.sm-tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; background: #8b5cf626; color: #c4a8ff; }
.sm-tag.is-gold { background: #d9a03c26; color: #f3c97a; }
.sm-count { color: #8f877a; font-size: 14px; }
.sm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sm-tile { position: relative; aspect-ratio: 4 / 5; padding: 6px; border-radius: 8px; border: 1px solid #ffffff14; border-bottom: 2px solid #8b5cf680; background: radial-gradient(circle at 50% 45%, #1f1d26, #050506 75%); cursor: pointer; overflow: hidden; }
.sm-tile.is-gold { border-bottom-color: #d9a03ccc; }
.sm-tile img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px #000c); transition: transform .2s; }
.sm-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font-size: 12px; font-weight: 700; color: #fff; text-align: center; background: linear-gradient(0deg, #000d, #0000); opacity: 0; transition: opacity .15s; }
.sm-tile:hover img, .sm-tile.is-active img { transform: scale(1.06); }
.sm-tile:hover span, .sm-tile:focus-visible span, .sm-tile.is-active span { opacity: 1; }
.sm-tile.is-active { border-color: var(--sg-gold); box-shadow: 0 0 0 1px var(--sg-gold), 0 0 18px #d9bc8440; }
.sm-detail { position: relative; display: grid; grid-template-columns: 1fr minmax(220px, 300px) 1fr; gap: 26px; align-items: center; margin-top: 14px; padding: 26px; border-radius: 14px; border: 1px solid #d9bc8433; background: linear-gradient(180deg, #2a2418, #17151a); }
.sm-detail[hidden] { display: none; }
.sm-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #0008; color: #ddd; cursor: pointer; }
.sm-close svg { width: 16px; height: 16px; }
.sm-detail-info h4 { margin: 0 0 12px; padding-top: 10px; border-top: 2px solid #d9bc8466; width: fit-content; font-size: 30px; line-height: 1.1; text-transform: uppercase; color: #fff; }
.sm-detail-info .sm-tag { margin-bottom: 12px; }
.sm-fact { display: grid; gap: 3px; margin-top: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--sg-line); border-left: 3px solid #d9bc8466; background: #0d0d1080; }
.sm-fact span, .sm-row > span, .sm-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a39b8d; }
.sm-fact svg, .sm-row > span svg, .sm-label svg { width: 15px; height: 15px; flex: none; }
.sm-fact strong { font-size: 15px; color: #f3ede2; }
.sm-detail-art, .sm-card-art { aspect-ratio: 1; border-radius: 12px; border: 1px solid #ffffff1a; background: radial-gradient(circle at 50% 42%, #24212c, #050506 72%); display: grid; place-items: center; padding: 10px; }
.sm-detail-art.is-gold, .sm-card-art.is-gold { background: radial-gradient(circle at 50% 42%, #3a2c14, #050506 72%); }
.sm-detail-art img, .sm-card-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px #000d); }
.sm-detail-drops { display: grid; gap: 8px; align-content: center; }
.sm-label { margin-top: 6px; }
.sm-drop-roll { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sm-drop-option { display: inline-flex; align-items: center; gap: 5px; }
.sm-drop-option .sg-item { --slot: 40px; padding: 4px; }
.sm-drop-option b { font-size: 13px; color: #f3ede2; }
.sm-drop-option em { font-style: normal; font-size: 13px; font-weight: 600; color: #f3ede2; }
.sm-drop-or { color: #6f685d; font-weight: 700; }
.sm-drop-chance { padding: 2px 7px; border-radius: 6px; background: #d9bc841a; color: var(--sg-gold-2); font-size: 12px; font-weight: 700; }
b.is-hot { color: #f59e2b !important; }
.sm-list-group { margin-bottom: 22px; }
.sm-list-group[hidden], .sm-group[hidden] { display: none; }
.sm-list-group h4 { margin: 0 0 12px; font-size: 22px; color: var(--sg-gold-2); }
.sm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.sm-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid #ffffff14; background: linear-gradient(180deg, #2a2418cc, #18161bcc); }
.sm-card-art { aspect-ratio: 3 / 4; align-self: start; }
.sm-card-body h5 { margin: 4px 0 8px; font-size: 18px; color: #fff; }
.sm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--sg-line); }
.sm-row:last-child { border-bottom: 0; }
.sm-row > strong { font-size: 14px; color: #f3ede2; text-align: right; }
.sm-row.is-drops { flex-direction: column; align-items: stretch; gap: 8px; }
.sm-row.is-drops > div { display: grid; gap: 6px; }
.sm-row.is-drops .sm-drop-roll { gap: 4px 6px; }
.sm-row .sm-drop-option .sg-item { --slot: 32px; padding: 3px; }
.sm-row .sm-drop-option b, .sm-row .sm-drop-option em { font-size: 12px; }
@media (max-width: 900px) {
  .sm-detail { grid-template-columns: 1fr; }
  .sm-detail-art { max-width: 260px; justify-self: center; }
  .sm-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sm { padding: 14px; }
  .sm-card { grid-template-columns: 96px 1fr; }
  .sm-row { flex-wrap: wrap; }
}
/* Jefes y monstruos, closer to the reference spacing: smaller gallery tiles, roomier card, plain drop pictures. */
.sm-tiles { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.sm-tile { aspect-ratio: 4 / 5; padding: 4px; }
.sm-detail { grid-template-columns: minmax(190px, 1fr) minmax(230px, 300px) minmax(190px, 1fr); gap: 34px; padding: 34px 40px; }
.sm-detail-info h4 { font-size: 34px; margin-bottom: 18px; }
.sm-fact { margin-top: 10px; padding: 10px 14px; }
.sm-detail-art { aspect-ratio: 9 / 10; padding: 14px; }
.sm-detail-drops { gap: 10px; }
.sm-drop-roll { gap: 6px 8px; }
.sm-drop-option .sg-item { --slot: 46px; padding: 4px; }
.sm-row .sm-drop-option .sg-item { --slot: 36px; }
.sm-drop-or { font-size: 18px; }
.sm-drop-count { width: 100%; font-size: 13px; font-weight: 700; color: #f3ede2; }
@media (max-width: 900px) { .sm-detail { grid-template-columns: 1fr; padding: 24px; } }
/* Golden monsters grouped by the box they drop (list view), like the reference: box title, cards of three. */
.sm-gold-hours { margin: -4px 0 18px; font-size: 15px; font-weight: 700; color: #f0b54a; }
.sm-tier { margin-bottom: 26px; }
.sm-tier-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 700; color: #f0b54a; }
.sm-tier-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #f0b54a80, transparent); }
.sm-tier-head .sg-item { --slot: 36px; padding: 2px; background: none; border: 0; box-shadow: none; }
.sm-tier-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sm-gcard { padding: 12px 12px 6px; border-radius: 14px; border: 1px solid #ffffff14; background: linear-gradient(180deg, #2c2518, #1a171b); }
.sm-gcard header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sm-gcard h6 { margin: 0; font-size: 18px; font-weight: 700; color: #f0b54a; }
.sm-gcard header .sg-item { --slot: 34px; padding: 2px; flex: none; background: none; border: 0; box-shadow: none; }
.sm-gcard-art { aspect-ratio: 5 / 3; margin-bottom: 8px; border-radius: 10px; border: 1px solid #ffffff1a; background: #000; display: grid; place-items: center; overflow: hidden; }
.sm-gcard-art { position: relative; }
.sm-gcard-art img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; filter: drop-shadow(0 6px 12px #000d); }
.sm-gcard .sm-row > strong { text-align: right; }
/* Wider guide like the reference (user 2026-10-31): more width, the menu further left and bigger, elite cards bigger. */
.wrap.sg-page { width: min(1480px, calc(100% - 48px)); grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
.sg-index { padding: 14px 10px; gap: 2px; }
.sg-group summary { padding: 12px 10px; font-size: 17px; }
.sg-group summary .sg-icon { width: 28px; height: 28px; }
.sg-group li a { padding: 9px 12px; font-size: 15.5px; }
.sm-cards { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 16px; }
.sm-card { grid-template-columns: 170px 1fr; gap: 16px; padding: 14px; }
.sm-card-art { aspect-ratio: 4 / 5; }
.sm-card-body h5 { font-size: 20px; }
.sm-row .sm-drop-option .sg-item { --slot: 38px; }
.sm-tier-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sm-gcard h6 { font-size: 20px; }
@media (max-width: 1100px) { .wrap.sg-page { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sm-cards { grid-template-columns: 1fr; } .sm-card { grid-template-columns: 110px 1fr; } }
/* A bit bigger, like the reference: wider page and bigger gallery tiles. */
.wrap.sg-page { width: min(1560px, calc(100% - 40px)); }
.sm-tiles { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.sm-head h3 { font-size: 26px; }
.sm-group > summary .sm-tag { font-size: 14px; }
.sm-filter[hidden] { display: none; }
/* Sky Event rooms: one card per room with its ticket, levels, extra experience and the winner's prize. */
.sk-intro { margin: -6px 0 16px; color: #b9b1a3; font-size: 15px; }
.sk-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sk-room { display: grid; align-content: start; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid #ffffff14; background: linear-gradient(180deg, #2a2418, #18161b); }
.sk-room header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sk-room h4 { margin: 0; font-size: 20px; color: #f0b54a; }
.sk-ticket { position: relative; display: inline-flex; }
.sk-ticket .sg-item { --slot: 42px; padding: 4px; }
.sk-ticket b { position: absolute; right: -6px; bottom: -6px; padding: 1px 6px; border-radius: 8px; background: #f0b54a; color: #241a08; font-size: 12px; font-weight: 800; }
.sk-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--sg-line); font-size: 14px; }
.sk-row span, .sk-exp > span, .sk-prize > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #a39b8d; }
.sk-row strong { color: #f3ede2; }
.sk-exp { padding: 9px 0; border-bottom: 1px solid var(--sg-line); }
.sk-exp ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.sk-exp li { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: #0d0d10a6; border: 1px solid var(--sg-line); }
.sk-exp li small { font-size: 11px; color: #a39b8d; }
.sk-exp li b { font-size: 15px; color: #7fd18b; }
.sk-prize { padding-top: 9px; }
.sk-prize-item { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sk-prize-item .sg-item { --slot: 48px; flex: none; }
.sk-prize-item strong { display: block; font-size: 15px; color: #f3dba8; }
.sk-prize-item small { display: block; margin-top: 2px; font-size: 13px; color: #9bb7ff; }
.sk-coin { margin-top: 6px; font-size: 14px; font-weight: 700; color: #f0b54a; }
/* Tables that compare several levels (VIP): every value column centred, the last one no longer pushed to the right. */
.sg-table.is-multi .sg-row span:not(.is-first) { text-align: center; }
.sg-table.is-multi .sg-row span:last-child:not(:first-child) { text-align: center; }
.sg-table.is-multi .sg-row-head span:not(:first-child) { text-align: center; }
/* Blood Castle / Devil Square room prizes and the Roulette prize grid (pictures only, ordered by chance). */
.sk-row strong.is-gold { color: #f0b54a; }
.ev-count { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #f3ede2; }
.ev-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-items .sg-item { --slot: 42px; padding: 4px; }
.ev-wheel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ev-prize { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 14px; border: 1px solid #ffffff14; background: radial-gradient(circle at 50% 35%, #2c2518, #141317 75%); }
.ev-prize .sg-item { --slot: 72px; padding: 6px; }
.ev-prize.is-rare { border-color: #f0b54a80; box-shadow: 0 0 18px #f0b54a26 inset; }
.ev-level { position: absolute; top: 10px; right: 10px; padding: 1px 7px; border-radius: 8px; background: #f0b54a; color: #241a08; font-size: 12px; font-weight: 800; }
.ev-pct { font-size: 16px; font-weight: 800; color: #f3dba8; }
@media (max-width: 900px) { .ev-wheel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ev-wheel { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ev-prize .sg-item { --slot: 56px; } }
.ev-prize .sg-item.is-wide { width: 100%; max-width: 120px; height: 72px; }
