/* ==========================================================
   Shisha Lounge OPAQUE — Menu
   ========================================================== */

:root {
  --bg: #11151C;
  --bg-deep: #0D1016;
  --copper: #D97E2D;
  --copper-soft: rgba(217, 126, 45, .92);
  --copper-mute: rgba(217, 126, 45, .85);
  --copper-border: rgba(217, 126, 45, .62);
  --copper-line: rgba(217, 126, 45, .5);
  --copper-faint: rgba(217, 126, 45, .28);
  --copper-tint: rgba(217, 126, 45, .05);
  --cream: #F6E9D2;
  --cream-cap: #FFEEDB;
  --font: Optima, "Marcellus", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--copper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
ul, ol { list-style: none; }
em { font-style: normal; }

/* ---------- ornaments ---------- */
.ornament { margin: 0 auto 28px; width: 120px; }

/* ==========================================================
   Opening loader
   (旧サイト opaque_theme の p-menu-loader を移植。
    load後 3.25s ロゴGIF表示 → 暗幕が下から上へ2sスイープ → 5.5s で除去)
   ========================================================== */
.menu-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 1000;
}
.menu-loader::before,
.menu-loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
}
.menu-loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
}
.menu-loader-logo img {
  max-width: min(400px, 100%);
  margin: 0 auto;
}
.menu-loader.is-loaded {
  animation: loader-dismiss .1s linear 5.5s both;
}
.menu-loader.is-loaded::before {
  animation: loader-fade-out .1s linear 4.25s both;
}
.menu-loader.is-loaded::after {
  animation: loader-sweep 2s linear 3.25s both;
}
.menu-loader.is-loaded .menu-loader-logo {
  animation: loader-fade-out .1s linear 4.25s both;
}
@keyframes loader-fade-out {
  from { opacity: 1; visibility: visible; }
  to   { opacity: 0; visibility: hidden; }
}
@keyframes loader-sweep {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}
@keyframes loader-dismiss {
  from { opacity: 1; visibility: visible; z-index: 1000; }
  to   { opacity: 0; visibility: hidden; z-index: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-loader { display: none; }
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  padding: 48px 20px 8px;
  text-align: center;
}
.site-logo { display: inline-block; }
.site-logo img { width: 152px; margin: 0 auto; }
.site-title {
  font-size: 26px;
  letter-spacing: .35em;
  text-indent: .35em;
  margin: 18px 0 26px;
}

/* ==========================================================
   Drawer nav (:target)
   ========================================================== */
.nav-open {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
  transition: opacity .3s;
}
.nav-open:hover { opacity: .75; }
.nav-open img { width: 50px; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  height: 100vh;
  height: 100dvh;
  width: min(320px, 86vw);
  background: var(--bg-deep);
  border-left: 1px solid var(--copper-faint);
  padding: 72px 30px 40px;
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), visibility .45s;
}
.drawer:target {
  transform: translateX(0);
  visibility: visible;
}

.nav-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 34px;
  height: 34px;
}
.nav-close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--copper);
}
.nav-close span:first-child { transform: rotate(45deg); }
.nav-close span:last-child { transform: rotate(-45deg); }

.drawer-list > li { margin-bottom: 22px; }
.drawer-list a { display: block; line-height: 1.5; }
.drawer-list a:hover { opacity: .75; }
.drawer-list em {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--copper-mute);
}
.drawer-sub { margin: 10px 0 0 14px; }
.drawer-sub li { margin-bottom: 8px; }
.drawer-sub a { font-size: 13px; color: var(--copper-soft); }

.drawer-sns { display: flex; gap: 22px; justify-content: center; margin-top: 34px; }
.drawer-sns img { width: 34px; opacity: .9; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.drawer:target + .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================
   Sections (common)
   ========================================================== */
.section {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 24px;
}
.section,
.flavor-cat,
.flavor-group,
.drink-cat,
.options {
  scroll-margin-top: 16px;
}
.section-wide { max-width: 1120px; }

.section-head { text-align: center; margin-bottom: 40px; }

.section-title {
  font-size: clamp(27px, 7vw, 32px);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.3;
}
.section-title > span:not(.ja):not(.en) {
  display: block;
  font-size: 12px;
  letter-spacing: .3em;
  text-indent: .3em;
  margin-top: 10px;
  color: var(--copper-mute);
}

.section-lead {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
}

/* photo banner */
.section-banner {
  position: relative;
  max-width: 686px;
  margin: 0 auto;
}
.section-banner img { width: 100%; }
.section-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 52% at 50% 50%, rgba(13, 16, 22, .82), rgba(13, 16, 22, 0) 74%),
    rgba(13, 16, 22, .22);
}
.section-title.on-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .6);
}
.section-title.on-photo span { color: rgba(246, 233, 210, .85); }

