@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@500;600;700;800&display=swap');

/* ---------- Tokens ---------- */

:root {
  --ink: #212c3d;
  --muted: #687488;
  --paper: #f7f2e8;
  --panel: #fffdf8;
  --line: #dfd5c3;
  --gold: #bd7d20;
  --gold-light: #fbf0d1;
  --blue: #23526a;
  --blue-light: #e4eff0;
  --violet: #704f82;
  --violet-light: #f5edf6;
  --violet-line: #cdb7d5;
  --safe: #448573;
  --danger: #b03a2e;
  --danger-light: #fbe9e5;
  --danger-line: #e3a397;
  --shadow: 0 18px 40px rgba(47, 37, 20, .09);
  --glow: #e5dcc9;
  --el-neutral: #7d7468;
  --el-earth: #8a5a2b;
  --el-fire: #c4472a;
  --el-water: #2f6f9f;
  --el-air: #3f8a4e;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #edf0e8;
  --muted: #b3baae;
  --paper: #1b242a;
  --panel: #242f35;
  --line: #3d4b50;
  --gold: #f2ba5c;
  --gold-light: #3d3523;
  --blue: #9cd2d5;
  --blue-light: #283d42;
  --violet: #d8bce2;
  --violet-light: #302938;
  --violet-line: #5a4960;
  --safe: #8fd0b9;
  --danger: #f29483;
  --danger-light: #3b2522;
  --danger-line: #7a3f36;
  --shadow: 0 18px 45px rgba(0, 0, 0, .25);
  --glow: #314047;
  --el-neutral: #c2b9ac;
  --el-earth: #d9a36a;
  --el-fire: #f0866b;
  --el-water: #7fb8e3;
  --el-air: #86cf94;
  color-scheme: dark;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(ellipse at 55% -5%, var(--glow) 0%, transparent 48%), var(--paper);
  font: 600 14px/1.55 Manrope, sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: var(--blue); }
/* Thin, paper-toned scrollbars: the result list and wide tables scroll inside the page. */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: var(--line) padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted) padding-box; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #b8781d; outline-offset: 3px; }
code { font: 500 12px 'DM Mono', monospace; }
.shell { width: min(1210px, calc(100% - 48px)); margin: auto; }
[hidden], .hidden { display: none !important; }

/* ---------- Header ---------- */

.topbar { height: 68px; display: flex; align-items: center; gap: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); font: 800 20px/1 Manrope; letter-spacing: .12em; text-decoration: none; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font: 700 8px Manrope; letter-spacing: .17em; }
.brand-mark { flex: none; width: 32px; height: 32px; }
.tagline { flex: 1; min-width: 0; margin: 0; padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4; }
.tagline strong { color: var(--gold); font-weight: 800; }
.header-actions { flex: none; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
kbd { padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--panel); font: 500 10px/1.5 'DM Mono', monospace; }
.overlay-toggle { height: 35px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.overlay-toggle span { color: var(--gold); font-size: 14px; }
.overlay-toggle:hover, .overlay-toggle.active { border-color: #e2c88f; color: #754809; background: var(--gold-light); }
:root[data-theme="dark"] .overlay-toggle:hover, :root[data-theme="dark"] .overlay-toggle.active { border-color: #71603c; color: var(--gold); }
.theme { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); cursor: pointer; font-size: 18px; }

h2 { margin: 0; font-family: Fraunces, Georgia, serif; letter-spacing: -.045em; }

/* ---------- Lookup ---------- */

.lookup { position: relative; z-index: 1; scroll-margin-top: 16px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.search-slot { height: 61px; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap.docked { position: fixed; top: 10px; left: 50%; z-index: 5; width: min(1210px, calc(100% - 48px)); padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); transform: translateX(-50%); animation: dock-in .22s ease-out; }
.search-wrap.docked input { height: 44px; font-size: 15px; }
.search-wrap.docked .search-icon { left: 19px; font-size: 24px; }
.search-wrap.docked .filters-toggle { right: 12px; height: 34px; min-width: 34px; }
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, -14px); } }
/* The sticky list slides under the docked search otherwise. */
.search-docked .result-list { top: 76px; }
.result-list { transition: top .2s ease; }
.search-icon { position: absolute; left: 17px; color: var(--gold); font-size: 31px; line-height: 1; transform: rotate(-16deg); }
input { width: 100%; height: 61px; padding: 0 128px 0 52px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: var(--gold-light); font-size: 17px; font-weight: 700; }
input::placeholder { color: var(--muted); opacity: .8; }
input:focus { border-color: var(--gold); outline: none; }
.clear { position: absolute; right: 88px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 23px; }

