:root {
  color-scheme: light;
  --ink: #192c32;
  --red: #ad301f;
  --paper: #f8f1e2;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #df802c; outline-offset: 4px; }
#cover { width: min(1350px, 94vw); margin: 0 auto; padding-bottom: 1.5rem; }
.masthead, .table-bar, .table-bar nav, .actions { display: flex; align-items: center; }
.masthead {
  min-height: 66px; justify-content: space-between; gap: 1rem;
  border-bottom: 2px solid var(--ink); font-size: .89rem; font-weight: 650;
}
.masthead > span { color: #546166; }
.lounge-link { padding: .75rem 0; }
.lounge-link span, .to-cover span:first-child { margin-right: .45rem; }
.feature {
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.4fr);
  overflow: hidden; margin: clamp(22px, 4.6vw, 62px) 0 0;
  border: 2px solid var(--ink); background: #fff9ec;
  box-shadow: 5px 6px 0 var(--ink);
}
.intro { align-self: center; padding: clamp(24px, 3.9vw, 57px); }
.edition {
  margin: 0 0 1rem; color: var(--red); font-weight: 800; font-size: .86rem;
  text-transform: uppercase; letter-spacing: .17em;
}
h1 {
  margin: 0; font-size: clamp(2.6rem, 4.7vw, 5.2rem); letter-spacing: -.065em;
  font-weight: 900; line-height: 1.16;
}
.summary { max-width: 31em; margin: 1.5rem 0 1.2rem; line-height: 1.85; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.facts { font-size: .87rem; font-weight: 650; line-height: 1.8; margin: 0; }
.facts span { color: #9e8877; margin: 0 .22rem; }
.actions { flex-wrap: wrap; gap: 1.15rem; margin-top: 2rem; }
.primary {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--red); color: white; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: .85rem 1.1rem; font-weight: 750;
}
.primary:hover { background: #8f291e; }
.guide-link { border: 0; border-bottom: 1px solid; padding: .4rem 0; background: transparent; font-size: .92rem; font-weight: 650; }
.invite-link { margin: 1.25rem 0 0; padding: .3rem 0; border: 0; background: none; color: #36585b; font-size: .87rem; }
.invite-link:hover, .guide-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.illustration { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; border-left: 2px solid var(--ink); }
footer { margin: 1.65rem 0; color: #506168; font-size: .83rem; line-height: 1.8; }
footer a { color: #294c52; text-decoration: underline; text-underline-offset: 3px; }
#table { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #19191b; }
.table-bar {
  flex: none; background: var(--ink); color: #fbf4e5; min-height: 44px;
  padding: 0 max(.8rem, env(safe-area-inset-right)) 0 max(.8rem, env(safe-area-inset-left)); gap: 1rem;
  font-size: .85rem; border-bottom: 2px solid #dca658;
}
.table-bar a, .table-bar button { display: inline-flex; align-items: center; min-height: 42px; white-space: nowrap; }
.table-title { border-left: 1px solid #607176; padding-left: 1rem; font-weight: 700; }
.table-bar nav { gap: 1.2rem; margin-left: auto; }
.table-bar nav button { background: transparent; border: 0; padding: 0; }
.table-bar nav a span { margin-left: .3em; }
#frame-slot { flex: 1; min-height: 0; }
#frame-slot iframe { width: 100%; height: 100%; border: 0; display: block; background: #19191b; }
#frame-error { margin: 0; padding: .6rem 1rem; background: var(--paper); }
dialog { width: min(520px, 92vw); max-height: 86dvh; color: var(--ink); padding: 1.7rem 2rem; border: 2px solid; background: #fff9ec; }
dialog::backdrop { background: #101c21be; }
dialog h2 { margin: .25rem 2.5rem 1.2rem 0; font-size: 1.5rem; }
dialog dl { margin: 0; }
dialog dt { margin-top: .95rem; font-weight: 750; color: var(--red); }
dialog dd { margin: .25rem 0 0; line-height: 1.7; font-size: .94rem; }
#invite p { line-height: 1.7; font-size: .94rem; }
#invite label { display: block; font-size: .88rem; font-weight: 700; margin: 1.2rem 0 .45rem; }
#invite input { width: 100%; padding: .7rem; font: inherit; border: 1px solid #768080; background: white; }
.invite-actions { margin-top: 1rem; display: flex; gap: 1.3rem; align-items: center; }
#invite-info:empty { display: none; }
.close { position: absolute; top: .8rem; right: .8rem; min-width: 36px; min-height: 36px; font-size: 1.5rem; line-height: 1; border: 1px solid; background: transparent; }
@media (max-width: 760px) {
  #cover { width: min(92vw, 560px); }
  .masthead { min-height: 50px; }
  .feature { grid-template-columns: 1fr; margin-top: 18px; }
  .illustration { grid-row: 1; height: clamp(145px, 47vw, 260px); min-height: 0; border: 0; border-bottom: 2px solid var(--ink); object-position: center 48%; }
  .intro { padding: 1.45rem; }
  .edition { margin-bottom: .55rem; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .summary { margin: .85rem 0 .6rem; }
  .actions { margin-top: 1.2rem; }
  footer { margin: 1.1rem 0; }
}
@media (max-width: 420px) {
  .table-title { display: none; }
  .table-bar, .table-bar nav { gap: .6rem; }
}
