@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --ink: #1a1c1e;
  --slate: #6c7278;
  --clay: #b8422e;
  --stone: #f7f5f2;
  --line: #d8d5d0;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--stone); font-family: "Public Sans", sans-serif; }
.masthead, main, footer { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.masthead { padding-top: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.brand-icon { display: block; width: 112px; height: 112px; border-radius: 20px; object-fit: cover; }
.brand-home { display: inline-block; border-radius: 20px; line-height: 0; }
.brand-home:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.eyebrow { color: var(--clay); font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .08em; }
h1 { max-width: 720px; margin: 16px 0 10px; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: .98; letter-spacing: 0; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.download-button { display: inline-flex; width: 150px; height: 50px; align-items: center; justify-content: center; border: 0; border-radius: 5px; color: #fff; background: var(--clay); font-size: 1rem; font-weight: 700; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.download-button:hover, .download-button:focus-visible { color: #fff; background: #963521; box-shadow: 0 0 20px rgba(150, 53, 33, .22); outline: none; transform: translateY(-2px); }
.download-button:active { transform: translateY(0); }
.site-menu { position: relative; z-index: 5; }
.site-menu summary { display: flex; width: 150px; height: 50px; align-items: center; justify-content: center; border-radius: 5px; color: #fff; background: var(--clay); cursor: pointer; font-size: 1rem; font-weight: 700; list-style: none; user-select: none; transition: background-color .2s ease, box-shadow .2s ease; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::after { margin-left: 10px; border: 5px solid transparent; border-top-color: currentColor; content: ""; transform: translateY(3px); transition: transform .2s ease; }
.site-menu[open] summary::after { transform: rotate(180deg) translateY(-3px); }
.site-menu summary:hover, .site-menu summary:focus-visible { background: #963521; box-shadow: 0 0 20px rgba(150, 53, 33, .22); outline: none; }
.site-menu-list { position: absolute; top: calc(100% + 8px); left: 0; display: grid; width: 210px; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(26, 28, 30, .14); }
.site-menu-list a { display: block; padding: 11px 12px; border-radius: 5px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-menu-list a:hover, .site-menu-list a:focus-visible { color: #fff; background: var(--clay); outline: none; }
p { margin: 0; color: var(--slate); font-size: 1.05rem; }
main { padding-top: 96px; min-height: 520px; }
.command-help { margin-bottom: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; scroll-margin-top: 24px; }
.command-help h3 { margin: 0 0 8px; font: 700 1.35rem "Space Grotesk", "Public Sans", sans-serif; }
.command-help dl { display: grid; gap: 10px; margin: 16px 0 0; }
.command-help dl div { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.command-help dt { font-weight: 700; }
.command-help dd { margin: 0; color: var(--slate); }
.command-help code { padding: 2px 5px; border-radius: 4px; color: var(--clay); background: var(--stone); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.command-alias { margin-top: 16px; font-size: .9rem; }
.info-section { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.section-kicker { color: var(--clay); font: 700 .72rem "Space Grotesk", sans-serif; letter-spacing: .08em; }
.section-heading h3 { margin: 4px 0 0; font: 700 1.35rem "Space Grotesk", "Public Sans", sans-serif; }
.section-note { color: var(--slate); font-size: .85rem; }
.update-list, .faq-list { display: grid; gap: 0; }
.update-entry { display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.update-entry:last-child { border-bottom: 0; padding-bottom: 2px; }
.update-meta { display: flex; flex-direction: column; gap: 4px; color: var(--slate); font-size: .82rem; }
.update-meta span { color: var(--clay); font-weight: 700; }
.update-entry h4 { margin: 0 0 8px; font: 700 1rem "Space Grotesk", "Public Sans", sans-serif; }
.update-entry ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: .92rem; line-height: 1.7; }
.update-entry p { font-size: .92rem; }
.update-placeholder, .faq-placeholder { color: #9b9b98; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq-list details:last-child { border-bottom: 0; padding-bottom: 2px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list summary::marker { color: var(--clay); }
.faq-list details p { margin-top: 10px; max-width: 760px; font-size: .92rem; line-height: 1.7; }
.faq-list code { padding: 2px 5px; border-radius: 4px; color: var(--clay); background: var(--stone); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.searchbar { display: flex; justify-content: center; }
.group { position: relative; display: flex; width: min(100%, 560px); line-height: 28px; align-items: center; }
.group .input { width: 100%; height: 46px; line-height: 28px; border: 2px solid transparent; border-radius: 8px; padding: 0 1rem 0 2.5rem; outline: none; color: #0d0c22; background-color: #dedfe2; transition: .3s ease; }
.group .input::placeholder { color: #9e9ea7; }
.group .input:focus, .group .input:hover { border-color: var(--clay); background-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 12%, transparent); }
.group .icon { position: absolute; left: 1rem; z-index: 1; width: 1rem; height: 1rem; fill: #9e9ea7; pointer-events: none; }
input, select, button { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; background: #fff; }
button { color: #fff; border-color: var(--clay); background: var(--clay); cursor: pointer; font-weight: 700; }
button:hover { background: #963521; }
.type-filter { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; border: 0; }
.checkbox { --checkbox-color: var(--clay); --checkbox-size: 1rem; display: block; position: relative; cursor: pointer; user-select: none; color: var(--checkbox-color); font-size: .95rem; font-weight: 600; }
.checkbox input { position: absolute; pointer-events: none; inset: 0; opacity: 0; }
.checkbox .checkmark { display: flex; align-items: center; gap: 7px; opacity: .68; transition: opacity 150ms ease, color 150ms ease; }
.checkbox .checkmark:hover { opacity: .85; }
.checkbox input:checked ~ .checkmark { opacity: 1; }
.checkbox .checkmark svg { width: var(--checkbox-size); height: var(--checkbox-size); flex: 0 0 auto; }
.checkbox .checkmark svg rect { stroke-dasharray: 88 0; stroke-dashoffset: 73; transition: stroke-dasharray 100ms ease; }
.checkbox input:checked ~ .checkmark svg rect { stroke-dasharray: 80 18; }
.checkbox .checkmark svg polyline { stroke-dasharray: 0 30; stroke-dashoffset: 1; transition: stroke-dasharray 150ms ease; }
.checkbox input:checked ~ .checkmark svg polyline { stroke-dasharray: 30 30; }
.status { display: flex; min-height: 42px; align-items: center; gap: 10px; margin: 24px 0 12px; color: var(--slate); font-size: .9rem; }
.dragon-loading[hidden] { display: none; }
.dragon-loading { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: #fff6e3; }
.dragon-loading-main { position: relative; width: min(260px, 72vw); height: 190px; }
.dragon { position: absolute; top: 0; left: 30px; width: 200px; height: 140px; transform-origin: 50% 80%; animation: dragon-zoom-in .5s cubic-bezier(.47, 0, .75, .72) infinite alternate; }
.dragon-body { position: absolute; top: 0; right: 0; z-index: 10; width: 180px; height: 128px; background: url("dragon-loading/body.png") center / contain no-repeat; }
.dragon-horn-left { position: absolute; top: -17px; left: 32px; z-index: 9; width: 31px; height: 31px; background: url("dragon-loading/horn-left.png") no-repeat; background-size: contain; transform: rotate(-5deg); transform-origin: 150% 200%; animation: dragon-swing-right .5s cubic-bezier(.47, 0, .75, .72) infinite alternate; }
.dragon-horn-right { position: absolute; top: -16px; left: 110px; z-index: 9; width: 34px; height: 31px; background: url("dragon-loading/horn-right.png") no-repeat; background-size: contain; transform: rotate(5deg); transform-origin: -50% 200%; animation: dragon-swing-left .5s cubic-bezier(.47, 0, .75, .72) infinite alternate; }
.dragon-eye { position: absolute; top: 39px; z-index: 12; width: 11px; height: 11px; background: url("dragon-loading/eye.png") no-repeat; background-size: contain; }
.dragon-eye-left { left: 49px; }
.dragon-eye-right { left: 118px; transform: rotate(180deg); }
.dragon-blush { position: absolute; top: 46px; z-index: 11; width: 15px; height: 9px; background: url("dragon-loading/blush.png") 0 0 / 100% 100% no-repeat; animation: dragon-blush .5s ease infinite alternate; }
.dragon-blush-left { left: 43px; }
.dragon-blush-right { left: 120px; }
.dragon-mouth { position: absolute; top: 52px; left: 49px; z-index: 11; width: 78px; height: 56px; background: url("dragon-loading/mouth.png") 0 0 / 100% no-repeat; animation: dragon-open-mouth 1s ease infinite; }
.dragon-tail-sting { position: absolute; top: 67px; left: 139px; z-index: 9; width: 40px; height: 38px; background: url("dragon-loading/tail-sting.png") no-repeat; background-size: contain; transform-origin: 0 100%; animation: dragon-tail-up .5s cubic-bezier(.47, 0, .75, .72) infinite alternate; }
.dragon-shadow-wrapper { position: absolute; top: 110px; width: 100%; }
.dragon-shadow { width: 110px; height: 30px; margin: 0 auto; border-radius: 50%; background: rgba(0, 0, 0, .15); animation: dragon-zoom-in .5s cubic-bezier(.47, 0, .75, .72) infinite alternate; }
.dragon-fire-wrapper { position: absolute; top: 60px; left: 108px; width: 40px; transform: translate(-50%, -50%); transform-origin: 50% 100%; animation: dragon-fire-up 1s ease-in infinite; }
.dragon-fire { width: 100%; height: 100%; padding-bottom: 135%; background: url("dragon-loading/fire.png") no-repeat; background-size: contain; animation: dragon-fire 1s ease-out infinite; }
.dragon-progress { position: absolute; right: 18px; bottom: 0; left: 18px; }
.dragon-progress-outer { width: 100%; height: 14px; overflow: hidden; border-radius: 7px; background: rgba(0, 0, 0, .1); }
.dragon-progress-inner { width: 0; height: 100%; background: #ffcd33; animation: dragon-loading-progress 2s linear infinite; }
.dragon-loading-message { margin: 0; color: #6c7278; font-size: .9rem; }
@keyframes dragon-zoom-in { to { transform: scale(1.16); } }
@keyframes dragon-swing-right { to { transform: rotate(5deg); } }
@keyframes dragon-swing-left { to { transform: rotate(-5deg); } }
@keyframes dragon-blush { from { opacity: 0; } to { opacity: 1; } }
@keyframes dragon-open-mouth { 0% { clip-path: ellipse(20% 0% at 50% 0); } 50%, 70% { clip-path: ellipse(100% 100% at 50% 0); } 100% { clip-path: ellipse(20% 0% at 50% 0); } }
@keyframes dragon-tail-up { from { transform: scaleY(.9); } to { transform: scaleY(1.06); } }
@keyframes dragon-loading-progress { to { width: 100%; } }
@keyframes dragon-fire-up { 0%, 20% { top: 70px; } 100% { top: -80px; } }
@keyframes dragon-fire { 0%, 20% { transform: scale(0); opacity: .8; } 50% { opacity: .8; } 100% { transform: scale(1); opacity: 0; } }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; align-items: start; justify-items: center; }
.item-card.card { display: flex; width: 190px; height: 254px; min-width: 190px; min-height: 254px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; margin: 0; padding: 24px 18px; border: 0; border-radius: 30px; color: var(--ink); background: #f2f4f7; box-shadow: 15px 15px 30px #d2d6dc, -15px -15px 30px #ffffff; text-align: center; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.item-card.card:hover, .item-card.card:focus-visible { box-shadow: 10px 10px 22px #d2d6dc, -10px -10px 22px #ffffff; outline: none; }
.item-card.card:active { box-shadow: inset 8px 8px 16px #d2d6dc, inset -8px -8px 16px #ffffff; transform: translateY(1px); }
.card-name { display: block; width: 100%; overflow-wrap: anywhere; color: var(--ink); font-family: "Space Grotesk", "Public Sans", sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.search-match { border-radius: 3px; padding: 0 2px; color: #fff; background: var(--clay); }
.card-divider { width: 70%; height: 1px; margin: 8px 0; background: #d8dce2; }
.card-label { display: block; color: var(--slate); font-size: .75rem; font-weight: 700; }
.card-price { display: block; color: var(--clay); font: 700 1.25rem "Space Grotesk", "Public Sans", sans-serif; }
.card-price-secondary { margin-bottom: 4px; }
.card-count { display: block; color: var(--slate); font-size: .8rem; font-weight: 700; }
.item-card.card { position: relative; }
.effect-tooltip { position: absolute; bottom: 12px; left: 12px; display: inline-flex; z-index: 2; cursor: help; }
.effect-icon { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: #4caf50; font: 700 13px Arial, sans-serif; }
.effect-tooltiptext { position: absolute; bottom: calc(100% + 10px); left: 50%; visibility: hidden; display: inline-block; width: max-content; max-width: min(280px, 75vw); border-radius: 7px; padding: 8px 10px; color: #fff; background: #333; box-shadow: 0 6px 18px #0003; text-align: left; white-space: pre-line; overflow-wrap: anywhere; opacity: 0; transform: translateX(-50%); transition: opacity .2s; pointer-events: none; }
.effect-tooltiptext::after { position: absolute; bottom: -8px; left: 50%; border: 8px solid transparent; border-bottom: 0; border-top-color: #333; content: ""; transform: translateX(-50%); }
.effect-tooltip:hover .effect-tooltiptext, .effect-tooltip:focus .effect-tooltiptext, .effect-tooltip:focus-within .effect-tooltiptext { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .item-card.card { transition: none; }
}
.details[hidden], .results[hidden] { display: none; }
.details-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.details-heading h2 { margin: 0; font: 700 1.7rem "Space Grotesk", "Public Sans", sans-serif; overflow-wrap: anywhere; }
.details-title { display: flex; align-items: center; gap: 18px; }
.detail-type-filter { display: flex; gap: 4px; }
.detail-type-option { --checkbox-color: var(--clay); --checkbox-size: 1rem; min-height: auto; border: 0; border-radius: 0; padding: 0; background: transparent; }
.back-button { --color: var(--clay); display: inline-block; position: relative; z-index: 1; width: 8em; height: 2.6em; overflow: hidden; margin: 20px; border: 2px solid var(--color); border-radius: 6px; padding: 0; color: var(--color); background: transparent; cursor: pointer; font: 500 17px/2.5em inherit; transition: color .5s; }
.back-button::before { position: absolute; top: 100%; left: 100%; z-index: -1; width: 200px; height: 150px; border-radius: 50%; background: var(--color); content: ""; transition: all .7s; }
.back-button:hover, .back-button:focus-visible { color: #fff; outline: none; }
.back-button:hover::before, .back-button:focus-visible::before { top: -30px; left: -30px; }
.back-button:active::before { background: #963521; transition: background 0s; }
body.dark-theme .back-button { --color: #f07a52; }
.detail-list { display: grid; }
.detail-row { display: grid; grid-template-columns: 120px 100px 100px minmax(120px, 1fr) 180px 160px 110px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 0; text-align: center; }
.detail-header { padding-top: 12px; padding-bottom: 12px; color: var(--slate); font-size: .8rem; font-weight: 700; }
.detail-price { color: var(--clay); font: 700 1.25rem "Space Grotesk", sans-serif; }
.detail-type { color: var(--clay); font-weight: 700; }
.detail-amount { font-weight: 600; }
.detail-owner { min-height: 36px; border: 1px solid transparent; border-radius: 8px; padding: 0; color: var(--slate); background: transparent; font-size: .9rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.detail-owner:hover, .detail-owner:focus-visible { border-color: var(--clay); color: var(--clay); outline: none; }
.detail-owner.is-online { border-color: #2f9e58; color: #000; }
.detail-owner.is-online:hover, .detail-owner.is-online:focus-visible { border-color: #2f9e58; color: #000; }
.detail-location { min-height: 36px; border: 1px solid transparent; padding: 0; color: var(--slate); background: transparent; font-size: .9rem; line-height: 1.5; text-align: center; cursor: pointer; }
.detail-location:hover, .detail-location:focus-visible { border-color: var(--clay); color: var(--clay); outline: none; }
.detail-port { min-height: 36px; border: 1px solid transparent; padding: 0; color: var(--slate); background: transparent; font-size: .9rem; line-height: 1.5; text-align: center; cursor: pointer; }
.detail-port:hover, .detail-port:focus-visible { border-color: var(--clay); color: var(--clay); outline: none; }
.detail-time { color: var(--slate); font-size: .85rem; white-space: nowrap; }
footer { padding-top: 24px; padding-bottom: 40px; color: var(--slate); font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 700px) {
  .masthead { padding-top: 32px; }
  .brand-icon { width: 88px; height: 88px; border-radius: 16px; }
  .searchbar { grid-template-columns: 1fr; }
  .type-filter { justify-content: center; flex-wrap: wrap; }
  .command-help dl div { grid-template-columns: 1fr; gap: 4px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .update-entry { grid-template-columns: 1fr; gap: 8px; }
  .details-heading { align-items: flex-start; flex-direction: column-reverse; }
  .details-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .detail-location { grid-column: 1 / -1; }
  .results { grid-template-columns: repeat(2, 190px); justify-content: center; gap: 22px; }
}
@media (max-width: 430px) {
  .results { grid-template-columns: 190px; }
}

/* Centered navigation and the compact theme switch. */
.nav-wrap { position: fixed; top: 0; left: 50%; z-index: 100; width: max-content; transform: translateX(-50%); animation: navDrop .7s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.nav { padding: 10px; border-radius: 0 0 18px 18px; background: #000; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
.nav-inner { display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right > a, .nav .site-menu summary { color: #fff; font-size: .9rem; font-weight: 600; opacity: .72; transition: opacity .2s ease, background-color .2s ease; }
.nav-right > a:hover, .nav-right > a:focus-visible, .nav .site-menu summary:hover, .nav .site-menu summary:focus-visible { opacity: 1; outline: none; }
.nav .site-menu { position: relative; z-index: 2; }
.nav .site-menu summary { display: block; width: auto; height: auto; border: 0; border-radius: 0; padding: 8px 0; background: transparent; cursor: pointer; list-style: none; }
.nav .site-menu summary:hover, .nav .site-menu summary:focus-visible { background: transparent !important; box-shadow: none !important; }
.nav .site-menu summary::-webkit-details-marker { display: none; }
.nav .site-menu summary::after { display: inline-block; margin-left: 8px; border: 4px solid transparent; border-top-color: currentColor; content: ""; transform: translateY(3px); }
.nav .site-menu-list { top: calc(100% + 10px); right: auto; left: 50%; width: 180px; border: 1px solid #252525; background: #0b0b0b; box-shadow: 0 12px 28px rgba(0, 0, 0, .28); transform: translateX(-50%); }
.nav .site-menu-list a { color: #f5f5f5; }
.nav .site-menu-list a:hover, .nav .site-menu-list a:focus-visible { color: #fff; background: var(--clay); }
.nav .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 8px; padding: 0 14px; color: #000; background: #fff; opacity: 1; }
.nav .cta:hover, .nav .cta:focus-visible { color: #000; background: #fff; opacity: .82; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.burger { display: none; }
@keyframes navDrop { from { opacity: 0; transform: translateX(-50%) translateY(-53px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.theme-switch { position: fixed; top: 14px; right: 16px; z-index: 110; }
.rocker { display: inline-block; position: relative; width: 5.6em; height: 3.1em; overflow: hidden; border-bottom: .38em solid #eee; color: #888; font-size: .75em; font-weight: 700; text-align: center; text-transform: uppercase; }
.rocker::before { position: absolute; top: .38em; right: 0; bottom: 0; left: 0; border: .38em solid #eee; border-bottom: 0; background: #999; content: ""; }
.rocker input { position: absolute; width: 0; height: 0; opacity: 0; }
.switch-left, .switch-right { position: absolute; display: flex; width: 2.35em; height: 2em; align-items: center; justify-content: center; cursor: pointer; user-select: none; transition: .2s; }
.switch-left { bottom: .32em; left: .62em; background: #ddd; transform: rotate(15deg) skewX(15deg); }
.switch-right { right: .42em; bottom: 0; color: #fff; background: #222; }
.switch-left::before, .switch-right::before { position: absolute; bottom: -.36em; width: .32em; height: 2em; background: #ccc; content: ""; transform: skewY(-65deg); }
.switch-left::before { left: -.32em; }
.switch-right::before { right: -.3em; background: transparent; transform: skewY(65deg); }
.rocker input:checked + .switch-left { bottom: 0; left: .38em; width: 2.5em; height: 2.08em; color: #fff; background: #222; transform: rotate(0) skewX(0); }
.rocker input:checked + .switch-left::before { width: 2.56em; background: transparent; }
.rocker input:checked + .switch-left + .switch-right { right: .64em; bottom: .32em; width: 2.35em; height: 2em; color: #888; background: #ddd; transform: rotate(-15deg) skewX(-15deg); }
.rocker input:focus-visible + .switch-left, .rocker input:focus-visible + .switch-left + .switch-right { outline: 2px solid var(--clay); outline-offset: 2px; }
body.dark-theme { --ink: #f3f4f6; --slate: #b7bec8; --stone: #17191c; --line: #363a40; color: var(--ink); background: var(--stone); }
body.dark-theme .command-help, body.dark-theme .info-section, body.dark-theme .audit-records, body.dark-theme input, body.dark-theme select { background: #22252a; }
body.dark-theme .site-menu-list { background: #22252a; border-color: #454a52; }
body.dark-theme .site-menu-list a { color: var(--ink); }
body.dark-theme .item-card.card { background: #24282d; box-shadow: 15px 15px 30px #0d0f11, -15px -15px 30px #373d44; }
body.dark-theme .item-card.card:hover, body.dark-theme .item-card.card:focus-visible { box-shadow: 10px 10px 22px #0d0f11, -10px -10px 22px #373d44; }
body.dark-theme .item-card.card:active { box-shadow: inset 8px 8px 16px #0d0f11, inset -8px -8px 16px #373d44; }
body.dark-theme .card-divider { background: #4a515a; }
body.dark-theme .effect-icon { color: #172016; }
body.dark-theme .group .input { color: var(--ink); background: #22252a; }
body.dark-theme .group .input:focus, body.dark-theme .group .input:hover { background: #2b2f35; }
body.dark-theme .audit-records th { background: #30343a; }
@media (max-width: 809.98px) {
  .nav-wrap { width: min(350px, calc(100vw - 24px)); }
  .nav-inner { justify-content: space-between; }
  .nav-right { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: flex; align-items: stretch; flex-direction: column; gap: 18px; padding: 20px; border-radius: 16px; background: #000; opacity: 0; pointer-events: none; transform: scaleY(.9) translateY(-8px); transform-origin: top; transition: opacity .2s ease, transform .2s ease; }
  .nav-toggle:checked ~ .nav .nav-right { opacity: 1; pointer-events: auto; transform: none; }
  .nav .site-menu summary { padding: 0; }
  .nav .site-menu-list { position: static; width: auto; margin-top: 10px; transform: none; }
  .nav .cta { min-height: 42px; }
  .burger { position: relative; display: block; width: 26px; height: 20px; cursor: pointer; }
  .burger span { position: absolute; right: 0; left: 0; height: 2px; border-radius: 2px; background: #757575; transition: transform .25s, opacity .2s, top .25s; }
  .burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 9px; } .burger span:nth-child(3) { top: 18px; }
  .nav-toggle:checked ~ .nav .burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav .burger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
  .theme-switch { top: 10px; right: 10px; transform: scale(.82); transform-origin: top right; }
  main { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) { .nav-wrap, .nav-right, .burger span { animation: none; transition: none; } }

/* Light navigation surface and the sun/moon theme control. */
.nav { background: var(--stone); border: 1px solid var(--line); }
.brand, .nav-right > a, .nav .site-menu summary { color: var(--ink); }
.brand img { box-shadow: 0 2px 8px rgba(26, 28, 30, .12); }
.nav .cta { color: #fff; background: var(--clay); text-decoration: none; }
.nav .cta:hover, .nav .cta:focus-visible { color: #fff; background: #963521; opacity: 1; }
.nav .site-menu-list { background: var(--stone); border-color: var(--line); }
.nav .site-menu-list a { color: var(--ink); }
.download-button, .download-button:hover, .download-button:focus-visible { text-decoration: none; }
.switch { display: inline-block; position: fixed; top: 14px; right: 16px; z-index: 110; width: 64px; height: 34px; font-size: 17px; }
.switch .input { width: 0; height: 0; opacity: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 30px; background: #73c0fc; cursor: pointer; transition: .4s; }
.switch .slider::before { position: absolute; z-index: 2; bottom: 2px; left: 2px; width: 30px; height: 30px; border-radius: 50%; background: #e8e8e8; content: ""; transition: .4s; }
.switch .sun svg { position: absolute; top: 5px; left: 35px; z-index: 1; width: 24px; height: 24px; }
.switch .moon svg { position: absolute; top: 5px; left: 5px; z-index: 1; width: 24px; height: 24px; fill: #183153; }
.switch .moon svg path { fill: #183153; }
.switch .sun svg { animation: rotate 15s linear infinite; }
.switch .moon svg { animation: tilt 5s linear infinite; }
.switch .input:checked + .slider { background: #183153; }
.switch .input:checked + .slider::before { transform: translateX(30px); }
.switch .input:focus-visible + .slider { box-shadow: 0 0 0 2px var(--clay); }
body.dark-theme .switch .moon svg, body.dark-theme .switch .moon svg path { fill: #ffffff !important; filter: drop-shadow(0 0 2px #ffffff); }
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
body.dark-theme .nav { background: var(--stone); }
body.dark-theme .nav .site-menu-list { background: #22252a; }
body.dark-theme .nav .site-menu-list a { color: var(--ink); }
.nav-right { background: var(--stone); }
body.dark-theme input, body.dark-theme select { color: var(--ink); border-color: var(--line); }
body.dark-theme input::placeholder { color: #8f98a5; }
body.dark-theme select option { color: var(--ink); background: #22252a; }
body.dark-theme .command-help code, body.dark-theme .faq-list code { background: #30343a; }
body.dark-theme .update-placeholder, body.dark-theme .faq-placeholder { color: #7f8995; }
body.dark-theme .dragon-loading { background: #17191c; }
body.dark-theme .dragon-loading-message { color: var(--slate); }
body.dark-theme .dragon-progress-outer { background: rgba(255, 255, 255, .12); }
body.dark-theme .detail-location, body.dark-theme .detail-port { color: var(--slate); }
body.dark-theme footer { color: var(--slate); }
body.dark-theme .nav-right { background: var(--stone); }
body.dark-theme .nav .site-menu summary { color: var(--ink); }
body.dark-theme .nav .site-menu-list a:hover, body.dark-theme .nav .site-menu-list a:focus-visible { color: #fff; }
.update-copy p { margin: 0 0 6px; font-size: .92rem; line-height: 1.7; }
.update-copy p:last-child { margin-bottom: 0; }
.admin-auth { display: flex; max-width: 680px; gap: 8px; margin: 20px 0 16px; }
.admin-auth input { flex: 1; min-width: 0; }
.version-form { display: grid; grid-template-columns: 180px 180px 1fr; gap: 14px; margin: 20px 0 28px; }
.version-form label { display: grid; gap: 6px; color: var(--slate); font-size: .85rem; font-weight: 600; }
.version-form .full-width { grid-column: 1 / -1; }
.version-form textarea { min-height: 150px; resize: vertical; }
.version-form input, .version-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); background: #fff; font: inherit; }
.editor-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.editor-actions button:last-child { color: var(--ink); border-color: var(--line); background: transparent; }
.admin-update-list { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.admin-update-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: rgba(255, 255, 255, .45); }
.admin-update-row small { display: block; margin-top: 4px; color: var(--slate); }
.admin-update-row button { min-height: 36px; padding: 0 12px; }
body.dark-theme .version-form input, body.dark-theme .version-form textarea, body.dark-theme .admin-update-row { background: #22252a; }
body.dark-theme .editor-actions button:last-child { color: var(--ink); background: transparent; }
@media (max-width: 700px) { .version-form { grid-template-columns: 1fr; } .version-form .full-width, .editor-actions { grid-column: auto; } .admin-update-row { align-items: flex-start; flex-direction: column; } }
@media (max-width: 809.98px) { .switch { top: 10px; right: 10px; transform: scale(.82); transform-origin: top right; } }
@media (prefers-reduced-motion: reduce) { .switch .sun svg, .switch .moon svg { animation: none; } }

/* Inline truck loader under the search field. */
.dragon-loading { position: relative; z-index: 1; inset: auto; display: flex; min-height: 124px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; margin: 8px 0 0; background: transparent; }
.dragon-loading-message { color: var(--slate); font-size: .85rem; }
.loader { display: flex; width: fit-content; height: fit-content; align-items: center; justify-content: center; }
.truckWrapper { position: relative; display: flex; width: 200px; height: 100px; align-items: center; justify-content: flex-end; flex-direction: column; overflow-x: hidden; }
.truckBody { width: 130px; height: fit-content; margin-bottom: 6px; animation: truckMotion 1s linear infinite; }
.trucksvg { display: block; width: 130px; height: auto; }
.truckTires { position: absolute; bottom: 0; display: flex; width: 130px; height: fit-content; align-items: center; justify-content: space-between; padding: 0 10px 0 15px; }
.tiresvg { width: 24px; height: 24px; }
.road { position: relative; bottom: 0; align-self: flex-end; width: 100%; height: 1.5px; border-radius: 3px; background: #282828; }
.road::before, .road::after { position: absolute; height: 100%; border-radius: 3px; background: #282828; content: ""; animation: roadAnimation 1.4s linear infinite; }
.road::before { right: -50%; width: 20px; border-left: 10px solid var(--stone); }
.road::after { right: -65%; width: 10px; border-left: 4px solid var(--stone); }
@keyframes truckMotion { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes roadAnimation { from { transform: translateX(0); } to { transform: translateX(-350px); } }
body.dark-theme .road::before, body.dark-theme .road::after { border-left-color: var(--stone); }
body.dark-theme .dragon-loading { background: transparent; }

.port-rank-note { margin: 18px 0; font-size: .9rem; }
.port-rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.port-rank-section h4 { margin: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; font: 700 1.1rem "Space Grotesk", "Public Sans", sans-serif; }
.port-rank-list { display: grid; gap: 0; }
.port-rank-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.port-rank-position { color: var(--clay); font: 700 1.05rem "Space Grotesk", sans-serif; text-align: center; }
.port-rank-name { display: grid; gap: 3px; min-width: 0; }
.port-rank-name strong { overflow-wrap: anywhere; }
.port-rank-name small { color: var(--slate); font-size: .75rem; }
.port-rank-count { white-space: nowrap; color: var(--clay); }
@media (max-width: 700px) { .port-rank-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Juanpabl0svn switch: CSS-only moon, stars, and sun states. */
.switch { width: 3.5em; height: 2em; font-size: 17px; }
.switch .sun, .switch .moon { display: none; }
.switch .slider { --background: #20262c; background-color: var(--background); transition: .5s; }
.switch .slider::before { bottom: 15%; left: 10%; width: 1.4em; height: 1.4em; background: var(--background); box-shadow: inset 8px -4px 0 #ececd9, -4px 1px 4px #dadada; transition: .5s; }
.switch::after { position: absolute; right: 20%; top: 15%; width: 2px; height: 2px; border-radius: 50%; background: #e5f041e6; content: ""; transition: all .5s; box-shadow: -7px 10px 0 #e5f041e6, 8px 15px 0 #e5f041e6, -17px 1px 0 #e5f041e6, -20px 10px 0 #e5f041e6, -7px 23px 0 #e5f041e6, -15px 25px 0 #e5f041e6; }
.switch:has(.input:checked)::after { width: 10px; height: 10px; background: #fff; box-shadow: -12px 0 0 #fff, -6px 0 0 1.6px #fff, 5px 15px 0 1px #fff, 1px 17px 0 #fff, 10px 17px 0 #fff; transform: translateX(-20px); }
.switch .input:checked + .slider { background-color: #5494de; }
.switch .input:checked + .slider::before { transform: translateX(100%); background: var(--background); box-shadow: inset 15px -4px 0 15px #efdf2b, 0 0 10px #efdf2b; }