.filters-toggle { position: absolute; right: 9px; display: flex; align-items: center; gap: 6px; height: 43px; min-width: 43px; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel); cursor: pointer; font-size: 11px; font-weight: 800; }
.filters-toggle:hover, .filters-toggle.active { border-color: #e2c88f; color: #754809; }
:root[data-theme="dark"] .filters-toggle:hover, :root[data-theme="dark"] .filters-toggle.active { border-color: #71603c; color: var(--gold); }
.filters-current:empty { display: none; }
.filters { display: flex; gap: 8px; margin-top: 14px; overflow: auto; }
.filter { flex: 0 0 auto; padding: 7px 11px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.filter:hover { background: var(--gold-light); }
.filter.active { border-color: #e2c88f; color: #754809; background: var(--gold-light); }
:root[data-theme="dark"] .filter.active { color: var(--gold); border-color: #71603c; }
.filter span { margin-left: 5px; opacity: .65; font: 10px 'DM Mono', monospace; }

.room { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.room-label { margin-right: 4px; color: var(--violet); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--violet-line); border-radius: 999px; background: var(--violet-light); }
.chip button { border: 0; background: transparent; cursor: pointer; color: var(--violet); font-size: 11px; font-weight: 800; }
.chip-open { padding: 4px 4px 4px 11px; }
.chip:has(.current) { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.chip-remove { padding: 4px 10px 4px 4px; opacity: .7; }
.chip-remove:hover { opacity: 1; }
.room-clear { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; text-decoration: underline; }

/* ---------- Results ---------- */

.content { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; margin-top: 25px; padding-bottom: 35px; }
.results { min-height: 500px; }
.result-label { display: flex; justify-content: space-between; margin: 0 8px 11px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-hint { letter-spacing: 0; text-transform: none; font-weight: 600; }
.result-list { position: sticky; top: 12px; max-height: calc(100vh - 60px); overflow-y: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.result { position: relative; display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px 9px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.result:hover, .result.selected { background: var(--panel); }
.result.selected { padding-left: 9px; border-radius: 0 7px 7px 0; box-shadow: inset 3px 0 var(--gold); }
.result-index { flex: none; width: 18px; color: #af9b7b; font: 11px 'DM Mono', monospace; }
.result-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: var(--gold-light); }
.result-avatar.placeholder { display: grid; place-items: center; color: var(--violet); background: var(--violet-light); font: 700 14px Fraunces, Georgia, serif; }
.result-copy { display: grid; min-width: 0; }
.result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.result small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.result-marks { display: flex; gap: 4px; margin-left: auto; font-size: 10px; }
.songe-dot { color: var(--violet); }
.pin-dot { color: var(--gold); }
.chevron { color: var(--gold); font-size: 22px; }
.empty { padding: 25px 4px; color: var(--muted); }

/* ---------- Detail ---------- */

.detail { min-height: 530px; padding: 34px clamp(22px, 4vw, 54px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.detail.loading { opacity: .7; }
.detail-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.detail-actions { display: flex; align-items: center; gap: 14px; }
.tag { padding: 4px 8px; border-radius: 4px; color: #53646a; background: var(--blue-light); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
:root[data-theme="dark"] .tag { color: var(--blue); }
.tag.wanted { color: #83551b; background: var(--gold-light); }
:root[data-theme="dark"] .tag.wanted { color: var(--gold); }
.tag.adapted { color: var(--violet); background: #eee3f1; }
:root[data-theme="dark"] .tag.adapted { background: #392f3f; }
.detail-tags { display: flex; align-items: center; gap: 8px; }
.difficulty { padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: help; }
.difficulty.facile { color: var(--safe); }
.difficulty.moyen { color: #a07b0c; }
:root[data-theme="dark"] .difficulty.moyen { color: #e8c45a; }
.difficulty.difficile { color: var(--danger); }
.source { color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }
.source:hover { color: var(--gold); }
.pin { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }
.pin:hover { border-color: var(--violet-line); color: var(--violet); }
.pin.active { border-color: var(--violet-line); color: var(--violet); background: var(--violet-light); }

.detail-head { display: flex; align-items: center; gap: 18px; }
.portrait { flex: none; width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line); border-radius: 50%; object-fit: contain; background: radial-gradient(circle, var(--gold-light), transparent 72%); }
h2 { font-size: clamp(29px, 4vw, 45px); line-height: 1.08; }
.detail-meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
h3 { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
h3 small { margin-left: 6px; letter-spacing: 0; text-transform: none; font-weight: 600; opacity: .8; }
h4 { margin: 18px 0 6px; color: var(--ink); font-size: 13px; }

.one-shot { margin-top: 22px; padding: 14px 17px; border: 1px solid var(--danger-line); border-radius: 8px; background: linear-gradient(105deg, var(--danger-light), transparent); }
.one-shot-label { color: var(--danger); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.one-shot ul { margin: 6px 0 0; padding-left: 18px; }
.one-shot li { margin: 3px 0; }
.songes-mod { margin-top: 22px; padding: 15px 17px; border: 1px solid var(--violet-line); border-radius: 8px; background: linear-gradient(105deg, var(--violet-light), transparent); }
.songes-mod + .songes-mod { margin-top: 10px; }
.songes-mod > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.songes-mod a { color: var(--violet); font-size: 11px; font-weight: 800; text-decoration: none; }
.songes-mod p { margin: 10px 0 0; }
.songes-mod ul { margin: 6px 0 0; padding-left: 18px; }

.mechanic { margin: 28px 0; padding: 17px 19px; border: 1px solid #d7b26d; border-radius: 8px; background: linear-gradient(105deg, #fff6df, transparent); }
:root[data-theme="dark"] .mechanic { border-color: #71603c; background: linear-gradient(105deg, #3d3321, transparent); }
.mechanic.safe { border-color: #9dc6bb; background: linear-gradient(105deg, #eaf5ee, transparent); }
:root[data-theme="dark"] .mechanic.safe { border-color: #3c6358; background: linear-gradient(105deg, #213b34, transparent); }
.mechanic.neutral { border-color: var(--line); background: linear-gradient(105deg, var(--blue-light), transparent); }
.mechanic-label { margin-bottom: 5px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.safe .mechanic-label { color: var(--safe); }
.neutral .mechanic-label { color: var(--muted); }
.mechanic-label { display: flex; justify-content: space-between; gap: 12px; }
.summary-source { color: var(--muted); font-weight: 700; letter-spacing: 0; text-transform: none; }
.summary-source a { color: inherit; }
/* Multi-boss summaries put one "Name : text" line per boss. */
.mechanic p { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.mechanic .gallery { margin: 12px 0 0; }
.mechanic-tips { margin: 8px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.mechanic-tips li { margin: 3px 0; }
.mechanic .mechanic-tip { margin-top: 8px; }

/* Base stats (DofusDB) */
.stats { padding-top: 23px; border-top: 1px solid var(--line); }
.stats-table { display: grid; gap: 4px; overflow-x: auto; }
.stats-row { display: grid; grid-template-columns: minmax(90px, 1.4fr) repeat(5, minmax(46px, 1fr)) repeat(2, 34px) minmax(70px, 1fr); align-items: center; gap: 6px; min-width: 520px; font: 500 12px 'DM Mono', monospace; }
.stats-header { color: var(--muted); font: 800 9px Manrope; letter-spacing: .08em; text-transform: uppercase; }
.stats-row > span { text-align: center; }
.stats-row > span:first-child { text-align: left; }
.stats-name a { color: var(--muted); font: 800 11px Manrope; text-decoration: none; }
.stats-name a:hover { color: var(--gold); }
.el { color: var(--el-neutral); }
.el.earth { color: var(--el-earth); }
.el.fire { color: var(--el-fire); }
.el.water { color: var(--el-water); }
.el.air { color: var(--el-air); }
.stats-row:not(.stats-header) .el { padding: 3px 0; border-radius: 5px; background: color-mix(in srgb, currentColor 9%, transparent); }
.el.weak { outline: 2px solid currentColor; outline-offset: -2px; font-weight: 700; }
.el.light { outline: 1px solid currentColor; outline-offset: -1px; }
.el.negative { font-weight: 700; }

/* Guide sections */
.guide-section, .tips { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.guide-section > summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
.guide-section > summary::-webkit-details-marker { display: none; }
.guide-section > summary::after { content: '+'; color: var(--gold); font: 500 15px/1 'DM Mono', monospace; }
.guide-section[open] > summary::after { content: '–'; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 10px; }
.prose strong { color: var(--ink); }
.prose ul { margin: 4px 0 10px; padding-left: 18px; }
.prose li { display: list-item; margin: 2px 0; color: inherit; }
.prose li::before { content: none; }
.prose .subhead { margin-top: 16px; color: var(--ink); }
.prose a { color: var(--blue); }
.prose.clamp { max-height: 340px; overflow: hidden; mask-image: linear-gradient(#000 78%, transparent); }
/* Guide tables (vitality → confusion, damage grids): scroll sideways rather than squeeze. */
.table-wrap { max-width: 100%; margin: 6px 0 14px; overflow-x: auto; }
.table-wrap table { border-collapse: collapse; font-size: 12px; }
.table-wrap th, .table-wrap td { padding: 6px 9px; border: 1px solid var(--line); vertical-align: top; text-align: center; }
.table-wrap td ul { margin: 0; padding-left: 16px; text-align: left; }
.table-wrap th { color: var(--ink); background: var(--gold-light); font-weight: 800; }
.table-wrap img { display: block; max-width: min(100%, 240px); max-height: 180px; height: auto; margin: auto; cursor: zoom-in; }
.more { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--gold); cursor: pointer; font-size: 11px; font-weight: 800; }

.tips ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: tips; }
.tips li { display: flex; gap: 10px; color: var(--muted); }
.tips li::before { counter-increment: tips; content: counter(tips, decimal-leading-zero); flex: none; color: var(--gold); font: 10px/1.85 'DM Mono', monospace; }
.tips li > * { min-width: 0; }
.tips details > summary { color: var(--ink); cursor: pointer; list-style: none; }
.tips details > summary::-webkit-details-marker { display: none; }
.tips details > summary::after { content: ' +'; color: var(--gold); font: 500 11px 'DM Mono', monospace; }
.tips details[open] > summary::after { content: ' –'; }
.tips details .prose { margin-top: 6px; }

.gallery { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 6px 0 14px; }
.thumb-figure { width: calc(50% - 5px); margin: 0; }
.thumb-figure { text-align: center; }
.thumb-figure figcaption { margin-top: 4px; color: var(--muted); font-size: 11px; text-align: center; }
.thumb { display: inline-block; max-width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: zoom-in; }
/* Natural aspect ratio: schemas and placements are unreadable once cropped. */
.thumb img { display: block; width: auto; max-width: 100%; height: auto; max-height: 320px; object-fit: contain; transition: transform .2s ease; }
.thumb:hover img { transform: scale(1.03); }

.full-guide { display: flex; justify-content: space-between; align-items: center; margin-top: 31px; padding: 13px 15px; border-radius: 7px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
:root[data-theme="dark"] .full-guide { color: #12262b; }
.full-guide:hover { filter: brightness(1.1); }
.full-guide span { font-size: 20px; }
.credit { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.empty-detail { display: grid; place-items: center; color: var(--muted); text-align: center; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; padding: 24px; background: rgba(18, 22, 26, .88); }
.lightbox figure { grid-column: 2; margin: 0; text-align: center; }
.lightbox img { width: min(100%, 880px); max-height: calc(100vh - 110px); border-radius: 8px; background: #fff; object-fit: contain; }
.lightbox figcaption { margin-top: 10px; color: #e6e1d6; font-size: 12px; }
.lightbox button { border: 0; background: transparent; color: #f2ead9; cursor: pointer; }
.lightbox-nav { font-size: 44px; }
.lightbox-nav.prev { grid-column: 1; grid-row: 1; }
.lightbox-nav.next { grid-column: 3; grid-row: 1; }
.lightbox-close { position: absolute; top: 14px; right: 18px; font-size: 32px; }

/* Opens the Comte Harebourg simulator (src/simulator.js) while the Comte is shown or in the room. */
.simulator-tab { position: fixed; right: 28px; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 5px; padding: 10px 16px 9px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--ink); background: var(--panel); box-shadow: var(--shadow); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .04em; animation: tab-in .2s ease-out; }
.simulator-tab:hover { border-color: #e2c88f; background: var(--gold-light); }
.simulator-tab .pi { margin: -4px 0 -2px; font: 700 21px/1 Fraunces, Georgia, serif; }
@keyframes tab-in { from { transform: translateY(100%); } }

/* ---------- Footer ---------- */

footer { display: flex; justify-content: space-between; gap: 10px; padding: 20px 0 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer a { color: inherit; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); }
  .topbar { height: 70px; }
  .shortcut { display: none; }
  .tagline { display: none; }
  .search-wrap.docked { width: min(100% - 28px, 620px); }
  input { padding: 0 96px 0 48px; }
  .clear { right: 56px; }
  .topbar { justify-content: space-between; }
  .content { grid-template-columns: minmax(0, 1fr); }
  .results { min-height: 0; }
  .result-list { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 46vh; }
  .result { padding: 9px 7px; }
  .result.selected { padding-left: 7px; border-radius: 7px; }
  .result-index { display: none; }
  .result strong { font-size: 12px; }
  .nav-hint { display: none; }
  #detail-pane { scroll-margin-top: 12px; }
  .detail { padding: 27px 20px; }
  .detail-top { flex-wrap: wrap; }
  .thumb-figure { width: 100%; }
  footer { display: block; }
  footer span + span { display: none; }
}

@media (max-width: 430px) {
  .result-list { grid-template-columns: 1fr; }
  .header-actions { gap: 8px; }
  input { font-size: 14px; }
  .detail-head { gap: 12px; }
  .portrait { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
