/* drunkdragon.ru 1.13.0 — «Главная» (the home tab of the site's app). Only .dd-home* and the home view. */
#dd-home-view { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--dd-gold-dim) transparent; }
.dd-home { --home-pad: clamp(16px, 3vw, 44px); --home-max: 1440px; display: flex; flex-direction: column; min-width: 0; }
.dd-home *, .dd-home *::before, .dd-home *::after { box-sizing: border-box; }
.dd-home ::selection { background: rgba(229, 195, 152, .3); color: var(--dd-ink-primary); }
.dd-home button:focus-visible, .dd-home a:focus-visible { outline: none; box-shadow: var(--dd-shadow-focus); }

/* ---------- first screen ---------- */
.dd-home-hero { position: relative; z-index: 2; isolation: isolate; display: flex; justify-content: center; align-items: center; min-height: clamp(470px, 64vh, 660px); padding: clamp(48px, 8vh, 104px) var(--home-pad) clamp(72px, 10vh, 112px); border-bottom: 1px solid var(--dd-border); }
/* only the map is clipped: the search results may hang over the next section */
.dd-home-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.dd-home-hero__map { position: absolute; inset: -4%; background: var(--dd-home-map) center / cover no-repeat; filter: saturate(.5) brightness(.5) contrast(1.1); transform: translate3d(-2%, -1.2%, 0) scale(1.01); animation: dd-home-drift 140s ease-in-out infinite alternate; will-change: transform; }
.dd-home-hero.is-paused .dd-home-hero__map { animation-play-state: paused; }
@keyframes dd-home-drift { to { transform: translate3d(2%, 1.2%, 0) scale(1.05); } }
.dd-home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 60% at 50% 50%, rgba(10, 5, 18, .86) 0%, rgba(10, 5, 18, .7) 50%, rgba(10, 5, 18, .34) 100%),
    linear-gradient(180deg, rgba(33, 12, 58, .5) 0%, rgba(10, 5, 18, .05) 38%, rgba(10, 5, 18, .55) 78%, var(--dd-bg) 100%); }
.dd-home-hero__inner { position: relative; width: min(880px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.dd-home-title { margin: 0; display: flex; flex-direction: column; gap: .16em; font-family: var(--dd-font-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.dd-home-title__hello { font-size: clamp(2.05rem, 1.1rem + 3vw, 3.8rem); color: var(--dd-ink-primary); text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.dd-home-title__motto { font-size: clamp(1.4rem, .95rem + 1.6vw, 2.4rem); font-weight: 400; letter-spacing: -.01em; color: var(--dd-gold-bright); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.dd-home-lead { margin: 2px 0 12px; max-width: 56ch; color: var(--dd-ink-muted); font-size: clamp(.95rem, .9rem + .25vw, 1.0625rem); line-height: 1.55; text-wrap: balance; }

.dd-home-search { position: relative; z-index: 5; width: min(780px, 100%); }
.dd-home-search__box { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 9px 0 20px; background: rgba(13, 6, 23, .9); border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .85); transition: border-color var(--dd-duration-fast) ease, box-shadow var(--dd-duration-fast) ease; }
.dd-home-search__box:focus-within { border-color: var(--dd-gold); box-shadow: var(--dd-shadow-focus), 0 22px 44px -20px rgba(0, 0, 0, .85); }
.dd-home-search__icon { flex: none; display: grid; place-items: center; color: var(--dd-gold); }
.dd-home-search__icon .dd-ico { width: 20px; height: 20px; }
.dd-home-search__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--dd-ink-primary); font: 500 1.0625rem/1.2 var(--dd-font-body); caret-color: var(--dd-gold-bright); -webkit-appearance: none; appearance: none; }
.dd-home-search__input::placeholder { color: var(--dd-ink-subtle); opacity: 1; }
.dd-home-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.dd-home-search__key { flex: none; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-sm); background: var(--dd-surface-panel); color: var(--dd-ink-soft); font: 600 .8125rem/1 var(--dd-font-body); }
.dd-home-search__box:focus-within .dd-home-search__key { visibility: hidden; }
.dd-home-search__editions { flex: none; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--dd-border); border-radius: var(--dd-radius-md); background: var(--dd-surface-sunken); }
.dd-home-ed { min-width: 54px; height: 38px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--dd-ink-soft); font: 600 .875rem/1 var(--dd-font-body); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--dd-duration-fast) ease, color var(--dd-duration-fast) ease; }
.dd-home-ed:hover { color: var(--dd-ink); }
.dd-home-ed[aria-pressed="true"] { background: var(--dd-surface-active); color: var(--dd-gold-bright); box-shadow: inset 0 0 0 1px var(--dd-gold-dim); }