/* ==========================================================
   Concept (3つのこだわり)
   ========================================================== */
.concept {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
}
.concept-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .2em;
  margin-bottom: 44px;
}
.concept-grid {
  display: grid;
  gap: 44px;
  max-width: 560px;
  margin: 0 auto;
}
/* 本番サイト準拠: カッパー下線 + 両端クリームのキャップ */
.concept-item h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.21;
  position: relative;
  width: fit-content;
  margin: 0 auto 16px;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 8px;
}
.concept-item h3::before,
.concept-item h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 16px;
  height: 1px;
  background: var(--cream-cap);
}
.concept-item h3::before { left: 0; }
.concept-item h3::after { right: 0; }
.concept-item p {
  font-size: 14.5px;
  line-height: 1.9;
  text-align: left;
  color: var(--copper-soft);
}
@media (min-width: 860px) {
  .concept-grid {
    max-width: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* ==========================================================
   System — 額縁カード
   ========================================================== */
.frame-royal {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  border: 50px solid transparent;
  border-image: url("../assets/img/deco_1.png") 100 / 50px stretch;
  padding: 10px 8px 18px;
  text-align: center;
}
.frame-royal .fan { width: 96px; margin: 0 auto 20px; }
.frame-lead {
  font-size: 14.5px;
  line-height: 1.9;
  text-align: left;
  color: var(--copper-soft);
  margin-bottom: 26px;
}
.charge-list { margin-bottom: 22px; }
.charge-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
}
.charge-row + .charge-row { border-top: 1px dotted var(--copper-faint); }
.charge-row dt { font-size: 16px; letter-spacing: .08em; }
.charge-row dd { font-size: 20px; }
.charge-row dd small {
  font-size: 12.5px;
  color: var(--copper-mute);
  margin-right: 10px;
}
.notes {
  text-align: left;
  font-size: 13.5px;
  color: var(--copper-mute);
  line-height: 1.8;
}

/* ==========================================================
   SHISHA System — システムカード(本番サイト準拠)
   ========================================================== */
.sys-fan {
  width: 154px;
  margin: 0 auto 18px;
}
.sys-grid {
  display: grid;
  gap: 48px;
  max-width: 520px;
  margin: 0 auto;
}

.sys-card {
  position: relative;
  border: 1px solid var(--copper);
  background: rgba(217, 126, 45, .1);
  padding: 40px 16px;
  text-align: center;
}
.sys-card.has-photo { padding-top: 24px; }

/* 四隅の扇飾り */
.fc {
  position: absolute;
  width: 77px;
  height: 78px;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}
.fc-tl { top: -5px; left: -5px; background-image: url("../assets/img/deco_4.png"); }
.fc-tr { top: -5px; right: -5px; background-image: url("../assets/img/deco_5.png"); }
.fc-br { bottom: -5px; right: -5px; background-image: url("../assets/img/deco_6.png"); }
.fc-bl { bottom: -5px; left: -5px; background-image: url("../assets/img/deco_7.png"); }

.sys-photo {
  max-width: 294px;
  margin: 0 auto 16px;
}
.sys-name {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.2;
}
.sys-for {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--copper-mute);
  margin-top: 6px;
}
.sys-price {
  font-size: 21px;
  margin: 12px 0 0;
}
.sys-desc {
  max-width: 420px;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
  color: var(--copper-soft);
}
.sys-card.has-photo .sys-desc { text-align: center; }
.sys-spec {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
}
.sys-note {
  text-align: center;
  font-size: 13px;
  color: var(--copper-mute);
  margin: 22px 0 0;
}

/* ---------- 追加オプション ---------- */
.options {
  max-width: 640px;
  margin: 56px auto 0;
}
.options-title {
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .2em;
  margin-bottom: 8px;
}
.options-title > span:not(.ja):not(.en) {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--copper-mute);
  margin-top: 6px;
}
.option-rows { margin-top: 22px; }
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px dotted var(--copper-faint);
}
.option-row:first-child { border-top: 1px dotted var(--copper-faint); }
.option-row dt { font-size: 16px; letter-spacing: .06em; }
.option-row dt small {
  display: block;
  font-size: 12.5px;
  color: var(--copper-mute);
  letter-spacing: .04em;
  margin-top: 3px;
}
.option-row dd { font-size: 18px; white-space: nowrap; }
.option-row dd small { font-size: 11px; color: var(--copper-mute); }

/* ==========================================================
   SHISHA Menu — フレーバー
   ========================================================== */
