/* marcoso.org — 盤香 · the incense coil
   One calm screen: a coil you turn with your thumb, and below it the room you are in.
   Some rooms open deeper (大殿, 迴廊) in a sheet. Behind everything, the light moves
   from 日光 to 月光 to 琉璃光 as the ember burns inward. */

:root {
  /* day (paper) */
  --ink: #241f1c;
  --soft: #5a514a;
  --card: rgba(247, 243, 236, .92);
  --card-edge: rgba(255, 255, 255, .85);
  --line: rgba(60, 48, 40, .14);
  --chip: rgba(255, 255, 255, .55);
  /* fixed colours */
  --sandal: #7a5638;
  --ember: #e2572b;
  --tag: #ab2c24;
  --tag-ink: #fff4ec;
  --lapis: #3557b5;
  --gold: #e8b35a;
  --edge: 200deg;
  --zh: "Chiron Hei HK", "PingFang HK", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --col: 520px;
  color-scheme: light;
}
/* night (lapis glass): the page eases into this as the light passes dusk */
html[data-tone="dark"] {
  --ink: #f3f6ff;
  --soft: #c6d2f3;
  --card: rgba(10, 24, 72, .84);
  --card-edge: rgba(170, 200, 255, .38);
  --line: rgba(180, 205, 255, .2);
  --chip: rgba(120, 160, 255, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }
button, a, .chip, .doors, .scroll, .hold { touch-action: manipulation; }
.stage, .bar, .chip, .doors, .scroll, .hold { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body {
  margin: 0;
  min-height: 100svh;
  background: #ece2cc;
  color: var(--ink);
  font-family: var(--zh);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: color 1.2s ease;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#light { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; pointer-events: none; display: block; }

.app {
  position: relative; z-index: 1;
  max-width: var(--col);
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px;
}

/* top line */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--soft);
  transition: color 1.2s ease, background-color 1.2s ease;
}
.top b { font-family: var(--zh); font-size: 15px; letter-spacing: .2em; color: var(--ink); font-weight: 700; transition: color 1.2s ease; }
.top span { font-variant-numeric: tabular-nums; }

/* the stage: a window onto the light, with the coil hanging in it */
.stage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 60px rgba(255, 255, 255, .12);
}
.stage::before { /* refraction rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--edge), rgba(255, 255, 255, .9), rgba(255, 210, 140, .7), rgba(255, 255, 255, .3), rgba(140, 185, 255, .8), rgba(170, 255, 236, .55), rgba(255, 255, 255, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
#coil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#coil:active { cursor: grabbing; }

/* red tags tied during this visit */
.tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tags:empty { display: none; }
.tg {
  writing-mode: vertical-rl; background: var(--tag); color: var(--tag-ink);
  font-size: 12px; letter-spacing: .14em; padding: 8px 4px; max-height: 150px; white-space: nowrap; overflow: hidden; border-radius: 2px;
  transform-origin: top center; animation: swing 4s ease-in-out infinite alternate;
}
.tg:nth-child(2n) { animation-duration: 5s; }
@keyframes swing { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* the room card */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-edge), inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 40px -30px rgba(20, 16, 30, .5);
  min-height: 220px;
  transition: background-color 1.2s ease, box-shadow 1.2s ease;
}
.card::after { /* slow caustic shimmer inside the glass */
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .5), transparent) 0 0 / 170px 120px,
    radial-gradient(closest-side, rgba(255, 236, 200, .4), transparent) 50px 30px / 230px 190px,
    radial-gradient(closest-side, rgba(200, 225, 255, .4), transparent) 120px 80px / 300px 210px;
  mix-blend-mode: soft-light; opacity: .45;
}
.room { animation: arrive .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

.kick { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--soft); }
.card h2 { margin: 6px 0 8px; font-size: 24px; font-weight: 700; letter-spacing: .12em; line-height: 1.45; }
.card p { margin: 0 0 10px; font-size: 16px; }
.en { display: block; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--soft); letter-spacing: 0; }
.card p.en { margin-bottom: 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--chip);
  font-size: 14px; letter-spacing: .1em; text-decoration: none; cursor: pointer;
  transition: transform .18s, background-color 1.2s, border-color 1.2s;
}
.chip .en { display: inline; font-size: 11.5px; margin: 0; }
.chip:active { transform: scale(.95); }