.dd-home-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(62vh, 540px); overflow-y: auto; padding: 8px; text-align: left; background: var(--dd-surface-elevated); border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8); scrollbar-width: thin; scrollbar-color: var(--dd-gold-dim) transparent; }
.dd-home-hits + .dd-home-hits { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--dd-border); }
.dd-home-hits__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dd-home-hits__head { margin: 0; padding: 6px 10px 4px; color: var(--dd-gold); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dd-home-hits__all { padding: 6px 10px 4px; border: 0; background: transparent; color: var(--dd-ink-soft); font: 500 .75rem/1.2 var(--dd-font-body); cursor: pointer; }
.dd-home-hits__all:hover { color: var(--dd-gold-bright); }
.dd-home-hit { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--dd-radius-md); background: transparent; color: var(--dd-ink); font-family: var(--dd-font-body); text-align: left; cursor: pointer; }
.dd-home-hit:hover, .dd-home-hit:focus-visible { background: var(--dd-surface-hover); }
.dd-home .dd-home-hit:focus-visible { box-shadow: inset 0 0 0 1px var(--dd-gold-dim); }
.dd-home-hit__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--dd-radius-sm); background: var(--dd-surface-panel); color: var(--dd-gold); }
.dd-home-hit__icon .dd-ico { width: 16px; height: 16px; }
.dd-home-hit__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-home-hit__name { overflow: hidden; color: var(--dd-ink-primary); font-size: .9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dd-home-hit__en { margin-left: 8px; color: var(--dd-ink-subtle); font-size: .8125rem; font-weight: 400; }
.dd-home-hit__meta { overflow: hidden; color: var(--dd-ink-soft); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.dd-home-hits__empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 14px 12px; color: var(--dd-ink-muted); font-size: .875rem; }
.dd-home-hits__empty p { margin: 0; }

.dd-home-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin-top: 8px; }
.dd-home-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-full); background: rgba(18, 9, 29, .78); color: var(--dd-ink-muted); font: 500 .875rem/1 var(--dd-font-body); white-space: nowrap; cursor: pointer; transition: border-color var(--dd-duration-fast) ease, color var(--dd-duration-fast) ease, background-color var(--dd-duration-fast) ease; }
.dd-home-chip .dd-ico { width: 16px; height: 16px; flex: none; color: var(--dd-gold); }
.dd-home-chip:hover { border-color: var(--dd-border-gold); background: var(--dd-surface-hover); color: var(--dd-ink-primary); }

.dd-home-hero__pause { position: absolute; left: var(--home-pad); bottom: 18px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--dd-border-strong); border-radius: 50%; background: rgba(10, 5, 18, .72); color: var(--dd-ink-soft); cursor: pointer; }
.dd-home-hero__pause:hover { color: var(--dd-gold-bright); border-color: var(--dd-border-gold); }
.dd-home-hero__pause .dd-ico { width: 15px; height: 15px; }
.dd-home-hero__caption { position: absolute; right: var(--home-pad); bottom: 24px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--dd-ink-soft); font: 500 .75rem/1.3 var(--dd-font-body); cursor: pointer; }
.dd-home-hero__caption:hover { color: var(--dd-gold-bright); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .dd-home-hero__map { animation: none; }
  .dd-home-hero__pause { display: none; }
}