/* バッジ */
.badge {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.badge-all { border: 1px solid var(--copper-border); }
.badge-plus { border: 1px dashed var(--copper-border); }
.badge-premium { background: var(--copper); color: var(--bg); }

/* カテゴリ */
.flavor-cat {
  max-width: 860px;
  margin: 0 auto 56px;
}
.cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
/* 本番サイト準拠: クリーム下線 + 右端カッパーのアクセント */
.cat-head h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  border-bottom: 1px solid var(--cream-cap);
  padding-bottom: 7px;
}
.cat-head h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 23px;
  height: 1px;
  background: var(--copper);
}
.cat-price {
  margin-left: auto;
  font-size: 16px;
  letter-spacing: .06em;
}
.cat-note {
  font-size: 13.5px;
  color: var(--copper-mute);
  margin: -10px 0 20px;
}

.item-grid {
  display: grid;
  gap: 14px 44px;
}
@media (min-width: 760px) {
  .item-grid { grid-template-columns: 1fr 1fr; }
}
.item-grid li { padding-left: 14px; position: relative; }
.item-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--copper);
}
.item-name {
  display: block;
  font-size: 18px;
  letter-spacing: .05em;
  line-height: 1.5;
}
.item-name em {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--copper-mute);
}
.item-desc {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--copper-mute);
  margin-top: 2px;
}

/* ==========================================================
   Drink / Food
   ========================================================== */
.drink-cat {
  max-width: 860px;
  margin: 0 auto 56px;
}
.drink-columns {
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .drink-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 72px;
    align-items: start;
  }
  .drink-columns .drink-cat { margin: 0 0 56px; }
}

/* Signature list */
.drink-grid {
  display: grid;
  gap: 18px 44px;
}
@media (min-width: 860px) {
  .drink-grid { grid-template-columns: 1fr 1fr; }
}
.drink-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 0 12px;
  align-items: start;
}
.drink-icon {
  width: 26px;
  margin-top: 3px;
  opacity: .95;
}
.drink-item .price { padding-top: 3px; }

/* Cocktail carousel (Long / Short) */
.drink-cat--carousel {
  --cocktail-card-w: clamp(200px, 64%, 260px);
  timeline-scope: --cocktail;
}
.cocktail-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-inline: -20px;
  padding-inline: 20px;
  scroll-padding-inline: 20px;
  padding-bottom: 20px;
  scroll-timeline-name: --cocktail;
  scroll-timeline-axis: x;
}
.cocktail-track::-webkit-scrollbar { display: none; }
.cocktail-card {
  flex: 0 0 auto;
  min-width: 0;
  width: var(--cocktail-card-w);
  scroll-snap-align: start;
}
.cocktail-photo { display: block; }
.cocktail-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
}
.cocktail-body {
  padding: 12px 2px 0;
  text-align: left;
}
.cocktail-body .item-name {
  display: block;
  font-size: 17px;
  letter-spacing: .05em;
  line-height: 1.4;
}
.cocktail-body .item-desc {
  display: block;
  font-size: 13px;
  color: var(--copper-mute);
  line-height: 1.6;
  margin-top: 2px;
}
.cocktail-body .price {
  display: block;
  font-size: 15px;
  margin-top: 6px;
  white-space: normal;
}
.cocktail-progress {
  display: none;
  width: 100%;
  height: 1px;
  background: var(--copper-faint);
}
@supports (animation-timeline: scroll()) {
  .cocktail-progress { display: block; }
  .cocktail-progress span {
    display: block;
    width: 25%;
    height: 1px;
    background: var(--copper);
    animation: cocktail-progress linear both;
    animation-timeline: --cocktail;
  }
}
@keyframes cocktail-progress {
  from { transform: translateX(0); }
  to { transform: translateX(300%); }
}
/* Match the existing mobile section padding. */
@media (max-width: 560px) {
  .cocktail-track {
    margin-inline: -18px;
    padding-inline: 18px;
    scroll-padding-inline: 18px;
  }
}
@media (min-width: 860px) {
  .drink-cat--carousel { --cocktail-card-w: 236px; }
  .cocktail-track {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
    gap: 20px;
  }
  .cocktail-progress { max-width: 320px; }
}
@media print {
  .cocktail-track {
    overflow: visible;
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
  }
  .cocktail-card { width: 30%; }
  .cocktail-progress { display: none; }
}

/* price rows with dotted leaders */
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
}
.price-list .item-name { font-size: 16.5px; flex: 0 1 auto; }
.price-list .item-name em {
  display: inline;
  font-size: 12.5px;
  color: var(--copper-mute);
  margin-left: 4px;
}
.dots {
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 1px dotted var(--copper-faint);
  transform: translateY(-4px);
}
.price {
  white-space: nowrap;
  font-size: 17px;
}
.price-list .has-desc {
  align-items: flex-start;
  justify-content: space-between;
}
.price-list .drink-icon { width: 24px; margin-top: 3px; }
.drink-main { flex: 1 1 auto; min-width: 0; }
.drink-main .item-name { font-size: 17px; }
.drink-main .item-desc { font-size: 13px; }