/* 大殿: a line for today */
.slip { margin-top: 14px; padding: 4px 0 2px; }
.slip .zh { display: block; font-size: 17px; line-height: 1.85; letter-spacing: .04em; }
.slip.draw { animation: draw .7s ease; }
@keyframes draw { 35% { opacity: 0; transform: translateY(-6px) rotate(-1deg); } 36% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

/* 迴廊: overview list */
.peek { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.peek li { border-bottom: 1px solid var(--line); }
.peek a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 0; text-decoration: none; min-height: 44px; }
.peek .no { font-family: var(--mono); font-size: 11px; color: var(--soft); padding-top: 5px; font-variant-numeric: tabular-nums; }
.peek .t { font-size: 16px; line-height: 1.6; }
.peek .t .en { font-size: 12px; }

/* 大殿, not yet open: two frosted doors, light gathering behind them, leaking through the seam */
.doors {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  width: min(100%, 236px); height: 178px; margin: 20px auto 10px;
  perspective: 700px; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.doors .glow { /* the light inside the hall */
  position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, #fff6dc, rgba(255, 186, 80, .85) 24%, rgba(110, 155, 255, .55) 46%, rgba(110, 155, 255, 0) 70%);
  filter: blur(5px); opacity: .9; transform: scale(.85);
  animation: inside 7s ease-in-out infinite;
  transition: transform 1s cubic-bezier(.3, .7, .2, 1), opacity 1s;
}
@keyframes inside { 50% { opacity: .65; transform: scale(.78); } }
.doors::after { /* light spilling out under the doors */
  content: ""; position: absolute; left: 50%; bottom: -16px; width: 170px; height: 28px; margin-left: -85px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse, rgba(255, 200, 110, .7), rgba(126, 170, 255, .25) 50%, transparent 72%);
  filter: blur(4px); transition: transform 1s, opacity 1s; opacity: .8;
}
.doors.knock::after { transform: scaleX(1.35); opacity: 1; }
.door {
  position: relative; z-index: 1;
  background:
    radial-gradient(circle, rgba(255, 206, 130, .55) 0 1.2px, rgba(255, 190, 90, .14) 2.6px, transparent 4px) 50% 50% / 33% 22%,
    linear-gradient(165deg, rgba(255, 255, 255, .62), rgba(255, 244, 226, .3) 55%, rgba(255, 255, 255, .5));
  background-origin: content-box, border-box; background-repeat: repeat, no-repeat; padding: 22px 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), inset 0 0 26px rgba(255, 210, 150, .4), 0 18px 34px -24px rgba(90, 70, 40, .45);
  transition: transform 1s cubic-bezier(.3, .7, .2, 1);
}
.door.l { border-radius: 16px 3px 3px 16px; transform-origin: left center; }
.door.r { border-radius: 3px 16px 16px 3px; transform-origin: right center; }
.door .ring { position: absolute; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%; border: 1.5px solid rgba(214, 168, 90, .75); box-shadow: 0 0 12px rgba(255, 200, 110, .8); }
.door.l .ring { right: 7px; } .door.r .ring { left: 7px; }
.seam {
  position: absolute; left: 50%; top: 6%; bottom: 6%; width: 3px; margin-left: -1.5px; z-index: 2; border-radius: 3px;
  background: linear-gradient(transparent, #fffaf0 15%, #ffcf78 45%, #8fb6ff 75%, transparent);
  box-shadow: 0 0 16px 4px rgba(255, 206, 120, .9), 0 0 44px 12px rgba(120, 165, 255, .45);
  animation: seam 7s ease-in-out infinite;
  transition: width .8s, margin .8s, box-shadow .8s;
}
@keyframes seam { 50% { opacity: .55; } }
.doors.knock .door.l { transform: rotateY(-8deg); }
.doors.knock .door.r { transform: rotateY(8deg); }
.doors.knock .glow { opacity: 1; transform: scale(1.15); }
.doors.knock .seam { width: 10px; margin-left: -5px; box-shadow: 0 0 26px 10px rgba(255, 220, 150, .9), 0 0 60px 20px rgba(140, 180, 255, .45); }
html[data-tone="dark"] .door { background:
    radial-gradient(circle, rgba(190, 215, 255, .95) 0 1.5px, rgba(140, 180, 255, .3) 3px, transparent 5px) 50% 50% / 25% 18%,
    linear-gradient(165deg, rgba(120, 160, 255, .28), rgba(40, 70, 160, .2) 55%, rgba(120, 160, 255, .25)); }

/* 迴廊, not yet open: luminous scrolls hanging from a beam of light, still rolled, the ink still wet */
.scrolls { position: relative; display: flex; justify-content: space-around; align-items: flex-start; min-height: 196px; margin: 18px 0 6px; padding: 0 4px; }
.scrolls::before { /* the beam */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 140, .9) 20%, #fff6dc 50%, rgba(255, 214, 140, .9) 80%, transparent);
  box-shadow: 0 0 12px 2px rgba(255, 210, 140, .55);
}
.scroll { position: relative; width: 17%; min-height: 44px; display: flex; flex-direction: column; align-items: center; border: 0; padding: 0; background: none; cursor: pointer; }
.scroll:nth-child(1) { --h: 18px; } .scroll:nth-child(2) { --h: 34px; } .scroll:nth-child(3) { --h: 12px; } .scroll:nth-child(4) { --h: 28px; } .scroll:nth-child(5) { --h: 20px; }
.scroll .cord { width: 1px; height: var(--h, 16px); background: linear-gradient(rgba(255, 210, 140, .9), rgba(255, 210, 140, .3)); }
.scroll .rod {
  position: relative; width: 100%; height: 11px; border-radius: 6px;
  background: linear-gradient(#ffffff, #f6ead2 55%, #e6d2ac);
  box-shadow: 0 0 12px rgba(255, 214, 150, .7), inset 0 1px 0 #fff;
}
.scroll .rod::before, .scroll .rod::after { content: ""; position: absolute; top: 1px; width: 6px; height: 9px; border-radius: 3px; background: linear-gradient(#fff3d6, #e3c48a); box-shadow: 0 0 6px rgba(255, 200, 110, .7); }
.scroll .rod::before { left: -3px; } .scroll .rod::after { right: -3px; }
.scroll .rod.b { height: 6px; opacity: .8; }
.scroll .rod.b::before, .scroll .rod.b::after { display: none; }
.scroll:hover .rod { box-shadow: 0 0 18px rgba(255, 214, 150, .95), inset 0 1px 0 #fff; }
.scroll .paper {
  position: relative; width: 86%; height: 0; overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, .96), rgba(255, 248, 234, .88));
  box-shadow: 0 0 18px rgba(255, 220, 170, .65);
  transition: height 1.1s cubic-bezier(.3, .7, .2, 1);
}
.scroll .paper::after { /* a drop of ink, still spreading */
  content: ""; position: absolute; left: 50%; top: 44%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 48, 120, .55), rgba(30, 48, 120, .18) 45%, rgba(30, 48, 120, 0) 70%);
  filter: blur(2px); transform: scale(0); transition: transform 2.8s ease .5s;
}
.scroll.open .paper { height: 118px; }
.scroll.open .paper::after { transform: scale(1.7); }