/* ---------- sections ---------- */
.dd-home-section { width: 100%; max-width: calc(var(--home-max) + 2 * var(--home-pad)); margin: 0 auto; padding: clamp(44px, 5vw, 76px) var(--home-pad) 0; }
.dd-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.dd-home-head__text { max-width: 70ch; }
.dd-home-h2 { margin: 0 0 6px; color: var(--dd-gold-bright); font-family: var(--dd-font-display); font-size: clamp(1.6rem, 1.15rem + 1.1vw, 2.15rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.dd-home-h2--small { margin-bottom: 14px; font-size: 1.3rem; }
.dd-home-head__lead { margin: 0; color: var(--dd-ink-muted); font-size: 1rem; line-height: 1.55; }
.dd-home-head__note { margin: 8px 0 0; color: var(--dd-ink-soft); font-size: .875rem; font-variant-numeric: tabular-nums; }
.dd-home-head .dd-btn .dd-ico, .dd-home-patron__foot .dd-ico { width: 15px; height: 15px; }

/* «Продолжить» */
.dd-home-continue { padding-top: 34px; }
.dd-home-continue__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dd-home-cont { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px 12px 12px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); background: var(--dd-surface-panel); color: var(--dd-ink); font-family: var(--dd-font-body); text-align: left; cursor: pointer; transition: border-color var(--dd-duration-fast) ease, background-color var(--dd-duration-fast) ease; }
.dd-home-cont:hover { border-color: var(--dd-border-gold); background: var(--dd-surface-hover); }
.dd-home-cont__media { flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: var(--dd-radius-md); background: var(--dd-surface-elevated); color: var(--dd-gold); }
.dd-home-cont__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dd-home-cont__media .dd-ico { width: 22px; height: 22px; }
.dd-home-cont__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dd-home-cont__title { overflow: hidden; color: var(--dd-ink-primary); font-size: .9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dd-home-cont__note { overflow: hidden; color: var(--dd-ink-soft); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }

/* the reference */
.dd-home-tiles { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(230px, 27vh)); gap: 14px; }
.dd-home-tile--bestiary { grid-row: span 2; }
.dd-home-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-width: 0; min-height: 200px; overflow: hidden; padding: 0; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); background: var(--dd-surface-card); color: var(--dd-ink); font-family: var(--dd-font-body); text-align: left; cursor: pointer; transition: border-color var(--dd-duration-normal) ease; }
.dd-home-tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.84); transition: transform 700ms var(--dd-ease), filter 700ms var(--dd-ease); }
.dd-home-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 5, 18, 0) 26%, rgba(10, 5, 18, .74) 64%, rgba(10, 5, 18, .96) 100%); }
.dd-home-tile:hover { border-color: var(--dd-border-gold); }
.dd-home-tile:hover .dd-home-tile__img { transform: scale(1.045); filter: saturate(1) brightness(.94); }
.dd-home-tile__text { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.dd-home-tile__label { color: var(--dd-ink-primary); font-family: var(--dd-font-display); font-size: clamp(1.25rem, 1rem + .6vw, 1.6rem); font-weight: 700; line-height: 1.15; }
.dd-home-tile--bestiary .dd-home-tile__label { font-size: clamp(1.6rem, 1.15rem + 1.1vw, 2.3rem); }
.dd-home-tile--bestiary .dd-home-tile__text { padding: 24px 26px; }
.dd-home-tile__note { color: var(--dd-ink-muted); font-size: .875rem; line-height: 1.45; }
.dd-home-tile__count { color: var(--dd-gold-bright); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* «Кто сегодня в таверне» */
.dd-home-patrons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dd-home-patron { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 20px 16px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); background: linear-gradient(180deg, var(--dd-surface-elevated) 0%, var(--dd-surface-panel) 60%); }
.dd-home-patron__head { display: flex; flex-direction: column; gap: 4px; }
.dd-home-patron__name { margin: 0; color: var(--dd-gold-bright); font-family: var(--dd-font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.dd-home-patron__who { color: var(--dd-ink-soft); font-size: .8125rem; }
.dd-home-patron__traits { display: flex; flex: 1; flex-direction: column; gap: 10px; margin: 0; }
.dd-home-patron__trait dt { margin-bottom: 2px; color: var(--dd-gold); font-size: .75rem; font-weight: 600; }
.dd-home-patron__trait dd { margin: 0; color: var(--dd-ink); font-size: .9rem; line-height: 1.45; }
.dd-home-patron__foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--dd-border); }

/* the workshop */
.dd-home-work { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "chat art art" "sb music sheet"; gap: 14px; }
.dd-home-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); background: var(--dd-surface-panel); }
.dd-home-card--chat { grid-area: chat; }
.dd-home-card--art { grid-area: art; flex-direction: row; }
.dd-home-card--statblock { grid-area: sb; }
.dd-home-card--music { grid-area: music; }
.dd-home-card--sheet { grid-area: sheet; }
.dd-home-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; }
.dd-home-card__title { margin: 0; color: var(--dd-gold-bright); font-family: var(--dd-font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.dd-home-card__note { margin: 0; color: var(--dd-ink-muted); font-size: .9rem; line-height: 1.5; }
.dd-home-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.dd-home-card__cost { color: var(--dd-ink-soft); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.dd-home-shots { display: grid; flex: 1.75 1 0; grid-template-columns: 1fr 1fr .8fr; gap: 3px; min-width: 0; min-height: 270px; background: var(--dd-surface-sunken); }
.dd-home-shot { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.dd-home-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dd-home-shot figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: var(--dd-radius-full); background: var(--dd-tile-tag-bg); color: var(--dd-ink); font-size: .75rem; }
.dd-home-card--art .dd-home-card__body { flex: 1 1 0; }
.dd-home-card__sheet { display: block; width: 100%; height: clamp(190px, 14vw, 240px); object-fit: cover; object-position: center 4%; border-bottom: 1px solid var(--dd-border); }
.dd-home-facts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.dd-home-facts li { display: flex; align-items: flex-start; gap: 9px; color: var(--dd-ink); font-size: .9rem; line-height: 1.45; }
.dd-home-facts .dd-ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--dd-success); }
.dd-home-sample { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 2px; padding: 16px; border: 1px solid var(--dd-border); border-radius: var(--dd-radius-md); background: var(--dd-surface-sunken); }
.dd-home-sample__you { align-self: flex-end; max-width: 85%; margin: 0; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: var(--dd-surface-active); color: var(--dd-ink-primary); font-size: .9rem; }
.dd-home-sample__master { display: flex; flex-direction: column; gap: 6px; max-width: 94%; }
.dd-home-sample__who { display: inline-flex; align-items: center; gap: 6px; color: var(--dd-gold); font-size: .75rem; font-weight: 600; }
.dd-home-sample__who img { width: 18px; height: 18px; border-radius: 50%; }
.dd-home-sample__master p { margin: 0; padding: 10px 14px; border: 1px solid var(--dd-border); border-radius: 14px 14px 14px 4px; background: var(--dd-surface-elevated); color: var(--dd-ink); font-size: .9rem; line-height: 1.5; }
.dd-home-ask { display: flex; gap: 8px; margin-top: 4px; }
.dd-home-ask__input { flex: 1; min-width: 0; min-height: 40px; }
.dd-home-moods { display: flex; flex-wrap: wrap; gap: 6px; }
.dd-home-mood { padding: 6px 12px; border: 1px solid var(--dd-border); border-radius: var(--dd-radius-full); background: var(--dd-surface-sunken); color: var(--dd-ink-muted); font: 500 .8125rem/1.2 var(--dd-font-body); cursor: pointer; }
.dd-home-mood:hover { border-color: var(--dd-border-gold); color: var(--dd-ink-primary); }

/* the table tools */
.dd-home-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--dd-border); }
.dd-home-tool { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 6px; border: 0; border-bottom: 1px solid var(--dd-border); background: transparent; color: var(--dd-ink); font-family: var(--dd-font-body); text-align: left; cursor: pointer; }
.dd-home-tool__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-md); background: var(--dd-surface-panel); color: var(--dd-gold); transition: border-color var(--dd-duration-fast) ease, color var(--dd-duration-fast) ease; }
.dd-home-tool__icon .dd-ico { width: 21px; height: 21px; }
.dd-home-tool__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dd-home-tool__label { color: var(--dd-ink-primary); font-family: var(--dd-font-display); font-size: 1.2rem; font-weight: 700; }
.dd-home-tool__hint { color: var(--dd-ink-soft); font-size: .875rem; }
.dd-home-tool__arrow { display: grid; place-items: center; margin-left: auto; color: var(--dd-gold-dim); transition: transform var(--dd-duration-normal) var(--dd-ease), color var(--dd-duration-fast) ease; }
.dd-home-tool__arrow .dd-ico { width: 18px; height: 18px; }
.dd-home-tool:hover .dd-home-tool__icon { border-color: var(--dd-border-gold); color: var(--dd-gold-bright); }
.dd-home-tool:hover .dd-home-tool__arrow { color: var(--dd-gold-bright); transform: translateX(4px); }