/* ブレイクダウン行(Clase Azul 内の Reposado 等) */
.price-list .sub-item { padding-left: 14px; }
.price-list .sub-item .item-name { font-size: 15px; }

.cat-foot {
  font-size: 13px;
  color: var(--copper-mute);
  margin-top: 10px;
}
.cat-foot .price { font-size: 14px; color: var(--copper); margin-left: 8px; }

.food-list { max-width: 520px; margin: 0 auto; }

/* ==========================================================
   Attention
   ========================================================== */
.attention-card {
  border: 1px solid var(--copper-faint);
  background: var(--copper-tint);
  padding: 28px 26px;
}
.attention-list { display: grid; gap: 12px; }
.attention-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--copper-soft);
}
.attention-list li::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--copper);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  margin-top: 72px;
  padding: 56px 20px 40px;
  border-top: 1px solid rgba(217, 126, 45, .14);
  text-align: center;
}
.footer-logo { width: 128px; margin: 0 auto 26px; }
.footer-sns {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 30px;
}
.footer-sns img { width: 34px; }
.copyright {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--copper-mute);
}

/* ==========================================================
   Fine tuning
   ========================================================== */
@media (max-width: 480px) {
  .frame-royal {
    border-width: 40px;
    border-image: url("../assets/img/deco_1.png") 100 / 40px stretch;
  }
  .drink-item { grid-template-columns: 30px 1fr auto; }
  .price-list li { flex-wrap: wrap; }
  .price-list .dots { display: none; }
  .price-list .price { margin-left: auto; }
  .price-list .has-desc .drink-main { flex: 1 1 200px; }
}

/* ---------- スマホ最適化(サイズ感の調整) ---------- */
@media (max-width: 560px) {
  .site-header { padding: 36px 20px 4px; }
  .site-logo img { width: 138px; }
  .site-title { font-size: 22px; margin: 14px 0 20px; }
  .ornament { width: 104px; margin-bottom: 22px; }
  .section { padding: 54px 18px 18px; }
  .section-head { margin-bottom: 30px; }
  .concept { padding: 16px 18px 28px; }
  .concept-grid { gap: 34px; }
  .sys-name { font-size: 28px; }
  .sys-grid { gap: 44px; }
  .options { margin-top: 44px; }
  .options-title { font-size: 18px; }
  .flavor-cat { margin-bottom: 44px; }
  .drink-cat { margin-bottom: 44px; }
  .attention-card { padding: 22px 18px; }
  .site-footer { margin-top: 56px; padding: 44px 20px 32px; }
}

/* 中央揃え見出しの光学中心補正 */
.section-title { text-indent: .1em; }
.concept-title { text-indent: .2em; }
.options-title { text-indent: .2em; }

/* 印刷 */
@media print {
  body { background: #fff; color: #5a3512; }
  .nav-open,
  .drawer,
  .drawer-backdrop,
  .site-footer .btn-official,
  .footer-sns { display: none !important; }
  .section-banner::after { background: rgba(13, 16, 22, .45); }
  .sys-card,
  .attention-card { background: none; }
}

/* ==========================================================
   Language (JA / EN)
   コンテンツはHTML内に .ja / .en で日英併記し、<html lang> で切替
   (初期適用は<head>のインラインスニペット、切替は js/lang.js)
   ========================================================== */
html[lang="en"] .ja { display: none !important; }
html:not([lang="en"]) .en { display: none !important; }

.lang-switch {
  position: fixed;
  top: 30px;
  left: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 6px;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--copper-faint);
  cursor: pointer;
  transition: color .3s;
}
.lang-btn:hover { color: var(--copper-mute); }
.lang-btn.is-active { color: var(--copper); }
.lang-switch .sep { color: var(--copper-faint); font-size: 13px; }
@media print {
  .lang-switch { display: none !important; }
}

/* ==========================================================
   Whisky modal (CSS :target・ドロワーと同方式)
   ========================================================== */
.modal-open {
  display: block;
  border: 1px solid var(--copper-border);
  padding: 13px 16px;
  text-align: center;
  letter-spacing: .08em;
  transition: opacity .3s;
}
.modal-open:hover { opacity: .75; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.modal:target {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
}
.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: 85vh;
  max-height: 85dvh;
  background: var(--bg-deep);
  border: 1px solid var(--copper-border);
  padding: 24px 22px;
}
.modal-title {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .2em;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--copper-line);
}
.modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  z-index: 1;
}
.modal-close span {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 50%;
  height: 1px;
  background: var(--copper);
}
.modal-close span:first-child { transform: rotate(45deg); }
.modal-close span:last-child { transform: rotate(-45deg); }
@media print {
  .modal { position: static; display: block; }
  .modal-backdrop, .modal-close { display: none !important; }
}
