/* In-game typefaces (from the client via the Data Explorer): Exocet Blizzard OT Medium = item/skill names, PT Serif = tooltip body */
@font-face { font-family: 'D4 Exocet'; src: url(/assets/fonts/d4-exocet-medium.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'D4 PT Serif'; src: url(/assets/fonts/d4-ptserif-regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'D4 PT Serif'; src: url(/assets/fonts/d4-ptserif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'D4 PT Serif'; src: url(/assets/fonts/d4-ptserif-bold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* Tooltips im Spiel-Look (Explorer-Umbau Stufe 3) — ported from the Data Explorer's itemtip.css / styles.css (S15 screenshots, measured at
   the game's 505 px panel). Everything is namespaced under .d4tt-chrome so the classic tooltip (tooltip.css, tooltip.php) stays untouched.
   Sizes inside the panel are container units (1cqw = panel width / 100): the game's proportions at any width. */
.item-tooltip:has(> .d4tt-chrome) { background: none; border: 0; box-shadow: none; max-width: none; min-width: 0; padding: 0; border-radius: 0; }
.d4tt-chrome { position: relative; width: 400px; max-width: min(100vw - 16px, 400px); box-sizing: border-box; container-type: inline-size;
  --d4tt-body: 'D4 PT Serif', 'PT Serif', Georgia, serif; --d4tt-head: 'D4 Exocet', 'OldFenris', serif;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.85)); }
.d4tt-content { position: relative; z-index: 3; padding: 6cqw 5cqw 5.5cqw 6.3cqw; font-family: var(--d4tt-body); font-size: 4.75cqw; line-height: 1.25; color: #b4aa9c;
  text-shadow: 0 0 2px rgba(0,0,0,.85), 1px 1px 1px rgba(0,0,0,.6); word-wrap: break-word; }
/* 9-slice layers: base window (corners 76 px × .5), rarity panel (128 × .6), ornate frame (143 × .5) */
.d4tt-9s { position: absolute; inset: 0; display: grid; grid-template-columns: var(--c) 1fr var(--c); grid-template-rows: var(--c) 1fr var(--c); pointer-events: none; z-index: 1; }
.d4tt-9s i { display: block; background-repeat: no-repeat; background-size: 100% 100%; }
.d4tt-9s-base { --c: 9.5cqw; }            /* 38 px at 400 */
.d4tt-9s-rarity { --c: 19.2cqw; z-index: 2; } /* 77 px at 400 */
.d4tt-9s-ornate { --c: 18cqw; z-index: 4; inset: -2.5cqw; }
/* The nine pieces of a layer must meet on whole pixels: the rarity panels are translucent (alpha ~35 %), so a hairline gap between two pieces
   shows the dark window below (black stripe) and any overlap doubles the tint (light stripe) — both seen on 27.09.2026 with the fractional
   cqw sizes (19.2cqw of the 476 px paragon card = 91.4 px). Corner sizes, the ornate overhang and a squeezed card width are rounded to whole
   pixels here; tooltip.js snapChrome() rounds the content-driven height — like the explorer's NineSlice (integer pieces + snapped rows). */
@supports (width: round(1.5px, 1px)) {
  .d4tt-9s-base { --c: round(9.5cqw, 1px); }
  .d4tt-9s-rarity { --c: round(19.2cqw, 1px); }
  .d4tt-9s-ornate { --c: round(18cqw, 1px); inset: calc(-1 * round(2.5cqw, 1px)); }
}
.d4tt-9s-base .d4tt-9s-center { background-size: 100% 100%; }
.d4tt-9s-rarity .d4tt-9s-center { background-size: 100% 100%; }
.d4tt-9s-ornate .d4tt-9s-center { background: none !important; }
/* header */
.d4tt .tt-head { position: relative; display: block; margin: 0; padding: 0; min-height: 12cqw; }
.d4tt .it-headtext { max-width: 62cqw; }
.d4tt .it-image { position: absolute; top: -3cqw; right: -2cqw; width: 26cqw; height: 36cqw; object-fit: contain; object-position: top center; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.d4tt .tt-title { font-family: var(--d4tt-head); font-size: 6.2cqw; line-height: 1.11; letter-spacing: -.05em; font-weight: 400; text-transform: uppercase; color: #e9e9e9;
  text-shadow: 0 0 1px #000, 1px 1px 1px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.6); hyphens: manual; }
.d4tt .tt-title.q-magic { color: #7b7cf5; } .d4tt .tt-title.q-rare { color: #eaec0a; } .d4tt .tt-title.q-legendary { color: #f78005; }
.d4tt .tt-title.q-unique, .d4tt .tt-title.q-mythic { color: #d9a879; } .d4tt .tt-title.q-set { color: #2ef20d; }
.d4tt .tt-sub { font-size: 4.75cqw; line-height: 1.38; margin-top: 1.6cqw; color: #c7c7c7; }
.d4tt .tt-sub.q-magic { color: #6969d2; } .d4tt .tt-sub.q-rare { color: #c8ca08; } .d4tt .tt-sub.q-legendary { color: #d46d05; }
.d4tt .tt-sub.q-unique, .d4tt .tt-sub.q-mythic { color: #ba8f67; } .d4tt .tt-sub.q-set { color: #27d10a; }
.d4tt .tt-ip { font-size: 4.75cqw; line-height: 1.38; color: #b4aa9c; }
/* dividers: header ornament (DividerArt) and the centre "<◇>" line, 654×19 art over the content width */
.d4tt .it-div { height: auto; width: calc(100% + 1.6cqw); aspect-ratio: 654 / 19; background: url(/assets/img/ui/tooltip/divider_head.webp) left center / 100% 100% no-repeat; margin: 1.8cqw 0 2.4cqw -1.6cqw; }
.d4tt .it-div-center { background-image: url(/assets/img/ui/tooltip/divider_center.webp); margin: 1.8cqw 0 2.2cqw -1.6cqw; }
.d4tt .it-div:not([style]) { /* fallback until the divider art is on the site: thin ornament line */ }
/* stat / power lines: bullet centred at 2.2 % of W, text at 6.5 % */
.d4tt .it-base, .d4tt .it-stats, .d4tt .it-powers { display: flex; flex-direction: column; margin: 0; }
.d4tt .stat-line { display: flex; align-items: flex-start; line-height: 1.25; margin: 0 0 1.05cqw; color: #b4aa9c; }
.d4tt .stat-text { flex: 1; min-width: 0; }
.d4tt .affix-glyph { flex: none; width: .39em; height: .39em; object-fit: contain; margin: calc((1.25em - .39em) / 2) calc(4.3cqw - .2em) 0 calc(2.2cqw - .2em); filter: brightness(.7); }
.d4tt .affix-glyph.ag-dot { border-radius: 50%; background: #797a74; }
.d4tt .ag-legendarystar { width: .95em; height: .95em; margin: calc((1.25em - .95em) / 2) calc(4.3cqw - .48em) 0 calc(2.2cqw - .48em); filter: none; }
.d4tt .ag-uniquestar, .d4tt .ag-mythicstar { width: .86em; height: .86em; margin: calc((1.25em - .86em) / 2) calc(4.3cqw - .43em) 0 calc(2.2cqw - .43em); filter: brightness(.74); }
.d4tt .ag-mythicstar { filter: none; }
.d4tt .power-line { color: #b4aa9c; }
.d4tt .stat-line.unknown .gt-value.unknown { color: #ba100d; }
/* game-text colours (sampled) */
.d4tt .gt { white-space: pre-wrap; }
.d4tt .gt-value { color: inherit; font-weight: 400; }
.d4tt .gt-mark, .d4tt .gt-mult { color: #808080; font-weight: 400; }
.d4tt .gt-pctmark { color: #8c8c8c; font-weight: 400; }   /* weapon-damage percentage behind the absolute value, like the game's advanced tooltip "126.756 [382%]" */
.d4tt .gt-c_number { color: #d9a962; } .d4tt .gt-c_random { color: #ababf6; } .d4tt .gt-c_important { color: #dcd9d3; }
.d4tt .gt-c_label, .d4tt .gt-c_gold { color: #b79e7a; } .d4tt .gt-c_gray { color: #686868; } .d4tt .gt-c_highlight { color: #bf6a2c; }
.d4tt .gt-c_quality { color: #8582f7; } .d4tt .gt-c_rune { color: #f3b985; } .d4tt .gt-c_RuneCondition, .d4tt .gt-c_runecondition { color: #ce9110; }
.d4tt .gt-c_RuneEffect, .d4tt .gt-c_runeeffect { color: #b140cb; } .d4tt .gt-c_set { color: #2ef30d; } .d4tt .gt-c_advanced { color: #808080; }
.d4tt .gt-c_red { color: #ba100d; } .d4tt .gt-c_green { color: #4fbf5a; } .d4tt .gt-c_white { color: #e9e9e9; } .d4tt .gt-c_resource { color: #7b7cf5; }
.d4tt .gt-c_unique { color: #d9a879; } .d4tt .gt-c_legendary { color: #f78005; } .d4tt .gt-c_mythic { color: #d9a879; } .d4tt .gt-c_keyword { color: #dcd9d3; }
.d4tt .gt-u { text-decoration: underline solid; text-underline-offset: .14em; text-decoration-thickness: 1px; color: #dcd9d3; }
.d4tt .gt-b { font-weight: 700; } .d4tt .gt-i { font-style: italic; }
.d4tt .gt-if, .d4tt .gt-else { display: inline; } .d4tt .gt-else::before, .d4tt .gt-else::after { content: none; }
.d4tt .gt-icon-img { height: .8em; width: auto; vertical-align: -.1em; margin: 0 .15em; }
.d4tt .gt-icon { color: #b79e7a; } .d4tt .gt-icon::before { content: '◆'; font-size: .6em; vertical-align: .1em; }
.d4tt .gt-icon[data-icon="bullet"]::before { content: '•'; } .d4tt .gt-icon[data-icon="arrow"]::before { content: '→'; }
/* sections below the stats */
.d4tt .tt-section, .d4tt .it-socket, .d4tt .it-set { margin-top: 2.4cqw; }
.d4tt .tt-label { color: #b79e7a; font-size: 4.2cqw; letter-spacing: .04em; margin-bottom: .8cqw; }
.d4tt .it-set-name, .d4tt .q-set { color: #2ef30d; }
.d4tt .it-flavor { margin-top: 2.6cqw; color: #8a7c68; font-size: 4.3cqw; line-height: 1.3; }
.d4tt .it-footer { margin-top: 2.6cqw; text-align: right; color: #b4aa9c; font-size: 4.4cqw; line-height: 1.35; }
.d4tt .it-class-icon { height: 1.2em; width: auto; vertical-align: middle; margin: 0 .2em; }
.d4tt .d4tt-extra { margin-top: 2.6cqw; padding-top: 2cqw; border-top: 1px solid rgba(183,158,122,.25); font-size: 4.2cqw; color: #9c8f7a; }
/* ---- skill tooltip (explorer PowerCard / game 211703, 102829): icon plate hanging over the top edge, centred name in the body face,
   "RANG x/15" banner on the section-header art, tag pills, full-width divider, description, "Nächster Rang", modifiers banner + list,
   right-aligned footer divider with damage type / weapon requirement; keyword boxes under the frame.
   Proportions of the game (explorer skilltree.css "gamewin", measured at native 1440p on 102829/211703): body 538 px = 100cqw, 1 px = .186cqw —
   text 22/30 px, title 32.5 px, banner 22.5 px (bar 37 px), tag pills 43 px / 23 px, icon plate 131 px at -70 px, content padding 0 27 26 31 px. */
.d4tt-chrome-skill { margin-top: 64px; }   /* room for the icon plate above the panel (mobile sheet clips overflow) */
/* the plate and the glyph medallion sit in front of the ornate frame (game 211703): lift the content layer above the frame layer */
.d4tt-chrome-skill .d4tt-content, .d4tt-chrome-generic:has(.d4tt-glyph) .d4tt-content { z-index: 5; }
.d4tt-chrome-skill .d4tt-content { padding: 0 5.02cqw 4.83cqw 5.76cqw; font-size: 4.09cqw; line-height: 1.364; }
.d4tt-skill { position: relative; }
.d4tt-skill .stt-plate { position: absolute; left: 50%; top: -13.01cqw; transform: translateX(-50%); width: 24.35cqw; height: 24.35cqw; z-index: 5; pointer-events: none; }
.d4tt-skill .skill-icon-wrap { display: block; width: 100%; height: 100%; background: url(/assets/img/ui/tooltip/skill_icon_frame.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 6px rgba(0,0,0,.7)); }
.d4tt-skill .stt-icon { display: block; width: 100%; height: 100%; object-fit: contain; padding: 23%; box-sizing: border-box; }
.d4tt-skill .stt-title { font-family: var(--d4tt-body); text-transform: none; letter-spacing: 0; text-align: center; color: #dcd7cd; font-size: 6.04cqw; line-height: 1.2; padding-top: 11.71cqw; overflow-wrap: anywhere; }
.d4tt .stt-banner { background: url(/assets/img/ui/tooltip/section_header.webp) center / 100% 100% no-repeat; text-align: center; text-transform: uppercase; letter-spacing: .06em; font-family: 'OldFenris', var(--d4tt-head); font-size: 4.45cqw; line-height: 1.2; padding: 1.2cqw 2.4cqw; margin: 1.6cqw -.5cqw 0; color: #e8e2d6; }
.d4tt-skill .stt-banner { font-size: 4.18cqw; line-height: 1.11; padding: 1.115cqw 2.23cqw; margin: 1.49cqw 0 0; }
.d4tt .stt-banner .gt-c_white { color: #f2ede3; } .d4tt .stt-banner .gt-c_magic { color: #7b7cf5; }
.d4tt .stt-tags { display: flex; flex-wrap: wrap; gap: 1.49cqw; margin: 2.42cqw 0 0; } .d4tt .stt-banner + .stt-tags { margin-top: 2.04cqw; }   /* 211703: pills 11 px under the rank bar */
.d4tt .stt-pill { display: inline-block; height: 7.99cqw; line-height: 7.99cqw; padding: 0 2.6cqw; font-size: 4.275cqw; color: #dac49f; background: #202020; box-shadow: inset 0 0 0 1px #383738; }
.d4tt .stt-pill.stt-cat { background: #012000; box-shadow: inset 0 0 0 1px #073a04; }
.d4tt .stt-divider { height: 3.53cqw; background: url(/assets/img/ui/tooltip/divider_skill_top.webp) center / 100% 100% no-repeat; }
.d4tt .stt-divider.top { margin: 1.49cqw -.74cqw .56cqw; }
.d4tt .stt-divider.foot { background-image: url(/assets/img/ui/tooltip/divider_skill_foot.webp); width: 52%; margin: .93cqw 0 -.56cqw auto; }
.d4tt-skill .stt-desc, .d4tt-skill .stt-next, .d4tt-skill .stt-mods { color: #b4aa9c; line-height: 1.364; }
.d4tt-skill .stt-desc { margin-top: .19cqw; }
.d4tt-skill .stt-desc .gt-c_number { color: #d9a962; } .d4tt-skill .gt-c_resource { color: #eaeb6d; } .d4tt-skill .gt-c_important { color: #efebe3; } .d4tt-skill .gt-c_label { color: #b79e7a; }
.d4tt-skill .stt-next { margin-top: 0; } .d4tt-skill .stt-next > div { display: block; }
.d4tt-skill .stt-next .gt-icon-bullet, .d4tt-skill .stt-desc .gt-icon-bullet { height: 1em; vertical-align: -.15em; margin: 0 .1em 0 0; } .d4tt-skill .gt-icon-arrow { height: .85em; vertical-align: -.08em; margin: 0 .15em; }
.d4tt-skill .stt-mods { list-style: none; padding: 0; margin: 1.2cqw 0 0; }
.d4tt-skill .stt-mods li { position: relative; padding-left: 5cqw; margin: 0; }
.d4tt-skill .stt-mods li::before { content: ''; position: absolute; left: 0; top: .18em; width: 1em; height: 1em; background: url(/assets/img/ui/fonticons/bullet.webp) center / contain no-repeat; }
.d4tt-skill .stt-modof { text-align: center; color: #c4bdb2; margin: 1cqw 0 0; } .d4tt-skill .stt-modrank { display: none; }   /* the planner allows one point per modifier; "Rank 1/3" misled (user decision 27.09., BRP-07) */
.d4tt-skill .stt-foot { text-align: right; color: #9c9c9c; line-height: 1.59; }
.d4tt-skill .stt-foot .stt-dmg .gt-icon-img { height: 1.2em; vertical-align: -.28em; margin-right: 1.6cqw; }
.d4tt-skill .stt-state { color: #ba100d; }
.d4tt-skill .gt-u { color: #dcd9d3; text-underline-offset: .18em; }
/* Warlock soul shard: "Grants the Summon … skill" line with the skill icon under the description */
.d4tt-skill .stt-grants { display: flex; align-items: center; gap: 2.4cqw; margin-top: 2.4cqw; color: #b4aa9c; line-height: 1.36; }
.d4tt-skill .stt-grant-icon { flex: none; width: 11cqw; height: 11cqw; object-fit: contain; }
/* seasonal power (explorer SeasonTooltip): square icon box with the shard frame, type line, "Max Rank" banner, acquisition text in italics */
.d4tt-season .skill-icon-wrap { background-size: 100% 100%; filter: drop-shadow(0 3px 6px rgba(0,0,0,.7)); }
.d4tt-season .stt-icon { padding: 16%; }
.d4tt-season .stt-sub { text-align: center; color: #e9e9e9; font-size: 4.35cqw; line-height: 1.2; margin-top: 2.4cqw; }
.d4tt-season .stt-flavor { margin-top: 1.25em; font-style: italic; color: #808080; font-size: 4.1cqw; line-height: 1.38; }
.d4tt-season .stt-req-season { margin-top: .9em; } .d4tt-season .stt-req-season .gt-c_red { color: #ba100d; }
.d4tt-season .stt-desc .gt-c_random { color: #ababf6; } .d4tt-season .stt-desc .gt-value { color: inherit; }
/* icon box as the explorer's SeasonTooltip (season.css .season-iconbox: 72 px on the 400 px panel, top edge 38 px above the panel, centred on the
   panel): dark box with Power_Frame 2714295658 as nine-slice, the power's inventory icon (shield + glyph in one image) at 12 % inset */
.d4tt-season .stt-seasonbox { top: -12.5cqw; left: calc(50% - .65cqw); width: 18cqw; height: 18cqw; box-sizing: border-box; background: #0e100f;
  border: 1.25cqw solid transparent; border-image: url(/assets/img/ui/tooltip/season_power_frame.webp) 18 fill / 1.25cqw stretch; }
.d4tt-season .stt-seasonbox-img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.d4tt-season .stt-seasonbox ~ .stt-title { padding-top: 8.6cqw; }
/* typography as the explorer's SeasonTooltip in game fonts (season.css, measured on its 400 px panel, 1cqw = 4 px): body PT Serif 15.3 px / 1.39,
   title and banner Old Fenris (the client's "Serif" font 1302, self-hosted in main.css), acquisition text PT Serif italic 14.5 px */
.d4tt-chrome-skill .d4tt-content:has(> .d4tt-season) { padding: 3cqw 6.5cqw 7cqw; font-size: 3.825cqw; line-height: 1.39; }
.d4tt-season .stt-seasonbox { left: 50%; }
.d4tt-season .stt-title { font-family: 'OldFenris', var(--d4tt-body); font-size: 5.375cqw; line-height: 1.15; letter-spacing: .01em; color: #dcd7cd; }
.d4tt-season .stt-sub { font-size: 3.825cqw; line-height: 1.2; margin-top: 2.45cqw; }
.d4tt-season .stt-banner { display: flex; align-items: center; justify-content: center; box-sizing: border-box; height: 7.875cqw; padding: 0 2.4cqw; margin: 1.5cqw -.25cqw 0;
  font-size: 4.125cqw; line-height: 1; letter-spacing: .03em; color: #dcd9d3; }
.d4tt-season .stt-desc { line-height: 1.39; color: #b4aa9c; margin-top: 0; }
.d4tt-season .stt-divider.top { height: 3.75cqw; margin: 1.6cqw -.8cqw .6cqw; }
.d4tt-season .gt-c_important { color: #dcd9d3; font-weight: 400; } .d4tt-season .gt-b { font-weight: 400; }
.d4tt-season .gt-u { color: #e4e2e0; text-decoration: underline solid; text-underline-offset: .2em; }
.d4tt-season .stt-flavor { font-size: 3.625cqw; line-height: 1.38; }
/* ---- war plan perk (explorer warplans.css .wpt, game 212004/212009), measured on the explorer card: body 546 px = 100cqw, 1 px = .183cqw —
   round header ring 100 px (18.32cqw) with its centre on the frame's top edge (-7.33cqw), perk icon in its 82 px opening; title Old Fenris 29 px at 12.09cqw;
   "<◇>" divider 14 px, 18 px under the title; body 22 px / 1.4, padding 30 px each side; paragraphs 1.4em apart; 33 px under the last line */
.d4tt-chrome-skill:has(.d4tt-warplan) { margin-top: 44px; }
.d4tt-chrome-skill .d4tt-content:has(> .d4tt-warplan) { padding: 0 5.49cqw 6.04cqw; font-size: 4.03cqw; line-height: 1.4; color: #b4aa9c; }
.d4tt-warplan { position: relative; display: flow-root; }   /* flow-root: the title's top margin must not collapse through the root (it moved the ring down with it) */
.d4tt-warplan .wpt-head { position: absolute; left: 50%; top: -7.33cqw; width: 18.32cqw; height: 18.32cqw; transform: translateX(-50%); background: center / 100% 100% no-repeat; z-index: 5; pointer-events: none; }
.d4tt-warplan .wpt-head span { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; }
.d4tt-warplan .wpt-head img { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; object-fit: contain; }
.d4tt-warplan .wpt-title { text-align: center; font-family: 'OldFenris', var(--d4tt-body); font-size: 5.31cqw; line-height: 1.2; color: #dcd7cd; margin: 12.09cqw 0 1.47cqw; }
.d4tt-warplan .wpt-divider { height: 2.56cqw; margin: 3.3cqw 0 2.56cqw; background: center / 100% 100% no-repeat; }
.d4tt-warplan .wpt-desc { color: #b4aa9c; } .d4tt-warplan .wpt-desc + .wpt-desc { margin-top: 1.4em; }
.d4tt-warplan .gt-c_important { color: #dcd9d3; } .d4tt-warplan .gt-c_number { color: #d9a962; font-weight: 400; } .d4tt-warplan .gt-value { color: inherit; }
.d4tt-warplan .gt-u { color: #f4f1ea; font-weight: 700; text-decoration: underline; text-underline-offset: .14em; }
.d4tt-warplan .wpt-season .gt-icon-img { height: 1.35em; vertical-align: -.3em; margin-right: .27em; }
.d4tt-warplan .wpt-excl .gt-c_warning { color: #bf6a2c; }   /* rendered colour in the explorer (skill-look c_warning wins over .wpt-excl's red) */
/* keyword boxes: body wide, 1 px under the frame (ours reaches 2.5cqw under the panel), 5 px apart, padding 14/20 px, grey 22 px / 1.37 */
.d4tt-chrome:has(.d4tt-warplan) + .d4tt-below { padding: 0; }
.d4tt-chrome:has(.d4tt-warplan) + .d4tt-below .stt-keywords { gap: .92cqw; margin: 2.68cqw 0 0; font-size: 4.03cqw; line-height: 1.37; }
.d4tt-chrome:has(.d4tt-warplan) + .d4tt-below .stt-keyword { padding: 2.56cqw 3.66cqw; background: rgb(18, 19, 19); border: 1px solid rgb(35, 36, 36); border-width: 1px 2px; border-bottom-color: rgb(30, 31, 31);
  box-shadow: inset 0 0 0 1px rgb(24, 25, 25); color: #7b7b7b; }
.d4tt-chrome:has(.d4tt-warplan) + .d4tt-below .stt-keyword .gt-c_important, .d4tt-chrome:has(.d4tt-warplan) + .d4tt-below .stt-keyword .gt-u { color: #a09d99; font-weight: 700; }
.d4tt-chrome:has(.d4tt-warplan) + .d4tt-below .stt-keyword .gt-u { text-decoration: underline; text-underline-offset: .14em; }
/* keyword boxes under the frame */
.d4tt-below { width: 400px; max-width: min(100vw - 16px, 400px); container-type: inline-size; box-sizing: border-box; padding: 0; }   /* 1cqw = body width / 100 as on the card */
/* game (gamewin .stt-keywords): body width, 8 px under the frame = 20 px under the body (3.72cqw), 13 px apart, padding 14/18 px, text 22/30 px */
.d4tt-below .stt-keywords { display: flex; flex-direction: column; gap: 2.42cqw; margin-top: 3.72cqw; font-family: 'D4 PT Serif', 'PT Serif', Georgia, serif; font-size: 4.09cqw; line-height: 1.364; }
.d4tt-below .stt-keyword { background: linear-gradient(#1b1a18, #121110); border: 1px solid #34322f; padding: 2.6cqw 3.35cqw; color: #9b958c; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.d4tt-below .stt-keyword .gt-u { color: #d3cdc3; font-weight: 700; text-decoration: underline solid; text-underline-offset: .18em; }
.d4tt-below .stt-keyword .gt-c_important { color: #f2ede3; } .d4tt-below .stt-keyword .gt-value { color: inherit; }
.d4tt-below .stt-keyword .gt-b { font-weight: 700; }
/* inline game icons in the keyword boxes: height from the markup scale as in the explorer (GameText: scale × .55em, {icon:X, 2.5} -> 1.375em; season.css .season-kw) */
.d4tt-below .gt-icon-img { height: var(--gt-h, 1em); width: auto; vertical-align: -.38em; margin: 0 1px; }
/* season keyword boxes (explorer .season-kw): flat #121313 blocks 6 px wider than the panel on each side, 5 px apart, grey 15.3 px text */
.d4tt-chrome:has(.d4tt-season) + .d4tt-below { padding: 0; }   /* 1cqw = 4 px as on the panel */
.d4tt-chrome:has(.d4tt-season) + .d4tt-below .stt-keywords { gap: 1.25cqw; margin: 3.75cqw -1.5cqw 0; font-size: 3.825cqw; line-height: 1.39; }   /* 5 px below the ornate frame (10 px under the panel) */
.d4tt-chrome:has(.d4tt-season) + .d4tt-below .stt-keyword { background: #121313; border: 0; padding: 3cqw 4cqw 3.25cqw; color: #7b7b7b; box-shadow: inset 0 1px 0 #232523, 0 0 0 1px rgba(0,0,0,.6); }
.d4tt-chrome:has(.d4tt-season) + .d4tt-below .stt-keyword .gt-u { text-underline-offset: .2em; }
/* ---- aspect (Codex of Power card, item chrome with the legendary panel) */
.d4tt-chrome-item .d4tt-content .d4tt-item.d4tt-aspect .tt-head.it-head { display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 3cqw; align-items: flex-start; min-height: 0; }
.d4tt-chrome-item .d4tt-content .d4tt-item.d4tt-aspect .tt-head .it-image { position: static; width: 21cqw; height: 21cqw; flex: none; filter: none; margin: -1.5cqw -2cqw 0 0; object-fit: contain; }
.d4tt-chrome-item .d4tt-content .d4tt-aspect .it-headtext { max-width: none; flex: 1; min-width: 0; }
.d4tt-chrome-item .d4tt-content .d4tt-aspect .it-types { margin-top: 2cqw; color: #b9b0a2; } .d4tt-aspect .it-types .gt-c_white { color: #e9e9e9; }
.d4tt-chrome-item .d4tt-content .d4tt-aspect .it-unlock { margin-top: 1.6cqw; color: #b9b0a2; line-height: 1.32; } .d4tt-aspect .it-unlock + .it-unlock { margin-top: 2.6cqw; }
.d4tt .gt-c_number_req { color: #b9b0a2; } .d4tt-aspect .gt-icon-img { height: 1.1em; vertical-align: -.2em; }
/* ---- paragon glyph (explorer GlyphCard): medallion on the top edge, rarity line, name, level, three-part divider, radius/bonus block */
.d4tt-chrome-generic:has(.d4tt-glyph) { margin-top: 44px; }
/* paragon cards (glyphs, nodes, glyph sockets) at the explorer's size and typography (paragon.css .paragon-look, measured on its 476 px card):
   body 15 px = 3.15cqw, rarity line 16.5 px, title 19 px in Old Fenris (the client's "Serif" font), level/next-radius lines 14 px */
.d4tt-chrome-generic:has(.d4tt-glyph) { width: 476px; max-width: min(100vw - 16px, 476px); }
.d4tt-chrome-generic:has(.d4tt-glyph) .d4tt-content { padding-top: 5cqw; font-size: 3.15cqw; line-height: 1.3; color: #dcd9d3; }
.d4tt-glyph { position: relative; display: flow-root; }   /* flow-root: the type line's top margin must not collapse through the root (it moved the medallion down with it) */
/* medallion on the frame's top edge, measured on the explorer card (.ptt-medal-wrap): 14.29% of the card width, top 7.56% above the chrome;
   root top = chrome + 5cqw padding → -12.56cqw */
.d4tt-glyph .ptt-medal { position: absolute; left: 50%; top: -12.56cqw; transform: translateX(-50%); width: 14.29cqw; height: 14.29cqw; z-index: 5; pointer-events: none; }
.d4tt-glyph .ptt-medal img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
/* glyph coin art fills ≈ 59 % of its 135 px frame: drawn at 110 % of the medallion the coin covers ≈ 65 % of the ring like the game */
.d4tt-glyph .ptt-medal .ptt-medal-coin { inset: -5%; width: 110%; height: 110%; object-fit: contain; }
.d4tt-glyph .ptt-medal .ptt-medal-sprite.sp-socket { inset: 0; }
/* node medallion (explorer Medallion): the node's board sprite in its state over the ring (legendary ×1.26, rare ×1.15, gate ×1, starter ×.9),
   the symbol as the state's colour swatch masked by the symbol shape (NodeSymbol), ≈ 50 % of the medallion (gate portcullis ≈ 42 %) */
.d4tt-glyph .ptt-medal .ptt-medal-sprite { inset: 0; width: 100%; height: 100%; }
.d4tt-glyph .ptt-medal .ptt-medal-sprite.sp-legendary { inset: -13%; width: 126%; height: 126%; }
.d4tt-glyph .ptt-medal .ptt-medal-sprite.sp-rare { inset: -7.5%; width: 115%; height: 115%; }
.d4tt-glyph .ptt-medal .ptt-medal-sprite.sp-starter { inset: 5%; width: 90%; height: 90%; }
.d4tt-glyph .ptt-medal .ptt-medal-symbol { position: absolute; inset: 25%; width: 50%; height: 50%; display: block; background-size: 100% 100%; background-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.d4tt-glyph .ptt-medal .ptt-medal-symbol.sym-gate { inset: 29%; width: 42%; height: 42%; }
/* glyph socket card: equipped ring (≈ 95 %) under the coin, the socketed glyph's block with its banner, green summary above it */
.d4tt-glyph .ptt-medal .ptt-medal-eqring { inset: 2.5%; width: 95%; height: 95%; }
.d4tt-socket .ptt-glyph { margin-top: 2.4cqw; }
.d4tt-socket .ptt-glyph .stt-banner { margin: 1.2cqw -2.4cqw 1.2cqw; padding: 1.2cqw 2.4cqw; font-size: 3.57cqw; color: #dcd9d3; text-transform: none; letter-spacing: .02em; }
.d4tt-socket .ptt-glyph .ptt-title { margin: .4cqw 0 1.2cqw; }
.d4tt-node .ptt-glyph-summary { color: #2ef30d; margin: .6cqw 0 1.2cqw; line-height: 1.62; } .d4tt-node .ptt-glyph-summary .gt-c_number { color: #d9a962; }
.d4tt-node .ptt-sum-line { padding-left: 4.6cqw; text-indent: -4.6cqw; } .d4tt-node .ptt-sum-line .gt-icon-bullet { height: .9em; width: auto; vertical-align: -.05em; margin-right: .2em; }
.d4tt-node .ptt-socket-hint { color: #b4aa9c; text-align: right; }
/* node card (tooltip.js _renderNodeCard) */
.d4tt-node .ptt-attrs { line-height: 1.62; color: #dcd9d3; margin-top: .4cqw; }
/* stat values keep the line's colour (explorer attrLabelText: plain text) — also inside the dimmed or active bonus line */
.d4tt-node .ptt-attr .gt-c_number, .d4tt-node .ptt-bonus .gt-c_bonusoff .gt-c_number, .d4tt-node .ptt-bonus .gt-c_bonuson .gt-c_number { color: inherit; }
.d4tt-node .ptt-attr { padding-left: 4.6cqw; text-indent: -4.6cqw; }
.d4tt-node .ptt-attr .gt-icon-bullet, .d4tt-node .ptt-req .gt-icon-bullet { height: .9em; width: auto; vertical-align: -.05em; margin: 0 .2em 0 0; }
.d4tt-node .ptt-desc { margin-top: 1.2cqw; }
.d4tt-node .ptt-bonus { margin-top: .85cqw; line-height: 1.55; } .d4tt-node .gt-c_bonusoff, .d4tt-node .gt-c_bonusoff .gt-c_important { color: #686868; } .d4tt-node .gt-c_bonuson { color: #dcd9d3; }
.d4tt-node .ptt-foot-divider { display: flex; height: 3.2cqw; width: calc(50% + 2.4cqw); margin: 6cqw -2.4cqw .8cqw auto; }
.d4tt-node .ptt-foot-divider > i { display: block; height: 100%; background: url(/assets/img/ui/tooltip/divider_skill_foot.webp) no-repeat; }
.d4tt-node .ptt-foot-divider > .c { flex: none; width: 4.7cqw; background-size: 84cqw 100%; background-position: -41cqw 0; }
.d4tt-node .ptt-foot-divider > .r { flex: 1; background-size: 220.2% 100%; background-position: right center; }
.d4tt-node .ptt-foot { text-align: right; } .d4tt-node .gt-c_red { color: #ba100d; } .d4tt-node .gt-c_green { color: #2ef30d; }
.d4tt-node .ptt-gatedir { color: #9a948a; font-size: .85em; }
.d4tt-glyph .ptt-type-gap { height: 0; } .d4tt-glyph .ptt-type-gap + .ptt-title { margin-top: 3.2cqw; }
.d4tt-glyph .ptt-desc { color: #d7d5cf; line-height: 1.45; } .d4tt-glyph .ptt-desc + .ptt-desc { margin-top: 1.2cqw; }
.d4tt-skill .stt-season { margin-top: 1.3em; } .d4tt-skill .stt-season .gt-icon-img { height: 1.2em; vertical-align: -.25em; margin-right: .2em; }
.d4tt-glyph .ptt-type { text-align: center; font-size: 3.47cqw; line-height: 1.2; margin-top: 3.8cqw; }
.d4tt-glyph .gt-c_rare { color: #eaec0a; } .d4tt-glyph .gt-c_magic { color: #7b7cf5; } .d4tt-glyph .gt-c_legendary { color: #f88005; }
.d4tt-glyph .ptt-title { text-align: center; color: #dcd7cd; font-size: 3.99cqw; line-height: 1.15; margin-top: 1.68cqw; font-family: 'OldFenris', var(--d4tt-body); }
.d4tt-glyph .ptt-level { text-align: center; color: #9a948a; font-size: 2.94cqw; line-height: 1.3; margin-top: .42cqw; }
.d4tt-glyph .ptt-divider { display: flex; height: 3.2cqw; margin: 2.8cqw -2.4cqw 2.4cqw; }
.d4tt-node .ptt-title + .ptt-divider { margin-top: 2cqw; }   /* nodes: divider right under the title (no level line) — explorer 26.8% to the first stat */
.d4tt-glyph .ptt-divider > i { display: block; height: 100%; background: url(/assets/img/ui/tooltip/divider_skill_top.webp) no-repeat; }
.d4tt-glyph .ptt-divider > .l { flex: 1; background-size: 219.46% 100%; background-position: left center; }
.d4tt-glyph .ptt-divider > .c { flex: none; width: 7.6cqw; background-size: 84cqw 100%; background-position: center; }
.d4tt-glyph .ptt-divider > .r { flex: 1; background-size: 220.2% 100%; background-position: right center; }
.d4tt-glyph .ptt-glyph { color: #b4aa9c; }
.d4tt-glyph .ptt-size { color: #dcd9d3; } .d4tt-glyph .gt-c_label { color: #b79e7a; } .d4tt-glyph .gt-c_yellow { color: #e9ea5d; } .d4tt-glyph .gt-c_number { color: #d9a962; } .d4tt-glyph .gt-c_important { color: #f2ede3; }
.d4tt-glyph .ptt-glyph-next { color: #8d877d; font-size: 2.94cqw; line-height: 1.55; }
.d4tt-glyph .ptt-glyph-lines { line-height: 1.55; }
.d4tt-glyph .ptt-glyph-lines { margin: 1cqw 0 1.2cqw; }
.d4tt-glyph .ptt-line, .d4tt-glyph .ptt-req { padding-left: 4.6cqw; text-indent: -4.6cqw; margin: .5cqw 0; }
.d4tt-glyph .ptt-line .gt-icon-bullet, .d4tt-glyph .ptt-req .gt-icon-bullet { height: .9em; width: auto; vertical-align: -.05em; margin: 0 .2em 0 0; }
.d4tt-glyph .ptt-label { margin-top: 1.6cqw; }
.d4tt-glyph .ptt-req { color: #b4aa9c; } .d4tt-glyph .gt-c_lightgray { color: #9a948a; }
.d4tt-glyph .ptt-glyph-lines.legendary { color: #f28716; } .d4tt-glyph .ptt-glyph-lines.legendary .gt-c_number { color: inherit; }
.d4tt-glyph .ptt-glyph-leg.off, .d4tt-glyph .ptt-glyph-leg.off .ptt-glyph-lines.legendary, .d4tt-glyph .ptt-glyph-leg.off .gt-c_number { color: #686868; } .d4tt-glyph .ptt-glyph-leg.off .gt-c_label { color: #7d7466; }
.d4tt-glyph .gt-mark { color: #808080; }
@media (max-width: 768px) {
    /* the 9-slice pieces reach 1 px past the card (left -1 … right 376 in a 375 box): no sideways scroll; the × gets a strip of its own
       above the frame instead of covering its corner ornament (site analysis BRD-19) */
    .item-tooltip--mobile-top:has(> .d4tt-chrome) { padding: 38px 8px 8px; overflow-x: hidden; background: rgba(8, 8, 12, .96); box-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
    .item-tooltip--mobile-top > .d4tt-chrome { margin: 0 auto; }
}
/* planner selection: greater-affix / masterwork / tempering / transfigure bullets (sizes from the explorer's measurements) */
.d4tt .ag-AttributeBullet_GreaterAffix { width: .69em; height: .69em; margin: calc((1.25em - .69em) / 2) calc(4.3cqw - .35em) 0 calc(2.2cqw - .35em); filter: none; }
.d4tt .ag-AttributeBullet_Masterworking_Max { width: .79em; height: .79em; margin: calc((1.25em - .79em) / 2) calc(4.3cqw - .4em) 0 calc(2.2cqw - .4em); filter: none; }
.d4tt .ag-AttributeBullet_Masterworking_and_GreaterAffix, .d4tt .ag-AttributeBullet_Tempering_and_GreaterAffix { width: .88em; height: .88em; margin: calc((1.25em - .88em) / 2) calc(4.3cqw - .44em) 0 calc(2.2cqw - .44em); filter: none; }
.d4tt [class*="ag-TemperAttribute_"], .d4tt .ag-AttributeBullet_AffixTransfigured, .d4tt .ag-AttributeBullet_AffixSanctified, .d4tt .ag-Transfiguration { width: .88em; height: .88em; margin: calc((1.25em - .88em) / 2) calc(4.3cqw - .44em) 0 calc(2.2cqw - .44em); filter: none; }
.d4tt .stat-line.d4tt-ga .stat-text { color: #dcd9d3; }
.d4tt .d4tt-upgrade { margin-top: 2.4cqw; padding-top: 1.6cqw; border-top: 1px solid rgba(183,158,122,.25); }
.d4tt .d4tt-upgrade .tt-label { color: #d9a962; }

/* ---- item tooltip: the explorer's itemtip.css + itemother.css (game look) with the selector prefix rewritten to the site chrome
   (.d4tt-chrome-item .d4tt-content; .nongear = materials/gems/runes/keys …). Bullet sizes are keyed on .affix-glyph.ag-<name>. Generated by the
   port script from _explorer-src/web-src/client/src — edit there, not here. */
.d4tt-tint, .d4tt-glow { position: absolute; inset: 6px; pointer-events: none; }
.d4tt-tint { z-index: 1; } .d4tt-glow { z-index: 2; }
.d4tt-chrome-unique .d4tt-tint { background: linear-gradient(180deg, rgba(120,92,58,.55), rgba(84,64,40,.5) 40%, rgba(58,44,28,.55)); }
.d4tt-chrome-mythic .d4tt-tint { background: radial-gradient(ellipse at 50% 0%, rgba(150,80,220,.45), rgba(70,30,120,.35) 45%, rgba(30,12,50,.55)); opacity: .8; }
.d4tt-chrome-legendary .d4tt-tint { background: linear-gradient(180deg, rgba(90,30,10,.25), rgba(0,0,0,0) 30%); }
.d4tt-chrome-magic .d4tt-tint { background: linear-gradient(180deg, rgba(30,40,110,.3), rgba(0,0,0,0) 30%); }
.d4tt-chrome-rare .d4tt-tint { background: linear-gradient(180deg, rgba(110,90,10,.22), rgba(0,0,0,0) 30%); }
.d4tt-chrome-item .d4tt-content .affix-glyph { flex: none; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-dot { display: inline-block; width: .39em; height: .39em; border-radius: 50%; background: #797a74; }
.d4tt-chrome-item .d4tt-content .stt-divider { display: block; }
.d4tt-chrome-item .d4tt-content img { display: inline-block; }
/* Item tooltip in the game look (S15 screenshots 2026-09-18 2106–2112, measured at the game's panel width W = 505 px, see docs/DATA.md
   "Item-Tooltip im Spiel-Look"). The panel has a fixed width (400 px here); every size inside is a share of W via container units (1cqw = W/100),
   so the proportions stay the game's at any width. Everything is scoped to the item chrome in the game look; the plain look is unchanged.
   Selector prefix .d4tt-chrome-item .d4tt-content — this file is bundled before styles.css, the prefix outranks it. */



/* plain look (and the base for the game look): small, unstyled versions of the new blocks */
.d4tt-x-unused2 { height: 1px; margin: 8px 0; }
.d4tt-chrome-item .d4tt-content .it-title-ga, .d4tt-chrome-item .d4tt-content .it-title-set { height: .9em; width: auto; vertical-align: -.1em; margin-left: .3em; }
.d4tt-chrome-item .d4tt-content .it-tree { margin: 0 0 4px 6px; } .it-tree-row { display: flex; align-items: center; gap: 4px; } .it-tree-bullet { width: 1em; height: 1em; flex: none; }
.d4tt-chrome-item .d4tt-content .it-socket-row { align-items: center; } .it-sock { position: relative; flex: none; width: 1.5em; height: 1.5em; }
.d4tt-chrome-item .d4tt-content .it-sock-ring, .d4tt-chrome-item .d4tt-content .it-rw-link { position: absolute; inset: 0; width: 100%; height: 100%; } .it-sock-gem { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; object-fit: contain; }
.d4tt-chrome-item .d4tt-content .it-runeword { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; } .it-rw-text { flex: 1; min-width: 0; }
.d4tt-chrome-item .d4tt-content .it-rw-icons { position: relative; flex: none; width: 24px; height: 54px; } .it-rw-link { z-index: 1; }
.d4tt-chrome-item .d4tt-content .it-rw-disc { position: absolute; left: 11%; width: 78%; height: 18.7px; border-radius: 50%; object-fit: cover; } .it-rw-disc.top { top: 2px; } .it-rw-disc.bottom { top: 33px; }
.d4tt-chrome-item .d4tt-content .it-set-piece { display: flex; align-items: center; gap: 4px; } .it-set-bullet { width: 1em; height: 1em; flex: none; } .it-set-glyph { height: 1.1em; width: auto; }
.d4tt-chrome-item .d4tt-content .it-class-icon { height: 1.2em; width: auto; vertical-align: middle; margin: 0 .2em; }
.d4tt-chrome-item .d4tt-content .it-seal-mark { flex: none; }
.d4tt-chrome-item .d4tt-content .gt-mult { color: #808080; font-weight: 400; }   /* "[x]" / "[+]" written as text after a value (GameText) */

/* body: PT Serif 24 px at 505 (engine Style_AttributeText 18 × 1.33), text #b4aa9c, soft dark halo on all text */
.d4tt-chrome-item .d4tt-content { font-family: var(--d4tt-body); font-size: 4.75cqw; line-height: 1.25; color: #b4aa9c;
  text-shadow: 0 0 2px rgba(0,0,0,.85), 1px 1px 1px rgba(0,0,0,.6); }

/* header: title column 62 % of W (the image takes the rest), image drawn over the top-right frame */
/* position: static as in the explorer (itemtip.css .tt-head.it-head is not positioned): the item image is placed from the top of the content box,
   not from the head 6cqw lower — otherwise every image sat 24 px too low and the charms' 120×180 art (charm centred, 33 px empty on top) reached into the first lines */
.d4tt-chrome-item .d4tt-content .tt-head.it-head { position: static; display: block; margin: 0; padding: 0; background: none; }
.d4tt-chrome-item .d4tt-content .it-headtext { max-width: 62cqw; }
.d4tt-chrome-item .d4tt-content .tt-head .it-image { position: absolute; top: .8cqw; right: 2cqw; width: 23.8cqw; height: 35.6cqw; margin: 0; border: 0;
  object-fit: contain; object-position: top center; z-index: 2; pointer-events: none; }
/* the 120×180 inventory images are drawn at their native size at W = 505 (Tyrael, Stealth, Leoric); square seal images at ≈ 140 px */
.d4tt-chrome-item .d4tt-content .tt-head .it-image.square { top: 1cqw; right: 1cqw; width: 27.7cqw; height: 27.7cqw; }
/* title: ExocetMedium caps, cap height 19 px and letter pitch ≈ 18.5 px at 505 (measured on "BERÚ"), lines 35 px apart */
.d4tt-chrome-item .d4tt-content .tt-title { font-family: var(--d4tt-head); font-size: 6.2cqw; line-height: 1.11; letter-spacing: -.05em; font-weight: 400;
  text-transform: uppercase; text-shadow: 0 0 1px #000, 1px 1px 1px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.6);
  /* long German compounds break only at soft hyphens: the game's {d} marks ("Archonpanzer-handschuhe") and the planner's break before the type word */
  hyphens: manual; }
/* a single word wider than the title column runs on over the image as in the explorer (itemtip.css has no break-word; .d4tt-content does) */
.d4tt-chrome-item .d4tt-content .it-head .tt-title { overflow-wrap: normal; word-wrap: normal; }
.d4tt-chrome-item .d4tt-content .tt-title.q-normal { color: #e9e9e9; }
.d4tt-chrome-item .d4tt-content .tt-title.q-magic { color: #7b7cf5; }
.d4tt-chrome-item .d4tt-content .tt-title.q-rare { color: #eaec0a; }
.d4tt-chrome-item .d4tt-content .tt-title.q-legendary { color: #f78005; }
.d4tt-chrome-item .d4tt-content .tt-title.q-unique, .d4tt-chrome-item .d4tt-content .tt-title.q-mythic { color: #d9a879; }
.d4tt-chrome-item .d4tt-content .tt-title.q-set { color: #2ef20d; }
.d4tt-chrome-item .d4tt-content .it-title-ga { height: .8em; width: .8em; vertical-align: -.02em; margin-left: .3em; }
.d4tt-chrome-item .d4tt-content .it-title-set { height: 1.1em; width: auto; vertical-align: -.2em; margin-left: .3em; }
.d4tt-chrome-item .d4tt-content .tt-sub { font-family: var(--d4tt-body); font-size: 4.75cqw; line-height: 1.38; margin-top: 1.6cqw; text-transform: none; letter-spacing: 0; }
.d4tt-chrome-item .d4tt-content .tt-sub.q-normal { color: #c7c7c7; }
.d4tt-chrome-item .d4tt-content .tt-sub.q-magic { color: #6969d2; }
.d4tt-chrome-item .d4tt-content .tt-sub.q-rare { color: #c8ca08; }
.d4tt-chrome-item .d4tt-content .tt-sub.q-legendary { color: #d46d05; }
.d4tt-chrome-item .d4tt-content .tt-sub.q-unique, .d4tt-chrome-item .d4tt-content .tt-sub.q-mythic { color: #ba8f67; }
.d4tt-chrome-item .d4tt-content .tt-sub.q-set { color: #27d10a; }
.d4tt-chrome-item .d4tt-content .tt-ip { font-family: var(--d4tt-body); font-size: 4.75cqw; line-height: 1.38; margin: 0; color: #b4aa9c; }
.d4tt-chrome-item .d4tt-content .it-armory { color: #e9e9e9; }
.d4tt-chrome-item .d4tt-content .it-armory .gt-icon-img { height: .82em !important; vertical-align: -.1em; margin-right: .3em; }
.d4tt-chrome-item .d4tt-content .it-quality .gt-icon-img { height: .8em !important; vertical-align: -.08em; }
/* quality line: the brackets around "(◆ +25)" are outside {c_quality} and grey in-game (sampled #7f7f7f); number, icon and "+25" stay #8582f7 */
.d4tt-chrome-item .d4tt-content .it-quality { color: #808080; }

/* dividers: header = DividerArt (from the content edge, ornament at 50 %), centre = the symmetric "<◇>" line; 654×19 art over the content width */
.d4tt-chrome-item .d4tt-content .stt-divider.it-div-head, .d4tt-chrome-item .d4tt-content .stt-divider.it-div-center {
  height: auto; width: calc(100% + 1.6cqw); aspect-ratio: 654 / 19; background-position: left center; background-size: 100% 100%; background-repeat: no-repeat; margin: 1.8cqw 0 2.4cqw -1.6cqw; }
.d4tt-chrome-item .d4tt-content .stt-divider.it-div-center { margin: 1.8cqw 0 2.2cqw -1.6cqw; }

/* base block: rating lines 27.8 px at 505 (ItemArmorText / ItemAttackText 21), number and label one colour */
.d4tt-chrome-item .d4tt-content .it-base { display: flex; flex-direction: column; gap: 0; }
.d4tt-chrome-item .d4tt-content .it-desc { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .it-rating { font-size: 5.5cqw; line-height: 1.26; margin: 0; color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .it-tree { position: relative; margin: 0 0 0 3.6cqw; padding: 0; border: 0; font-size: 4.75cqw; line-height: 1.43; color: #b4aa9c; }
.d4tt-chrome-item .d4tt-content .it-tree::before { content: ''; position: absolute; left: 0; top: -.05em; bottom: .7em; width: 2px; background: #77736a; }
.d4tt-chrome-item .d4tt-content .it-tree-row { display: flex; align-items: center; gap: 0; }
.d4tt-chrome-item .d4tt-content .it-tree-bullet { flex: none; width: 1.15em; height: 1.15em; margin: 0 calc(5.7cqw - 1.15em) 0 -.08em; object-fit: fill; }

/* stat and power lines: bullet centred at 2.2 % of W, text at 6.5 %; wrapped lines align with the text */
.d4tt-chrome-item .d4tt-content .it-stats, .d4tt-chrome-item .d4tt-content .it-powers { display: flex; flex-direction: column; gap: 0; margin: 0; }
.d4tt-chrome-item .d4tt-content .stat-line { display: flex; gap: 0; align-items: flex-start; line-height: 1.25; margin: 0 0 1.05cqw; color: #b4aa9c; }
.d4tt-chrome-item .d4tt-content .stat-line > .affix-glyph { flex: none; position: static; object-fit: contain;
  margin: calc((1.25em - var(--gh, .44em)) / 2) calc(4.3cqw - var(--gh, .44em) / 2) 0 calc(2.2cqw - var(--gh, .44em) / 2) !important; }
/* bullet sizes at W = 505 (visible glyph): diamond ≈ .38 em, greater-affix burst ≈ .62 em, masterwork burst ≈ .78 em, legendary star ≈ .52 em (the art
   fills ≈ 55 % of its frame), unique sparkle ≈ .67 em, temper icons ≈ .85 em, reroll arrows ≈ .55 em */
/* plain diamond ≈ 9 px wide at W = 505 (4× zoom on Leoric 211029 and the crossbow 211128) = .39 em of the 24 px body text */
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet { width: .39em !important; height: .39em !important; --gh: .39em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_GreaterAffix { width: .69em !important; height: .69em !important; --gh: .69em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_Masterworking_Max { width: .79em !important; height: .79em !important; --gh: .79em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_Masterworking_and_GreaterAffix { width: .88em !important; height: .88em !important; --gh: .88em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-legendarystar { width: .95em !important; height: .95em !important; --gh: .95em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-uniquestar { width: .86em !important; height: .86em !important; --gh: .86em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-Affix_Reroll { width: .55em !important; height: .55em !important; --gh: .55em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph[class*="ag-TemperAttribute_"] { width: .88em !important; height: .88em !important; --gh: .88em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_AffixTransfigured, .d4tt-chrome-item .d4tt-content .affix-glyph.ag-Transfiguration { width: .95em !important; height: .95em !important; --gh: .95em !important; }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_AffixSanctified { width: .9em !important; height: .9em !important; --gh: .9em !important; }
/* rune lines in the game's order (make-tooltips runeLayout, S15 screenshot Ith): ◆ offering + overflow note, the power behind the Ritual / Invocation
   bullet, the link hint dim and italic like the game's flavour lines */
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_RuneEffect, .d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet_RuneCondition { width: 1em !important; height: 1em !important; --gh: 1em !important; }
.d4tt-chrome-item .d4tt-content .nongear .ot-rune-game .stat-line { margin: 0 0 .3em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-rune-game .ot-rl .ot-dim { color: inherit; }
.d4tt-chrome-item .d4tt-content .nongear .ot-rune-game .ot-rune-link { font-style: italic; color: #8a8682; margin-top: .45em; }
.d4tt-chrome-item .d4tt-content .stat-line.d4tt-mw .gt-c_affixvalue { color: #7b7cf5; }
.d4tt-chrome-item .d4tt-content .stt-req.stt-arsenal img { height: 1.1em; width: auto; vertical-align: -.2em; margin-right: .3em; }
.d4tt-skill .stt-arsenal img, .d4tt-skill .stt-arsenal svg { height: 1.1em; width: auto; vertical-align: -.2em; margin-right: .3em; }
/* the game draws the plain diamond and the unique sparkle dimmer than the font-icon art (sampled: diamond ≈ #797a74, sparkle ≈ #9b8167) */
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-AttributeBullet { filter: brightness(.7); }
.d4tt-chrome-item .d4tt-content .affix-glyph.ag-uniquestar { filter: brightness(.74); }
.d4tt-chrome-item .d4tt-content .stat-text { flex: 1; min-width: 0; }
.d4tt-chrome-item .d4tt-content .stat-line > .gt { flex: 1; min-width: 0; }

/* colours (sampled in the screenshots) */
.d4tt-chrome-item .d4tt-content .gt-value { color: inherit; font-weight: 400; }
.d4tt-chrome-item .d4tt-content .gt-c_affixvalue { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .gt-c_boost { color: #7b7cf5; }
.d4tt-chrome-item .d4tt-content .gt-c_capstone { color: #f88005; }
.d4tt-chrome-item .d4tt-content .stat-range { color: #b4aa9c; }
.d4tt-chrome-item .d4tt-content .gt-mult, .d4tt-chrome-item .d4tt-content .gt-mark { color: #808080; font-weight: 400; }
.d4tt-chrome-item .d4tt-content .gt-c_number { color: #d9a962; font-weight: 400; }
.d4tt-chrome-item .d4tt-content .gt-c_random { color: #ababf6; font-weight: 400; }
.d4tt-chrome-item .d4tt-content .gt-c_important { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .gt-c_label, .d4tt-chrome-item .d4tt-content .gt-c_gold { color: #b79e7a; }
.d4tt-chrome-item .d4tt-content .gt-c_gray { color: #686868; }
.d4tt-chrome-item .d4tt-content .gt-c_highlight { color: #bf6a2c; }
.d4tt-chrome-item .d4tt-content .gt-c_quality { color: #8582f7; }
.d4tt-chrome-item .d4tt-content .gt-c_rune { color: #f3b985; }
.d4tt-chrome-item .d4tt-content .gt-c_RuneCondition { color: #ce9110; }
.d4tt-chrome-item .d4tt-content .gt-c_RuneEffect { color: #b140cb; }
.d4tt-chrome-item .d4tt-content .gt-c_set { color: #2ef30d; }
.d4tt-chrome-item .d4tt-content .gt-c_advanced { color: #808080; }
.d4tt-chrome-item .d4tt-content .gt-c_red { color: #ba100d; }
.d4tt-chrome-item .d4tt-content .gt-u { text-decoration: underline solid; text-underline-offset: .14em; text-decoration-thickness: 1px; color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .gt-else { font-style: normal; color: inherit; }
.d4tt-chrome-item .d4tt-content .gt-else::before, .d4tt-chrome-item .d4tt-content .gt-else::after { content: none; }
.d4tt-chrome-item .d4tt-content .ga-line, .d4tt-chrome-item .d4tt-content .ga-line .stat-text { color: #dcd9d3; }

/* powers: legendary aspect orange, unique tan, mythic lilac; ranges inside powers grey */
.d4tt-chrome-item .d4tt-content .power-line.pw-legendary .gt, .d4tt-chrome-item .d4tt-content .power-line.pw-rare .gt, .d4tt-chrome-item .d4tt-content .power-line.pw-seal .gt { color: #f88005; }
.d4tt-chrome-item .d4tt-content .power-line.pw-unique .gt, .d4tt-chrome-item .d4tt-content .power-line.pw-set .gt { color: #daa879; }
.d4tt-chrome-item .d4tt-content .power-line.pw-mythic .gt { color: #da9bee; }
.d4tt-chrome-item .d4tt-content .power-line .gt .gt-c_important { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .power-line .gt .gt-c_label, .d4tt-chrome-item .d4tt-content .power-line .gt .gt-c_gold { color: #b79e7a; }
.d4tt-chrome-item .d4tt-content .power-line .gt .gt-c_set { color: #2ef30d; }
.d4tt-chrome-item .d4tt-content .power-line .stat-range { color: #9c9c9c; }
.d4tt-chrome-item .d4tt-content .it-seal-mark { filter: brightness(.7); }

/* imprinted aspect line: "Imprinted:" runs into the (block-rendered) aspect text like in the game */
.d4tt-chrome-item .d4tt-content .power-line .stat-text .gt > .gt { display: inline; }
/* sockets: ring 6.1 % of W from 1 % left of the content edge, gem at 85 % inside */
.d4tt-chrome-item .d4tt-content .it-socket-row { align-items: center; margin: .05em 0 .3em; }
.d4tt-chrome-item .d4tt-content .it-sock { position: relative; flex: none; width: 7cqw; height: 7cqw; margin: 0 .5cqw 0 -1.4cqw; }
.d4tt-chrome-item .d4tt-content .it-sock-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.d4tt-chrome-item .d4tt-content .it-sock-gem { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; object-fit: contain; }

/* runeword pair: both rune discs inside the RunewordConnection art (28×63), text beside it */
/* the text starts at the affix text column (≈ 6.5 % of W, ≈ 6 px after the discs): no flex gap on top of the icon margin */
.d4tt-chrome-item .d4tt-content .it-runeword { display: flex; align-items: flex-start; gap: 0; margin: .3em 0; }
.d4tt-chrome-item .d4tt-content .it-rw-icons { position: relative; flex: none; width: 6.2cqw; height: 13.95cqw; margin: .1em 1.1cqw 0 -1cqw; }
.d4tt-chrome-item .d4tt-content .it-rw-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.d4tt-chrome-item .d4tt-content .it-rw-disc { position: absolute; left: 11%; width: 78%; height: 4.84cqw; border-radius: 50%; object-fit: cover; }
.d4tt-chrome-item .d4tt-content .it-rw-disc.top { top: .57cqw; }
.d4tt-chrome-item .d4tt-content .it-rw-disc.bottom { top: 8.55cqw; }
.d4tt-chrome-item .d4tt-content .it-rw-text { flex: 1; min-width: 0; }
.d4tt-chrome-item .d4tt-content .it-rw-overflow { color: #808080; }

/* set block */
.d4tt-chrome-item .d4tt-content .it-set { display: flex; flex-direction: column; gap: 0; margin-top: .2em; }
.d4tt-chrome-item .d4tt-content .it-set-name { font-size: 5.5cqw; line-height: 1.3; color: #dcd9d3; margin: 0 0 .1em; }
.d4tt-chrome-item .d4tt-content .it-set-piece { display: flex; align-items: center; gap: 0; padding: 0; margin: 0 0 0 10.8cqw; color: #2ef30d; font-weight: 400; line-height: 1.45; }
.d4tt-chrome-item .d4tt-content .it-set-piece a { color: inherit; text-decoration: none; }
.d4tt-chrome-item .d4tt-content .it-set-piece.missing { color: #808080; }
/* "─◆" piece bullet: diamond ≈ 8 px, #938d83 at W = 505 (sampled 211138, the plain font icon matches), bullet at 10.8 % and the name at 16.7 % of W
   from the content edge (measured against the set name line), glyph ≈ 5 px after the name */
.d4tt-chrome-item .d4tt-content .it-set-bullet { flex: none; width: 1em; height: 1em; margin-right: calc(16.7cqw - 10.8cqw - 1em); }
.d4tt-chrome-item .d4tt-content .it-set-glyph { height: 1.15em; width: auto; margin-left: .15em; }
.d4tt-chrome-item .d4tt-content .it-set-count, .d4tt-chrome-item .d4tt-content .it-set-tier .q-set { color: #2ef30d; }
.d4tt-chrome-item .d4tt-content .it-set-tier .gt { color: #2ef30d; }
/* bonus sentences (211138, measured from the bright frame line at 10× zoom): a beige-grey diamond ≈ 7 px wide (the "bullet" font icon is a 45×40
   frame with a 14 px diamond, so .85 em) centred 29.5 px from the frame line, undimmed; text and wrapped lines start 45 px from the frame line
   (51 px from the image edge) */
.d4tt-chrome-item .d4tt-content .it-set-line { padding-left: 3.6cqw; text-indent: -3.6cqw; }
/* the strings put a space after the bullet ("{icon:bullet,1.2} Glückstreffer: …"); in-game the first word then starts where the wrapped lines do,
   so the 45 px wide icon frame (diamond in its middle) is pulled in: diamond centre 2.1 px (400 px panel) right of the content edge, text 12.3 px after it */
.d4tt-chrome-item .d4tt-content .it-set-line .gt-icon-bullet { height: .85em !important; width: auto; vertical-align: -.1em; margin: 0 -.09em 0 -.37em; filter: none; opacity: 1; }
.d4tt-chrome-item .d4tt-content .it-set-tier.inactive { opacity: .45; }

/* flavor: PT Serif Italic 21.8 px at 505, grey */
.d4tt-chrome-item .d4tt-content .it-flavor { color: #808080; font-size: 4.33cqw; line-height: 1.33; margin: 2.2cqw 0 2.2cqw; }
.d4tt-chrome-item .d4tt-content .it-flavor em { font-family: var(--d4tt-body); font-style: italic; font-size: inherit; }

/* footer: requirement/status lines 20.8 px at 505 right aligned; sell value / durability / tempers in body size below the centre divider */
.d4tt-chrome-item .d4tt-content .it-footer { font-size: 4.13cqw; line-height: 1.3; color: #dcd9d3; text-align: right; margin: 2cqw 0 0; }
.d4tt-chrome-item .d4tt-content .it-footer .ft-bound { color: #808080; }
.d4tt-chrome-item .d4tt-content .it-footer .ft-transmog { color: #bf6a2c; }
.d4tt-chrome-item .d4tt-content .it-footer .ft-season { color: #40a68e; margin-top: .3em; }
.d4tt-chrome-item .d4tt-content .it-footer .gt-icon-img { vertical-align: -.25em; }
.d4tt-chrome-item .d4tt-content .it-footer .ft-transmog .gt-icon-img { height: .85em !important; vertical-align: -.1em; margin-right: .25em; }
.d4tt-chrome-item .d4tt-content .it-footer .ft-season .gt-icon-img { height: .95em !important; vertical-align: -.15em; margin-right: .3em; }
.d4tt-chrome-item .d4tt-content .it-class-icon { height: 1.25em; width: auto; vertical-align: -.3em; margin: 0 .25em; }
.d4tt-chrome-item .d4tt-content .it-footer.it-foot2 { font-size: 4.75cqw; line-height: 1.38; color: #c7c7c7; margin: 0; }
.d4tt-chrome-item .d4tt-content .it-footer.it-foot2 .gt-c_gold { color: #b79e7a; }
/* sell value coin like the non-gear footer (itemother.css ot-foot2): centred on the digits, ≈ 13 px at W = 505 (211153, 211158) */
.d4tt-chrome-item .d4tt-content .it-footer.it-foot2 .gt-icon-Gold { height: .7em !important; vertical-align: -.02em; margin-left: .2em; }
.d4tt-chrome-item .d4tt-content .it-footer.it-foot2 .gt-c_highlight { color: #be6a2c; }

/* rarity tints (drawn under the rarity panel for items, so the frame art keeps its brightness); sampled background colours in docs/DATA.md */
.d4tt-chrome-item.d4tt-chrome-unique .d4tt-tint { background: linear-gradient(180deg, rgba(120,92,58,.18) 0, rgba(0,0,0,0) 15cqw); opacity: 1; }
/* mythic: a violet light over the top of the panel (drawn over the rarity panel, which is nearly opaque at the top). Sampled on Tyrael's Might
   211020 at W = 505 (background under the text, lower third of 9×9 windows): y 4–34 #40066b–#4f0577 across the width, y 48–62 #2d034c–#3f0661,
   y 80 #1a0933–#390658 (brighter left of centre), y 100 back to the panel (#181131). So: a band that holds to y ≈ 60 and fades out by y ≈ 110,
   a soft cloud left of centre (brightest at 30–50 % of W) and a few soft pink particles 3–6 px wide at the positions of the screenshot. The game
   draws this with the FX_UI_Mythic_* effects (vfx_ui_Mythic_Holy_Mask 2618084 is a white "flame" mask of that kind; the effect set-up is not in
   the export, so the mask is not used — CSS approximation, assumption) */
.d4tt-chrome-item.d4tt-chrome-mythic .d4tt-tint { background: none; opacity: 1; }
.d4tt-chrome-item .d4tt-glow { position: absolute; inset: 0; pointer-events: none; }
.d4tt-chrome-item.d4tt-chrome-mythic .d4tt-glow { background:
  radial-gradient(circle at 60.3% .5cqw, rgba(225,140,255,.7) 0, rgba(200,100,250,.4) .45cqw, rgba(200,100,250,0) 1cqw),
  radial-gradient(circle at 53.3% 4.7cqw, rgba(225,140,255,.55) 0, rgba(200,100,250,.3) .5cqw, rgba(200,100,250,0) 1.1cqw),
  radial-gradient(circle at 58.2% 9cqw, rgba(225,140,255,.45) 0, rgba(200,100,250,.25) .45cqw, rgba(200,100,250,0) 1cqw),
  radial-gradient(circle at 43.2% 10.5cqw, rgba(225,140,255,.4) 0, rgba(200,100,250,.2) .4cqw, rgba(200,100,250,0) .9cqw),
  radial-gradient(circle at 18.5% 12.5cqw, rgba(225,140,255,.45) 0, rgba(200,100,250,.25) .45cqw, rgba(200,100,250,0) 1cqw),
  radial-gradient(circle at 30.2% 16cqw, rgba(225,140,255,.35) 0, rgba(200,100,250,.2) .45cqw, rgba(200,100,250,0) 1cqw),
  radial-gradient(circle at 72.4% 15cqw, rgba(225,140,255,.6) 0, rgba(200,100,250,.35) .6cqw, rgba(200,100,250,0) 1.3cqw),
  radial-gradient(circle at 72% 17.2cqw, rgba(225,140,255,.45) 0, rgba(200,100,250,.25) .5cqw, rgba(200,100,250,0) 1.1cqw),
  radial-gradient(ellipse 36% 14cqw at 38% 7cqw, rgba(150,30,215,.2) 0, rgba(150,30,215,.1) 55%, rgba(150,30,215,0) 100%),
  radial-gradient(ellipse 22% 8cqw at 32% 16cqw, rgba(150,30,215,.14) 0, rgba(150,30,215,0) 100%),
  linear-gradient(180deg, rgba(110,0,178,.42) 0, rgba(110,0,178,.42) 2.4cqw, rgba(110,0,178,.4) 4.4cqw, rgba(110,0,178,.32) 6.7cqw, rgba(110,0,178,.27) 9.5cqw,
    rgba(110,0,178,.23) 12.3cqw, rgba(110,0,178,.13) 15.8cqw, rgba(110,0,178,.06) 19.8cqw, rgba(110,0,178,.03) 25cqw, rgba(110,0,178,0) 32cqw); }
/* Horadric quality (Season 16): the explorer's seasonal effect (chrome-fx-seasonal, 27.10.2026) — green sparks and light in the head of the
   item, laid over the rarity panel (the item stays legendary). Set by GameTooltip::wrap() when the body has a Horadric line. */
.d4tt-chrome-item.d4tt-fx-seasonal .d4tt-glow { background:
  radial-gradient(circle at 60.3% .5cqw, #96ffe199 0, #1ddeb159 .45cqw, #1ddeb100 1cqw),
  radial-gradient(circle at 53.3% 4.7cqw, #96ffe180 0, #1ddeb147 .5cqw, #1ddeb100 1.1cqw),
  radial-gradient(circle at 58.2% 9cqw, #96ffe166 0, #1ddeb138 .45cqw, #1ddeb100 1cqw),
  radial-gradient(circle at 43.2% 10.5cqw, #96ffe159 0, #1ddeb12e .4cqw, #1ddeb100 .9cqw),
  radial-gradient(circle at 18.5% 12.5cqw, #96ffe166 0, #1ddeb138 .45cqw, #1ddeb100 1cqw),
  radial-gradient(circle at 72.4% 15cqw, #96ffe180 0, #1ddeb14d .6cqw, #1ddeb100 1.3cqw),
  radial-gradient(ellipse 36% 14cqw at 38% 7cqw, #1ddeb129 0, #1ddeb114 55%, #1ddeb100),
  radial-gradient(ellipse 22% 8cqw at 32% 16cqw, #42a88f24 0, #42a88f00),
  linear-gradient(180deg, #0a8c6966 0 2.4cqw, #0a8c695c 4.4cqw, #0a8c694a 6.7cqw, #0a8c693d, #0a8c6933 12.3cqw, #0a8c691f 15.8cqw, #0a8c690f 19.8cqw,
    #0a8c6908 25cqw, #0a8c6900 32cqw); }
/* set: background sampled at W = 505 (211138, x 440–490): y 100 #1b5409, y 200 #1b5208, y 300 #1b4d09, y 400 #194709, y 600 #15380c, y 800 #132b0c.
   The rarity panel alone is darker at the top (y 100 #1c4a05, y 400 #1c3f08), so a faint green light is laid over the panel (the glow layer)
   that fades out by y ≈ 800; the dark share under the panel stays for the lower part */
.d4tt-chrome-item.d4tt-chrome-set .d4tt-tint { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(25,70,8,.28) 100%); }
.d4tt-chrome-item.d4tt-chrome-set .d4tt-glow { background: linear-gradient(180deg, rgba(20,160,30,.12) 0, rgba(20,160,30,.12) 40cqw, rgba(20,160,30,.095) 60cqw, rgba(20,160,30,.08) 80cqw, rgba(20,160,30,.055) 119cqw, rgba(20,160,30,0) 160cqw); }
/* a value formula that could not be evaluated never shows as code in the game's item tooltip: a dash in the text colour, the formula in the
   element title (text.jsx logs it once) */
.d4tt-chrome-item .d4tt-content .gt-formula { display: inline-block; width: .7em; overflow: hidden; white-space: nowrap; vertical-align: bottom; color: transparent; background: none;
  border: 0; padding: 0; border-radius: 0; font: inherit; }
.d4tt-chrome-item .d4tt-content .gt-formula::before { content: "–"; color: #b4aa9c; }

/* Non-gear item tooltips (materials, consumables, keys, sigils, tributes, compass, chronicle, gems, soul splinters, trophies) — itemother.jsx.
   Game look: measured on the S15 screenshots 2026-09-18 1725–1727 / 2112–2123 at the game's panel width (≈ 510 px); sizes are shares of the width
   (container units, 1cqw = W/100) like the gear tooltip (itemtip.css), which this builds on (same panel, body font, stat lines, flavor, footer).
   Colours were sampled from the screenshots — the game data has no colour table for the text markup (docs/DATA.md). */

/* plain look (and the base for the game look) */
.d4tt-chrome-item .d4tt-content .nongear .ot-head { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 12px; }
.d4tt-chrome-item .d4tt-content .nongear .ot-headtext { flex: 1; min-width: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-image { flex: none; }
.d4tt-chrome-item .d4tt-content .nongear .ot-para .ot-blank { height: .9em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li { position: relative; padding-left: 1.1em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li > .ot-li-bullet { position: absolute; left: 0; top: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li.has-lead { display: flex; align-items: flex-start; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li.has-lead > .ot-li-lead { flex: none; white-space: nowrap; margin-right: .25em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li.has-lead > .ot-li-text { flex: 1; min-width: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-desc, .d4tt-chrome-item .d4tt-content .nongear .ot-socket, .d4tt-chrome-item .d4tt-content .nongear .ot-dungeon, .d4tt-chrome-item .d4tt-content .nongear .ot-rune, .d4tt-chrome-item .d4tt-content .nongear .ot-power { margin-top: 8px; }
.d4tt-chrome-item .d4tt-content .nongear .ot-dungeon.gap { margin-top: 1em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-socket-lines { margin-top: 6px; }
.d4tt-chrome-item .d4tt-content .nongear .ot-banner { background: url(/assets/img/ui/tooltip/section_header.webp) center / 100% 100% no-repeat; text-align: center; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; margin: 8px 0 6px;
  color: #dcd9d3; font-family: 'OldFenris', var(--d4tt-head); }
.d4tt-chrome-item .d4tt-content .nongear .ot-affix-desc { color: #9d968a; }
.d4tt-chrome-item .d4tt-content .nongear .ot-foot2 .gt-icon-img { height: .8em; }
.d4tt-x-unused { background: #2a2723; }
/* long German title words (itemother.jsx useTitleFit): soft hyphens only (the game's {d} markers and the compound joints from the server); the last
   fit step breaks anywhere, with the browser's own German hyphenation where it has one */
.d4tt-chrome-item .d4tt-content .nongear .ot-title { hyphens: manual; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.ot-title-wrap { hyphens: auto; overflow-wrap: anywhere; }
/* example roll picker below the tooltip (sigils, chronicle) */

/* ---------------- game look ---------------- */
/* header: title column 60 % of W, the 120 × 180 inventory art at its native size over the top-right frame (as gear), header ends with the divider
   at ≈ 30 % of W below the panel top even for one-line titles (212133 Iron Chunk, 211206 Flawless Diamond: divider at y ≈ 152 of 510) */
.d4tt-chrome-item .d4tt-content .nongear .tt-head.ot-head { display: block; position: static; margin: 0; padding: 0; background: none; min-height: 21cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-headtext { max-width: 60cqw; }
/* native size at W 512: the 120 × 180 inventory art from x 371 to 491 and 8 px above the panel top (212133 Iron Chunk: art bbox 376–488 × 13–165),
   square 128 px gem art from x 368 to 496, 19 px below the top (211206 Flawless Diamond) */
.d4tt-chrome-item .d4tt-content .nongear .ot-image { position: absolute; top: -1.6cqw; right: 4cqw; width: 23.4cqw; height: 35.2cqw; margin: 0; border: 0; object-fit: contain;
  object-position: top center; z-index: 2; pointer-events: none; }
/* square gem art: Royal Amethyst 103 × 97 px (x 386–488, y 33–129), Flawless Diamond 79 × 78 px (x 393–471, y 44–121) at W 508 (211249, 211206)
   → the 128 px frame at 26.5 % of W, its centre ≈ 81 px below the panel top */
.d4tt-chrome-item .d4tt-content .nongear .ot-image.wide { width: 26.5cqw; height: 26.5cqw; top: 2.6cqw; right: 2.3cqw; object-position: center; }
/* title: ExocetMedium caps in the item's own colour (not the subtitle's); lines 1.11 em apart; inline icons (Cube_TooltipIcon, Transfiguration) white, 18 px from the text */
/* title icon: cube art 29 × 26 px at W 512 (212238) → frame 1.1 em */
.d4tt-chrome-item .d4tt-content .nongear .ot-title .gt-icon-img { height: 1.1em !important; width: auto; vertical-align: middle; position: relative; top: -.08em; margin: -.2em .3em; }
/* no air inside brackets: 'HARZ ({cube})' — the side that touches a non-space character gets only a hairline */
.d4tt-chrome-item .d4tt-content .nongear .ot-title .gt-icon-img.gt-icon-tl { margin-left: .05em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title .gt-icon-img.gt-icon-tr { margin-right: .05em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.q-normal { color: #e9e9e9; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.ot-sage { color: #cfd8b6; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.ot-key { color: #55bdf0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.ot-swap { color: #2ce7ce; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.q-magic { color: #7b7cf5; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.q-rare { color: #eaec0a; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.q-legendary { color: #f78005; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.q-unique { color: #d9a879; }
.d4tt-chrome-item .d4tt-content .nongear .ot-title.q-mythic { color: #d898e8; }
.d4tt-chrome-item .d4tt-content .nongear .tt-sub.ot-sub { margin-top: 1.1cqw; }
.d4tt-chrome-item .d4tt-content .nongear .tt-sub.ot-sub.q-mythic { color: #b880c8; }
.d4tt-chrome-item .d4tt-content .nongear .tt-sub.ot-sub.q-rare { color: #c8ca09; }
.d4tt-chrome-item .d4tt-content .nongear .tt-sub.ot-sub.q-legendary { color: #d46d06; }

/* type sizes measured against the S15 screenshots with the game's own fonts (text widths at W ≈ 510: "Used to improve Weapons and Jewelry at the"
   429 px = PT Serif 21.9 px, "IRON CHUNK" 193 px = Exocet 29 px, flavor italic 20.3 px, "Cannot Salvage" 19.9 px, "DUNGEON AFFIXES" 21.8 px):
   body 4.25 %, title 5.7 %, flavor 3.97 %, footer 3.9 % of W; lines 30 px apart (1.37) */
.d4tt-chrome-item .d4tt-content .nongear { font-size: 4.25cqw; line-height: 1.37; }
.d4tt-chrome-item .d4tt-content .nongear .tt-title.ot-title { font-size: 5.7cqw; letter-spacing: 0; line-height: 1.17; -webkit-text-stroke: .025em currentColor; }
.d4tt-chrome-item .d4tt-content .nongear .tt-sub.ot-sub { font-size: 4.2cqw; line-height: 1.37; }
.d4tt-chrome-item .d4tt-content .nongear .stat-line { line-height: 1.37; }
.d4tt-chrome-item .d4tt-content .nongear .it-flavor.ot-flavor { font-size: 3.97cqw; line-height: 1.46; }
.d4tt-chrome-item .d4tt-content .nongear .it-footer { font-size: 3.9cqw; line-height: 1.38; }
.d4tt-chrome-item .d4tt-content .nongear .it-footer.ot-foot2 { font-size: 4.25cqw; line-height: 1.37; }
.d4tt-chrome-item .d4tt-content .nongear .ot-banner { font-size: 4.27cqw; }
/* inline icons must not stretch the line box (the game keeps the 30 px pitch on lines with icons) */
/* the game draws them at ≈ scale × .65 em (measured frames at W 512: anvil 1.5 → 20 px, cube 1.5 → 21, boss skull / hourglass 2 → 30, brazier 2.6 → 35;
   GameText uses .55 em) centred on the cap middle, without stretching the line */
.d4tt-chrome-item .d4tt-content .nongear .ot-main .gt-icon-img:not(.gt-icon-bullet), .d4tt-chrome-item .d4tt-content .nongear .ot-flavor .gt-icon-img { zoom: 1.18; vertical-align: middle; position: relative; top: -.1em; margin-top: -.4em !important; margin-bottom: -.4em !important; }

/* body: paragraphs as one block per source line, "\r\n\r\n" = one empty line; bullet lists with the grey solid diamond ({icon:bullet}) 1 % of W
   from the text edge and a hanging indent of 4.3 % for the text and its wrapped lines (212133: diamond x 38–44, text x 53–57 at W 512) */
.d4tt-chrome-item .d4tt-content .nongear .ot-main { margin-top: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-para .ot-blank { height: 1.37em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-desc, .d4tt-chrome-item .d4tt-content .nongear .ot-socket,
.d4tt-chrome-item .d4tt-content .nongear .ot-dungeon, .d4tt-chrome-item .d4tt-content .nongear .ot-rune,
.d4tt-chrome-item .d4tt-content .nongear .ot-power { margin: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-power, .d4tt-chrome-item .d4tt-content .nongear .ot-rune { margin-top: 1.25em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-desc + .ot-power, .d4tt-chrome-item .d4tt-content .nongear .ot-socket + .ot-power { margin-top: 1.25em; }
/* list items (212238 at W 508, paragraph edge x 29): diamond 7 × 7 px from x 34, first text from x 49 (+20), wrapped lines ≈ 4 px further right
   (x 53, "Cache Rewards from … / Whispers"); with leading icons the wrapped lines hang at the text after them (has-lead, 212133 "Blacksmith") */
.d4tt-chrome-item .d4tt-content .nongear .ot-li { position: relative; padding-left: 4.55cqw; text-indent: -.65cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li.has-lead { padding-left: 3.9cqw; text-indent: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li.sp { padding-left: 4.8cqw; text-indent: 0; }
/* the diamond (7 px at W 508, 34–40 × 337–343 in 212238) centred on the cap middle: frame .85 em (diamond = 37.5 % of the frame width), top .28 em
   (PT Serif baseline 1.06 em below the line top at line-height 1.37); the item's text-indent must not move it */
.d4tt-chrome-item .d4tt-content .nongear .ot-li > .ot-li-bullet { position: absolute; left: 0; top: .28em; line-height: 0; text-indent: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-li > .ot-li-bullet .gt-icon-img { display: block; height: .85em !important; width: auto; margin: 0; }
/* inline icons in the text: scale × .55 em like the game (cube 1.5 → 17 px, brazier 2.6 → 30 px at W 510); names the data cannot resolve draw nothing */
/* no extra side margin: the source strings carry the spaces themselves (212217 "[boss] World Bosses": icon → text ≈ 4 px at W 510) */
.d4tt-chrome-item .d4tt-content .nongear .ot-main .gt-icon-img { margin-left: 0; margin-right: 0; }
.d4tt-chrome-item .d4tt-content .nongear .gt-icon { display: none; }
.d4tt-chrome-item .d4tt-content .nongear .gt-icon-Timer_Icon_Red { filter: sepia(1) saturate(4) hue-rotate(-40deg) brightness(.95); }

/* gems / soul splinters: socketable line, (gems) ≈ 20 px gap, one line per target with the hollow diamond; label grey, value body colour */
/* socketable line → first target line 62–64 px centre to centre at W ≈ 510 (211206, 211249) */
.d4tt-chrome-item .d4tt-content .nongear .ot-socket-lines { margin-top: 6.5cqw; }
/* soul splinters: resistance line → power line 35 px (211231) */
.d4tt-chrome-item .d4tt-content .nongear .ot-socket.splinter .ot-socket-lines { margin-top: .7cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-splinter-desc { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .nongear .ot-socket + .ot-desc { margin-top: 1.25em; }

/* dungeon keys: zone / revives lines with the hollow diamond, the stone banner (Style_TooltipSectionHeader) over the full text width, affixes:
   name (reward / wave cap affixes #b79e7a, others body colour, markup wins) and the description grey under it */
/* description → zone line: 61–65 px baseline to baseline in the tributes (172623, 172718), 35 px on the compass without an empty line (172730) */
.d4tt-chrome-item .d4tt-content .nongear .ot-dungeon.gap { margin-top: 1.6em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-dungeon > .ot-para + .stat-line { margin-top: .15em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-dungeon > .ot-para { margin-bottom: .1em; }
/* banner lettering: "DUNGEON" 114 px wide at W 507 (211532) → 4.42 % of W without letter-spacing, thin strokes with only a soft dark halo (no offset
   shadow); the banner keeps its height (line 5.7 % of W) */
.d4tt-chrome-item .d4tt-content .nongear .ot-banner { font-size: 4.42cqw; line-height: 5.7cqw; padding: 1.3cqw 2cqw 1.1cqw; margin: 2.6cqw .6cqw 1.2cqw -1cqw; color: #dcd9d3;
  letter-spacing: 0; text-shadow: 0 0 2px #000; }
.d4tt-chrome-item .d4tt-content .nongear .ot-affix { margin-bottom: 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-affix .ot-affix-name { color: #b4aa9c; }
.d4tt-chrome-item .d4tt-content .nongear .ot-affix.cat-0 .ot-affix-name { color: #b79e7a; }
.d4tt-chrome-item .d4tt-content .nongear .ot-affix .ot-affix-desc { color: #808080; }
/* affix name → description 34–35 px, then 30 px (all tribute screenshots, 172623 "Reward Upgrades…" 517 → 581 → 611) */
.d4tt-chrome-item .d4tt-content .nongear .ot-affix .ot-affix-desc { margin-top: .9cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-affix .ot-affix-name .gt-icon-img { margin-left: 0; margin-right: .2em; }

/* text markup colours (sampled; no colour table in the data) */
.d4tt-chrome-item .d4tt-content .nongear .gt-value, .d4tt-chrome-item .d4tt-content .nongear .gt-c_number { color: inherit; font-weight: inherit; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_random { color: #ababf6; font-weight: inherit; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_important, .d4tt-chrome-item .d4tt-content .nongear .gt-c_white { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_highlight { color: #bf6a2c; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_rare { color: #eaec0a; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_legendary { color: #f88005; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_unique { color: #daa879; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_mythic { color: #da9bee; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_magic { color: #7878f0; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_chaos { color: #40a68e; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_red { color: #ba100d; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_resource { color: #eaeb6d; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_lore { color: #eb9e9e; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_gold, .d4tt-chrome-item .d4tt-content .nongear .gt-c_label { color: #b79e7a; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_socketlabel { color: #686868; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_yellow { color: #eaeb5d; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_green { color: #2ef20d; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_links, .d4tt-chrome-item .d4tt-content .nongear .gt-c_blue { color: #81c5f5; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_lightning { color: #3d45bd; }
.d4tt-chrome-item .d4tt-content .nongear .gt-c_shadow { color: #8a6394; }
.d4tt-chrome-item .d4tt-content .nongear .gt-u { text-decoration: underline solid; text-decoration-thickness: 1px; text-underline-offset: .12em; color: #e4e2e0; }
/* flavor: italic grey, emphasis inside it keeps the bright colour (tribute "The Horadric Cube can Amalgamate this item") */
.d4tt-chrome-item .d4tt-content .nongear .ot-flavor { margin: 2.3cqw 0 0; }
.d4tt-chrome-item .d4tt-content .nongear .ot-flavor .ot-para .ot-blank { height: 1.46em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-flavor .gt-c_important { color: #dcd9d3; }
.d4tt-chrome-item .d4tt-content .nongear .ot-flavor .gt-icon-img { vertical-align: -.2em; margin: 0 .3em 0 0; }

/* footer: requirement text red first (211301), then level / account bound (grey) / cannot salvage / seasonal (teal) / expansion; the full-width
   footer divider always; sell value below it */
.d4tt-chrome-item .d4tt-content .nongear .it-footer { margin-top: .6cqw; }
/* last body line → first footer line: 45–47 px baseline to baseline without flavor (172730 "Wave 10." → Account Bound, sigils 211532/211541/211552),
   35–38 px after a flavor (Liquid Rainbow, Terror, Chronicle, Crux, gems, prisms) */
.d4tt-chrome-item .d4tt-content .nongear .ot-main:not(:has(> .ot-flavor:last-child)) + .it-footer { margin-top: 3cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-main:has(> .ot-flavor:last-child) + .it-footer { margin-top: 1.6cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-footdiv .stt-divider.it-div-center { margin: 1.2cqw 0 .6cqw -1.6cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-footdiv.after-flavor .stt-divider.it-div-center { margin-top: 2.7cqw; }
.d4tt-chrome-item .d4tt-content .nongear .ot-footdiv.after-body .stt-divider.it-div-center { margin-top: 4.1cqw; }
.d4tt-chrome-item .d4tt-content .nongear .it-footer .ft-req, .d4tt-chrome-item .d4tt-content .nongear .it-footer .ft-req .gt-c_red { color: #ba100d; }
/* expansion logo (Icon_Font_Entitlement_X2): in the game the red D fills 19–20 × 18–19 px next to a 15 px cap height (211317, 211306, 211405) — its
   top sits ≈ 1 px over the cap line, its bottom ≈ 1.5 px under the baseline. The red art covers .77 of the 64 px frame, so the frame is 1.25em of the
   footer size; the string already carries a space before the icon (gap 7–8 px in the game), so no extra margin */
.d4tt-chrome-item .d4tt-content .nongear .it-footer .ft-exp .gt-icon-img { height: 1.34em !important; vertical-align: -.33em; margin-left: 0; }
.d4tt-chrome-item .d4tt-content .nongear .it-footer.ot-foot2 { margin: 0; }
.d4tt-chrome-item .d4tt-content .nongear .it-footer.ot-foot2 .gt-icon-img { height: .7em !important; vertical-align: -.02em; margin-left: .2em; }
/* seasonal leaf 12 × 15 px at W 512 (Marker_Season_Green_font, art 53 × 63 of its 100 px frame → frame 1.2 em of the footer size) */
.d4tt-chrome-item .d4tt-content .nongear .it-footer .ft-season .gt-icon-img { height: 1.2em !important; vertical-align: -.3em; margin-right: .25em; }
.d4tt-chrome-item .d4tt-content .nongear .ot-foot-pad { height: .4cqw; }

/* panels: unique and mythic non-gear items keep the neutral dark body of the rarity panel (211301 Terror ≈ #1e201d, 211500 Crux ≈ #181428) —
   no warm top tint and no violet glow (those match the gear screenshots only) */
.d4tt-chrome-item.d4tt-chrome-unique:has(.nongear) .d4tt-tint { background: none; }
.d4tt-chrome-item.d4tt-chrome-mythic:has(.nongear) .d4tt-glow { background: none; }

/* stacked game-look panels (paragon board card: board tooltip + socketed glyph, tooltip.js _appendChildTooltip) */
.item-tooltip:has(> .d4tt-stack) { background: none; border: 0; box-shadow: none; max-width: none; min-width: 0; padding: 0; border-radius: 0; }
.d4tt-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 400px; max-width: min(100vw - 16px, 400px); }
.d4tt-stack > .d4tt-chrome { flex: none; }
.d4tt-stack__classic { background: #1A1B20; border: 1px solid #3f3f46; border-radius: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.6); max-width: 100%; }
/* main.css sets img{display:block}: inline icons inside tooltip text stay inline */
.d4tt img.it-class-icon, .d4tt img.gt-icon-img, .d4tt img.affix-glyph { display: inline-block; }

/* ---- hint cards (explorer Tooltip kind "hint", views/Mercs.jsx SideCard 'merc' / 'text'; mercs.css .mw-tt): base panel (76 px corners × .5) +
   TooltipFrameLight = the ornate pieces at .3 (143 px → 43 px), both flush; padding 14/20 px; the text card sizes itself up to 440 px. Type sizes =
   .mw-tt proportions on the skill card's body size (22 u → 16.4 px) */
.d4tt-chrome-hint { width: max-content; max-width: min(100vw - 16px, 440px); container-type: normal; }
.d4tt-chrome-hint .d4tt-9s-base { --c: 38px; }
.d4tt-chrome-hint .d4tt-9s-light { --c: 43px; inset: 0; }
.d4tt-chrome-hint .d4tt-content { padding: 14px 20px; font-size: 16.4px; line-height: 1.35; color: #c4bdb2; }
.d4tt-hint .htt-title { font-family: 'OldFenris', Georgia, serif; font-size: 19.4px; line-height: 1.2; color: #dcd9d3; }
.d4tt-hint .htt-sub { color: #8a8378; font-size: 14.2px; margin-bottom: 6px; }
.d4tt-hint .htt-head { font-family: 'OldFenris', Georgia, serif; font-size: 16.4px; color: #b4aa9c; margin: 6px 0 2px; }
.d4tt-hint .htt-style { margin: 4px 0; }
.d4tt-hint .htt-style b { display: block; color: #dcd9d3; font-weight: 400; }
.d4tt-hint .htt-desc { color: #9a958c; margin-top: 6px; }
.d4tt-hint .gt-c_important { color: #ece8e0; } .d4tt-hint .gt-c_white { color: #fff; }

/* whole-pixel card width where the viewport squeezes it (see the 9-slice note at the top); after the width rules above so it wins */
@supports (width: round(1.5px, 1px)) {
  .d4tt-chrome { max-width: round(down, min(100vw - 16px, 400px), 1px); }
  .d4tt-chrome-generic:has(.d4tt-glyph) { max-width: round(down, min(100vw - 16px, 476px), 1px); }
  .d4tt-chrome-hint { max-width: round(down, min(100vw - 16px, 440px), 1px); }
}