/* the close */
.dd-home-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(56px, 6vw, 96px); padding: clamp(30px, 4vw, 46px) max(var(--home-pad), calc((100% - var(--home-max)) / 2)); border-top: 1px solid var(--dd-border); background: radial-gradient(ellipse 55% 140% at 50% 0%, rgba(49, 28, 76, .5), transparent 70%), var(--dd-surface-sunken); }
.dd-home-close__text { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
.dd-home-close__logo { grid-row: span 2; width: 52px; height: 52px; }
.dd-home-close__motto { margin: 0; color: var(--dd-gold-bright); font-family: var(--dd-font-display); font-size: 1.45rem; font-weight: 700; }
.dd-home-close__note { margin: 2px 0 0; color: var(--dd-ink-soft); font-size: .875rem; }
.dd-home-close__social { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-home-social { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-md); background: var(--dd-surface-panel); color: var(--dd-ink); font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.dd-home-social .dd-ico { width: 18px; height: 18px; color: var(--dd-gold); }
.dd-home-social:hover { border-color: var(--dd-border-gold); }

/* ---------- narrower screens ---------- */
@media (max-width: 1280px) {
  .dd-home-work { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "art art" "chat chat" "sb music" "sb sheet"; }
}
@media (max-width: 1100px) {
  .dd-home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(200px, auto); }
  .dd-home-tile--bestiary { grid-row: auto; grid-column: span 2; min-height: 260px; }
}
@media (max-width: 900px) {
  .dd-home-patrons { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 84%); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dd-home-patrons::-webkit-scrollbar { display: none; }
  .dd-home-patron { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .dd-home-work { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chat" "art" "sb" "music" "sheet"; }
  .dd-home-card--art { flex-direction: column; }
  .dd-home-shots { flex: none; min-height: 0; height: 190px; }
  .dd-home-card__sheet { height: 240px; }
  .dd-home-tools { grid-template-columns: minmax(0, 1fr); }
  .dd-home-head .dd-btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .dd-home-hero { min-height: 0; padding: 40px 16px 64px; }
  .dd-home-hero__map { background-image: var(--dd-home-map-phone); }
  .dd-home-hero::before { background: linear-gradient(180deg, rgba(33, 12, 58, .62) 0%, rgba(10, 5, 18, .7) 40%, rgba(10, 5, 18, .78) 70%, var(--dd-bg) 100%); }
  .dd-home-hero__inner { gap: 14px; }
  .dd-home-lead { margin-bottom: 6px; }
  .dd-home-search__box { height: 56px; gap: 8px; padding: 0 6px 0 14px; }
  .dd-home-search__key { display: none; }
  .dd-home-search__input { font-size: 1rem; }
  .dd-home-ed { min-width: 46px; height: 36px; padding: 0 8px; font-size: .8125rem; }
  .dd-home-quick { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 32px); margin: 4px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .dd-home-quick::-webkit-scrollbar { display: none; }
  .dd-home-hero__caption { display: none; }
  .dd-home-hero__pause { left: auto; right: 16px; bottom: 14px; }
  .dd-home-section { padding-top: 40px; }
  .dd-home-tiles { gap: 10px; grid-auto-rows: minmax(160px, auto); }
  .dd-home-tile--bestiary { min-height: 220px; }
  .dd-home-tile__text { padding: 14px 14px 13px; }
  .dd-home-tile__note { display: none; }
  .dd-home-tile--bestiary .dd-home-tile__note { display: block; }
  .dd-home-tile--bestiary .dd-home-tile__text { padding: 18px; }
  .dd-home-close { flex-direction: column; align-items: flex-start; }
}

/* the text of the page in index.html itself: seen before the app starts and by search engines; the app replaces it */
.dd-home-static { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(48px, 9vh, 112px) 16px 40px; text-align: center; }
.dd-home-static__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; margin: 0; padding: 0; list-style: none; }
.dd-home-static__links a { display: inline-block; padding: 7px 14px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-full); color: var(--dd-ink-muted); font-size: .875rem; text-decoration: none; }
.dd-home-static__links a:hover { border-color: var(--dd-border-gold); color: var(--dd-ink-primary); }
.dd-home-static__wait { margin: 8px 0 0; color: var(--dd-gold); font-size: .875rem; }

/* 1.13.2: Telegram / ВКонтакте under «Место, где начинаются истории» at the bottom of the site menu */
.tavern-nav-footer__motto { display: block; }
.tavern-nav-social { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.tavern-nav-social__link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-full); background: rgba(10, 5, 18, .45); color: var(--dd-ink-muted); font: 500 .75rem/1 var(--dd-font-body); font-style: normal; letter-spacing: 0; text-decoration: none; transition: border-color var(--dd-duration-fast) ease, color var(--dd-duration-fast) ease, background-color var(--dd-duration-fast) ease; }
.tavern-nav-social__link .dd-ico { width: 14px; height: 14px; flex: none; color: var(--dd-gold); }
.tavern-nav-social__link:hover { border-color: var(--dd-border-gold); background: var(--dd-surface-hover); color: var(--dd-ink-primary); }
.tavern-nav-social__link:focus-visible { outline: none; box-shadow: var(--dd-shadow-focus); }
html[data-dd-collapsed="true"] .tavern-nav-footer.has-social { display: block !important; padding: 10px 0; }
html[data-dd-collapsed="true"] .tavern-nav-footer__motto, html[data-dd-collapsed="true"] .tavern-nav-social__link span { display: none; }
html[data-dd-collapsed="true"] .tavern-nav-social { flex-direction: column; align-items: center; gap: 6px; margin-top: 0; }
html[data-dd-collapsed="true"] .tavern-nav-social__link { justify-content: center; width: 34px; height: 34px; padding: 0; }