/* 禪房: hold to breathe */
.hold {
  position: relative; display: block; margin: 12px auto 6px;
  width: 150px; height: 150px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: transparent; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hold i { position: absolute; top: 50%; left: 50%; border-radius: 50%; mix-blend-mode: screen; transition: transform 4s cubic-bezier(.35, .1, .25, 1), opacity 4s; }
.hold .sun { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: radial-gradient(circle at 40% 38%, #fff1c9, #ffb340 40%, rgba(255, 140, 40, 0) 72%); transform: translateX(-30px); }
.hold .moon { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: radial-gradient(circle at 58% 40%, #fff, #d8e3ff 40%, rgba(170, 195, 255, 0) 72%); transform: translateX(30px); }
.hold .lap { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: radial-gradient(circle, rgba(140, 190, 255, .95), rgba(40, 90, 230, .45) 50%, rgba(40, 90, 230, 0) 72%); opacity: 0; transform: scale(.6); }
.hold.on .sun, .hold.on .moon { transform: translateX(0) scale(1.25); }
.hold.on .lap { opacity: 1; transform: scale(1.7); }
.breath { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--soft); min-height: 1.6em; margin: 0 0 10px !important; }

/* 中心 */
.tag-wrap { position: relative; padding-top: 54px; margin-top: 18px; }
.tag-string { position: absolute; left: 50%; top: 0; width: 2px; height: 70px; margin-left: -1px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(200, 150, 100, .95)); transform-origin: top center; z-index: 3; }
.tag {
  position: relative; color: var(--tag-ink); padding: 42px 18px 22px;
  background:
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(8deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 11px),
    linear-gradient(170deg, #b8342a, var(--tag) 55%, #97241d);
  clip-path: polygon(14% 0, 86% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
  border-radius: 4px; transform-origin: 50% -14px;
}
.tag::before { content: ""; position: absolute; left: 50%; top: 13px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 10, 30, .55) 0 42%, #f2d4a6 46% 62%, rgba(0, 0, 0, 0) 66%); }
.tag .en, .tag label small { color: #ffe1d2; }
.form-title { margin: 0 !important; font-size: 17px !important; font-weight: 700; letter-spacing: .1em; }
.field { display: grid; gap: 4px; margin-top: 12px; }
.field label { font-size: 13px; letter-spacing: .1em; }
.field label small { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0; color: var(--soft); }
.input {
  width: 100%; min-height: 48px; border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none; resize: vertical;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .5); font-family: var(--zh);
  transition: border-color .3s, box-shadow .3s, background-color 1.2s;
}
html[data-tone="dark"] .input { background: rgba(4, 12, 44, .45); }
.input:focus { border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(53, 87, 181, .22); }
.tag .input { background: rgba(70, 8, 4, .26); border-color: rgba(255, 236, 222, .45); color: var(--tag-ink); }
.tag .input:focus { border-color: #ffe3c4; box-shadow: 0 0 0 3px rgba(255, 220, 180, .28); }
textarea.input { min-height: 110px; line-height: 1.7; }
.btn { min-height: 50px; width: 100%; margin-top: 14px; border: 0; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: .14em; transition: transform .18s, opacity .3s; }
.btn .en { display: inline; font-size: 12.5px; font-weight: 400; color: inherit; margin-left: 6px; }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .6; cursor: progress; }
.tag .btn { background: var(--tag-ink); color: #8c1f18; }
.news { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.news .btn { background: #241f1c; color: #f7f3ec; }
html[data-tone="dark"] .news .btn { background: linear-gradient(180deg, #f6dca4, var(--gold)); color: #1b1608; }
.status { min-height: 1.4em; margin: 10px 0 0 !important; text-align: center; font-size: 14px !important; }
.status .en { display: inline; margin-left: 6px; }
.tag .status, .tag .status .en { color: #fff1e6; }
.tag-wrap.tied .tag { animation: tie 2.6s cubic-bezier(.3, .7, .25, 1); }
.tag-wrap.tied .tag-string { animation: knot 1.2s ease; }
@keyframes tie { 18% { transform: translateY(-22px) rotate(-3deg); } 40% { transform: translateY(-12px) rotate(2.4deg); } 60% { transform: translateY(-14px) rotate(-1.2deg); } 80% { transform: translateY(-13px) rotate(.5deg); } 100% { transform: none; } }
@keyframes knot { 30% { transform: scaleY(.7); } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.close-line { margin: 22px 0 4px !important; text-align: center; font-size: 15px !important; letter-spacing: .12em; }

/* station bar */
.bar-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.bar {
  pointer-events: auto; max-width: var(--col); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 5px;
  border-radius: 20px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-edge), 0 14px 34px -20px rgba(20, 16, 30, .55);
  transition: background-color 1.2s;
}
.bar button { min-height: 48px; border: 0; border-radius: 14px; background: transparent; color: var(--soft); font-size: 15px; cursor: pointer; line-height: 1.25; transition: background-color .3s, color .3s, transform .18s; }
.bar button small { display: block; font-family: var(--mono); font-size: 10px; }
.bar button.on { background: var(--chip); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.bar button:active { transform: scale(.92); }

/* deeper rooms: sheets */
.sheet {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  background: rgba(247, 243, 236, .97);
  animation: rise .45s cubic-bezier(.2, .8, .2, 1) both;
}
html[data-tone="dark"] .sheet { background: rgba(8, 20, 62, .97); }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.sheet-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: var(--col); width: 100%; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px));
}
.x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); cursor: pointer; font-size: 18px; line-height: 1; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1; }
.sheet-inner { max-width: var(--col); margin: 0 auto; padding: 6px max(20px, env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.sheet h2 { margin: 26px 0 0; font-size: 18px; font-weight: 700; letter-spacing: .14em; }
.mission { margin: 10px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.mission p { margin: 0; font-size: 16px; line-height: 1.85; }
.list { list-style: none; margin: 6px 0 0; padding: 0; }
.list li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.list li:last-child { border-bottom: 0; }
.list .no { font-family: var(--mono); font-size: 11px; color: var(--soft); padding-top: 5px; font-variant-numeric: tabular-nums; }
.list .zh { display: block; font-size: 16px; line-height: 1.8; }
.arts .t { display: block; font-size: 17px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.arts .t a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.arts .t + .en { margin-bottom: 8px; }
.arts .s { display: block; font-size: 15px; line-height: 1.85; margin-top: 2px; }
.arts li.hl { background: linear-gradient(90deg, var(--chip), transparent 80%); }

:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; }
html[data-tone="dark"] :focus-visible { outline-color: #ffd58a; }
.tag :focus-visible { outline-color: #fff1e6; }

/* simple pages (article, thanks, 404) */
.back { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--soft); text-decoration: none; }
.prose h1 { margin: 6px 0 0; font-size: 24px; letter-spacing: .08em; line-height: 1.5; }
.prose h1 + .en { margin-bottom: 18px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.95; }
.prose blockquote { margin: 16px 0; padding-left: 14px; border-left: 2px solid var(--line); }

/* no JavaScript: show every room, one after another */
.no-js .room[hidden] { display: block !important; margin-top: 28px; }
.no-js .sheet[hidden] { display: block !important; position: static; background: transparent; animation: none; }
.no-js .bar-wrap, .no-js .x, .no-js .js-only, .no-js .stage { display: none !important; }

@media (min-width: 760px) {
  .app { padding-top: 32px; }
  .card { padding: 28px 30px; }
}

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



.card h2 br { display: block; content: ""; }