/* 1.13.2: the owner's tile pictures are 3:2 with the subject high in the frame */
.dd-home-tile__img { object-position: center 38%; }

/* ---------- 1.14.0 «Помощь» ---------- */
#dd-help-view { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--dd-gold-dim) transparent; }
.dd-help { width: 100%; max-width: 920px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 32px) 56px; display: flex; flex-direction: column; gap: 22px; box-sizing: border-box; }
.dd-help *, .dd-help *::before, .dd-help *::after { box-sizing: border-box; }
.dd-help-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 22px 24px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-lg); background: radial-gradient(ellipse 80% 140% at 0% 0%, rgba(49, 28, 76, .55), transparent 70%), var(--dd-surface-panel); }
.dd-help-top__text { flex: 1 1 380px; min-width: 0; }
.dd-help-top__title { margin: 0 0 6px; color: var(--dd-gold-bright); font-family: var(--dd-font-display); font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem); font-weight: 700; line-height: 1.2; }
.dd-help-top__lead { margin: 0; color: var(--dd-ink-muted); font-size: .95rem; line-height: 1.55; }
.dd-help-top__write { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-help-list { display: flex; flex-direction: column; border-top: 1px solid var(--dd-border); }
.dd-help-q { border-bottom: 1px solid var(--dd-border); }
.dd-help-q__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; color: var(--dd-ink-primary); font-family: var(--dd-font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.dd-help-q__title::-webkit-details-marker { display: none; }
.dd-help-q__title:hover { color: var(--dd-gold-bright); }
.dd-help-q__title:focus-visible { outline: none; box-shadow: var(--dd-shadow-focus); border-radius: var(--dd-radius-sm); }
.dd-help-q__chevron { flex: none; display: grid; place-items: center; color: var(--dd-gold-dim); transition: transform var(--dd-duration-normal) var(--dd-ease), color var(--dd-duration-fast) ease; }
.dd-help-q__chevron .dd-ico { width: 18px; height: 18px; }
.dd-help-q[open] .dd-help-q__chevron { transform: rotate(90deg); color: var(--dd-gold-bright); }
.dd-help-q__body { padding: 0 4px 18px; max-width: 72ch; }
.dd-help-q__body p { margin: 0 0 10px; color: var(--dd-ink); font-size: .95rem; line-height: 1.6; }
.dd-help-q__body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .dd-help-top { padding: 18px; }
  .dd-help-top__write, .dd-help-top__write .dd-home-social { width: 100%; justify-content: center; }
  .dd-help-q__title { font-size: 1.05rem; }
}

/* the «Помощь» line at the bottom of «Главная» */
.dd-home-close__help { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--dd-gold); font: 600 .875rem/1.3 var(--dd-font-body); cursor: pointer; }
.dd-home-close__help .dd-ico { width: 16px; height: 16px; }
.dd-home-close__help:hover { color: var(--dd-gold-bright); text-decoration: underline; text-underline-offset: 3px; }

/* a tester's mode (a plain visitor sees none, 1.14.0) */
.tavern-role-control .tavern-role-badge { display: inline-flex; align-items: center; margin: 8px 16px 0; padding: 3px 10px; border: 1px solid var(--dd-border-strong); border-radius: var(--dd-radius-full); color: var(--dd-ink-soft); font: 600 .75rem/1.3 var(--dd-font-body); }

/* 1.15.0: the site's documents, the seller's requisites and the «16+» mark */
.dd-age-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 38px; height: 22px; padding: 0 7px; border: 1px solid var(--dd-border-strong); border-radius: 6px; color: var(--dd-ink-soft); font-size: .75rem; font-weight: 600; line-height: 1; }
.dd-home-legal { flex: 1 1 100%; width: 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 18px; border-top: 1px solid var(--dd-border); }
.dd-home-legal__links, .dd-help-legal__links { display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; max-width: 100%; }
.dd-home-legal__links a, .dd-help-legal__links a { color: var(--dd-ink-soft); font-size: .85rem; text-decoration: underline; text-decoration-color: var(--dd-border-strong); text-underline-offset: 3px; }
.dd-home-legal__links a:hover, .dd-help-legal__links a:hover { color: var(--dd-gold-bright); text-decoration-color: var(--dd-gold-bright); }
.dd-home-legal__seller { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--dd-ink-subtle); font-size: .8rem; }
.dd-site-mail { color: var(--dd-ink-soft); text-decoration: underline; text-decoration-color: var(--dd-border-strong); text-underline-offset: 3px; }
.dd-site-mail:hover { color: var(--dd-gold-bright); }
.dd-home-legal a:focus-visible, .dd-help-legal a:focus-visible, .tavern-nav-legal a:focus-visible { outline: none; box-shadow: var(--dd-shadow-focus); border-radius: 4px; }
.dd-help-legal { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--dd-border); border-radius: var(--dd-radius-lg, 14px); background: var(--dd-surface-card); }
.dd-help-legal__title { margin: 0 0 12px; color: var(--dd-gold-bright); font-family: var(--dd-font-display); font-size: 1.2rem; font-weight: 700; }
.dd-help-legal__links a { font-size: .95rem; color: var(--dd-ink); }
.dd-help-legal__seller { margin: 12px 0 0; color: var(--dd-ink-muted); font-size: .9rem; line-height: 1.55; }
.tavern-nav-legal { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.tavern-nav-legal__link { color: var(--dd-ink-subtle); font-size: .8rem; text-decoration: underline; text-decoration-color: var(--dd-border-strong); text-underline-offset: 3px; }
.tavern-nav-legal__link:hover { color: var(--dd-gold-bright); }
html[data-dd-collapsed="true"] .tavern-nav-legal { display: none; }
.dd-prof-offer-note a, .tavern-account-legal a { color: var(--dd-gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.tavern-account-legal { margin-top: 10px; }
@media (max-width: 600px) {
  .dd-home-legal { flex: none; flex-direction: column; align-items: stretch; align-self: stretch; }
  .dd-home-legal__links { gap: 8px 16px; }
  .dd-help-legal { padding: 18px; }
}
.dd-home-static__legal { margin: 14px 0 0; color: var(--dd-ink-subtle); font-size: .8rem; }
.dd-home-static__legal a { color: var(--dd-ink-soft); }

/* 1.16.0: the cookie line (Yandex Metrika): a bar along the bottom; while it shows, the site stands above it */
.dd-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--dd-border-strong); background: var(--dd-surface-elevated, #221435); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
.dd-cookie__text { margin: 0; color: var(--dd-ink-muted); font-size: .85rem; line-height: 1.45; }
.dd-cookie__text a { color: var(--dd-gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.dd-cookie__ok { flex: none; }
html.dd-has-cookie .dd-main { height: calc(100dvh - var(--dd-cookie-h, 0px)); max-height: calc(100dvh - var(--dd-cookie-h, 0px)); }
html.dd-has-cookie #site-navigation, html.dd-has-cookie .dd-composer, html.dd-has-cookie .dd-deck { bottom: var(--dd-cookie-h, 0px); }
html.dd-has-cookie .dd-toast { bottom: calc(24px + var(--dd-cookie-h, 0px)); }
@media (max-width: 600px) {
  .dd-cookie { justify-content: space-between; gap: 12px; padding: 10px 14px; }
  .dd-cookie__text { font-size: .8rem; }
}

/* 1.17.0: the sign-in window — «Забыли пароль?», the «я не робот» check, the letter screens */
.tavern-account-link { align-self: flex-start; margin: -4px 0 0; padding: 2px 0; border: 0; background: none; color: var(--dd-gold-bright); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tavern-account-link:hover { color: var(--dd-ink-primary); }
.tavern-account-link:focus-visible { outline: none; box-shadow: var(--dd-shadow-focus); border-radius: 4px; }
.tavern-account-captcha { min-height: 102px; }
.tavern-account-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tavern-account-row .tavern-account-action, .tavern-account-notice + .tavern-account-action { flex: 1 1 160px; }
.tavern-account-notice + .tavern-account-action { width: 100%; margin: 8px 0 4px; }
.tavern-account-body > form + .tavern-account-action.secondary { width: 100%; margin-top: 12px; }
