/* Mirami, "folded paper" theme.
   Light: blush washi paper, indigo ink, vermilion, teal, mustard and sky paper colours, crease lines and folded corners.
   Dark: indigo night. Page colours only through tokens; the room bar, rules section, closing band and footer use fixed
   colours. Never colour a bare `a` under a theme selector. */
:root {
  --bg: #fbf5f1;
  --bg-2: #f5e8e2;
  --paper: #ffffff;
  --ink: #22265e;
  --ink-2: #43477a;
  --muted: #5a5e8c;
  --line: #ead7cf;
  --label: #b3301b;
  --link: #b3301b;
  --red: #c7381f;
  --teal: #12796a;
  --gold: #e9a823;
  --sky: #6ea8d8;
  --btn-ink: #22265e;
  --on-btn-ink: #ffffff;
  --crease: rgba(34, 38, 94, .035);
  --shadow: 0 1px 0 rgba(34, 38, 94, .05), 0 18px 36px -24px rgba(34, 38, 94, .45);
  --head: "Shippori Mincho", "Iowan Old Style", Georgia, serif;
  --body: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-paper="light"]) {
    --bg: #14162f; --bg-2: #191c3a; --paper: #20244a; --ink: #f6f1ee; --ink-2: #d4d2e6; --muted: #b0b2d2; --line: #30346a;
    --label: #ff9b85; --link: #ffc46b; --btn-ink: #f6f1ee; --on-btn-ink: #14162f; --crease: rgba(255, 255, 255, .025);
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 22px 44px -24px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-paper="dark"] {
  --bg: #14162f; --bg-2: #191c3a; --paper: #20244a; --ink: #f6f1ee; --ink-2: #d4d2e6; --muted: #b0b2d2; --line: #30346a;
  --label: #ff9b85; --link: #ffc46b; --btn-ink: #f6f1ee; --on-btn-ink: #14162f; --crease: rgba(255, 255, 255, .025);
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 22px 44px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background-color: var(--bg); background-image: repeating-linear-gradient(45deg, var(--crease) 0 2px, transparent 2px 11px); color: var(--ink); font: 400 1.05rem/1.8 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--head); font-weight: 800; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
.mr-prose a:not(.mr-btn):not(.mr-mail), .mr-crumbs a, .mr-tipcard a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.mr-ic { width: 20px; height: 20px; flex: none; }
.mr-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mr-wrap--narrow { width: min(860px, 100% - 40px); }
.mr-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: #e9a823; color: #22265e; font-weight: 700; }
.mr-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #e9a823; outline-offset: 3px; }
.mr-label { position: relative; display: inline-block; margin: 0 0 14px; padding: 5px 16px 5px 12px; background: var(--paper); border: 1px solid var(--line); font: 700 .84rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--label); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.mr-label::after { content: ""; position: absolute; right: 0; top: 0; width: 10px; height: 10px; background: linear-gradient(225deg, transparent 50%, var(--line) 50%); }
.mr-label--night { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #ffc46b; }

/* ---------- buttons */
.mr-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mr-btns--center { justify-content: center; }
.mr-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border: 2px solid transparent; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); transition: transform .15s ease, filter .15s; }
.mr-btn::after { content: ""; position: absolute; right: -2px; top: -2px; width: 14px; height: 14px; background: linear-gradient(225deg, transparent 50%, rgba(0, 0, 0, .22) 50%); }
.mr-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.mr-btn--red { background: #c7381f; color: #ffffff; }
.mr-btn--gold { background: #e9a823; color: #22265e; }
.mr-btn--ink { background: var(--btn-ink); color: var(--on-btn-ink); }
.mr-btn--line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.mr-btn--line::after { background: linear-gradient(225deg, transparent 50%, var(--ink) 50%); }
.mr-btn--ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .7); }
.mr-btn--ghost::after { background: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, .7) 50%); }
.mr-btn--big { min-height: 58px; padding: 0 28px; font-size: 1.06rem; }
.mr-btn--small { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* ---------- header: paper tags */
.mr-head { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mr-head__row { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.mr-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.mr-logo { width: 42px; height: 42px; }
.mr-word { font: 800 1.65rem/1 var(--head); letter-spacing: .01em; }
.mr-tags { display: flex; gap: 8px; margin-left: auto; }
.mr-tag { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px 9px 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .96rem; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); transition: transform .15s, background .15s; }
.mr-tag::after { content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; background: linear-gradient(225deg, transparent 50%, var(--line) 50%); }
.mr-tag .mr-ic { width: 17px; height: 17px; color: var(--label); }
.mr-tag:hover { transform: translateY(-2px) rotate(-1deg); color: var(--ink); }
.mr-tag[aria-current="page"] { background: #c7381f; border-color: #c7381f; color: #ffffff; }
.mr-tag[aria-current="page"] .mr-ic { color: #ffffff; }
.mr-tag[aria-current="page"]::after { background: linear-gradient(225deg, transparent 50%, #8f2414 50%); }
.mr-head__end { display: flex; align-items: center; gap: 10px; flex: none; }
.mr-paper, .mr-roombar__full { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.mr-paper__light { display: none; }
:root[data-paper="dark"] .mr-paper__dark { display: none; }
:root[data-paper="dark"] .mr-paper__light { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-paper="light"]) .mr-paper__dark { display: none; } :root:not([data-paper="light"]) .mr-paper__light { display: block; } }
.mr-head__go { min-height: 46px; }
.mr-head__menu { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 1rem/1 var(--body); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }

/* phone menu: a sheet that unfolds */
.mr-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(20, 22, 47, .55); }
.mr-sheet[hidden] { display: none; }
.mr-sheet__paper { position: absolute; left: 12px; right: 12px; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 16px 18px 22px; background-color: #fbf5f1; background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(34, 38, 94, .08) calc(25% - 1px) 25%), repeating-linear-gradient(0deg, transparent 0 calc(33.3% - 1px), rgba(34, 38, 94, .06) calc(33.3% - 1px) 33.3%); color: #22265e; transform-origin: top; animation: mr-unfold .38s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
@keyframes mr-unfold { from { transform: perspective(900px) rotateX(-70deg) scaleY(.4); opacity: 0; } }
.mr-sheet__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mr-sheet__crane { width: 90px; height: auto; }
.mr-sheet__close { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #22265e; background: #ffffff; color: #22265e; cursor: pointer; }
.mr-sheet__list { display: grid; gap: 8px; }
.mr-sheet__strip { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #ffffff; color: #22265e; text-decoration: none; font: 800 1.2rem/1.1 var(--head); box-shadow: 0 2px 0 rgba(34, 38, 94, .12); transform: rotate(-.6deg); animation: mr-strip .35s ease backwards; animation-delay: calc(var(--i) * 35ms + 120ms); }
.mr-sheet__strip:nth-child(even) { transform: rotate(.6deg); }
@keyframes mr-strip { from { opacity: 0; translate: -20px 0; } }
.mr-sheet__strip[aria-current="page"] { background: #c7381f; color: #ffffff; }
body.mr-sheet-open { overflow: hidden; }

/* ---------- hero */
.mr-hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.mr-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mr-hero__grid > * { min-width: 0; }
.mr-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .86rem; }
.mr-hero h1 { max-width: 15ch; }
.mr-hero__lead { max-width: 54ch; margin-bottom: 32px; font-size: 1.14rem; color: var(--ink-2); }
.mr-hero__art { position: relative; aspect-ratio: 1 / .85; color: var(--muted); }
.mr-hero__square { position: absolute; left: 12%; right: 12%; top: 14%; bottom: 6%; background: linear-gradient(135deg, #f4c9bd 50%, #eab4a6 50%); transform: rotate(8deg); box-shadow: var(--shadow); }
:root[data-paper="dark"] .mr-hero__square { background: linear-gradient(135deg, #2b2f63 50%, #252957 50%); }
@media (prefers-color-scheme: dark) { :root:not([data-paper="light"]) .mr-hero__square { background: linear-gradient(135deg, #2b2f63 50%, #252957 50%); } }
.mr-hero__crane { position: absolute; left: 6%; right: 6%; top: 16%; width: 88%; height: auto; filter: drop-shadow(0 18px 18px rgba(34, 38, 94, .25)); animation: mr-bob 6s ease-in-out infinite; }
@keyframes mr-bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.mr-flight { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.mr-plane { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; color: var(--ink); }
.mr-plane .mr-ic { width: 100%; height: 100%; stroke-width: 1.6; fill: var(--paper); }
.mr-plane--1 { right: 0; top: 4%; animation: mr-drift 7s ease-in-out infinite; }
.mr-plane--2 { left: 40%; top: 10%; width: 34px; height: 34px; animation: mr-drift 9s ease-in-out infinite reverse; }
@keyframes mr-drift { 50% { transform: translate(-12px, 10px) rotate(-8deg); } }

.mr-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px auto 0; padding: 0; list-style: none; }
.mr-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.mr-facts .mr-ic { width: 18px; height: 18px; padding: 2px; color: #ffffff; background: var(--teal); }
.mr-facts li:nth-child(2) .mr-ic { background: #c7381f; } .mr-facts li:nth-child(3) .mr-ic { background: #b07a10; } .mr-facts li:nth-child(4) .mr-ic { background: #3d6f9e; }

/* ---------- sections */
.mr-sec { padding: 90px 0; }
.mr-sec--tint { background: var(--bg-2); }
.mr-sec__head { max-width: 740px; margin-bottom: 42px; }
.mr-sec__head--center { margin-inline: auto; text-align: center; }
.mr-sec__title { font-size: clamp(1.8rem, 3.3vw, 2.45rem); }
.mr-sec__intro { font-size: 1.08rem; color: var(--ink-2); }

.mr-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mr-room { position: relative; display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.mr-room::after { content: ""; position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: linear-gradient(225deg, transparent 50%, rgba(34, 38, 94, .18) 50%); }
.mr-room__fold { display: flex; align-items: flex-end; height: 130px; padding: 0 24px 18px; }
.mr-room--1 .mr-room__fold { background: linear-gradient(135deg, #c7381f 50%, #a52d17 50%); }
.mr-room--2 .mr-room__fold { background: linear-gradient(135deg, #12796a 50%, #0d6257 50%); }
.mr-room--3 .mr-room__fold { background: linear-gradient(135deg, #3d6f9e 50%, #305a83 50%); }
.mr-room__ic { display: grid; place-items: center; width: 58px; height: 58px; background: #ffffff; color: #22265e; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.mr-room__ic .mr-ic { width: 28px; height: 28px; }
.mr-room__body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 26px; }
.mr-room h3 { font-size: 1.7rem; }
.mr-room p { flex: 1; color: var(--ink-2); }
.mr-room .mr-btn { align-self: flex-start; }

.mr-hello { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.mr-hello__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 700 .95rem/1 var(--body); cursor: pointer; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); transition: background .15s, color .15s; }
.mr-chip:hover { border-color: var(--ink); }
.mr-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mr-hello__card { position: relative; padding: 30px 30px 22px; background: var(--paper); box-shadow: var(--shadow); border-top: 6px solid var(--teal); }
.mr-hello__set[hidden] { display: none; }
.mr-hello__set { animation: mr-in .3s ease; }
@keyframes mr-in { from { opacity: 0; transform: translateY(6px); } }
.mr-seal { position: absolute; right: 22px; top: 22px; display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid #c7381f; border-radius: 6px; color: #c7381f; font: 800 1.15rem/1 var(--head); transform: rotate(-8deg); }
:root[data-paper="dark"] .mr-seal { border-color: #ff9b85; color: #ff9b85; }
@media (prefers-color-scheme: dark) { :root:not([data-paper="light"]) .mr-seal { border-color: #ff9b85; color: #ff9b85; } }
.mr-hello__lang { margin: 0 0 14px; font: 800 1.6rem/1.1 var(--head); }
.mr-phrase { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.mr-phrase__label { grid-column: 1; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mr-phrase__text { grid-column: 1; font: 700 1.35rem/1.3 var(--head); color: var(--ink); }
.mr-phrase__say { grid-column: 1; font-size: .95rem; color: var(--ink-2); font-style: italic; }
.mr-phrase__copy { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.mr-phrase__copy.is-done { background: #12796a; color: #ffffff; border-color: #12796a; }
.mr-hello__note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }

.mr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.mr-step { position: relative; padding: 24px 22px; background: var(--paper); border: 1px solid var(--line); }
.mr-step:not(:last-child)::after { content: ""; position: absolute; right: -18px; top: 70px; width: 14px; height: 14px; border-top: 2px dashed var(--muted); border-right: 2px dashed var(--muted); transform: rotate(45deg); }
.mr-step__fig { width: 92px; height: 92px; margin-bottom: 14px; color: var(--ink); }
.mr-step__n { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.mr-step p { margin: 0; font-size: .98rem; color: var(--ink-2); }

.mr-notes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mr-note { position: relative; min-height: 190px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; font: inherit; color: inherit; text-align: left; }
.mr-note__front, .mr-note__back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.mr-note__front { justify-content: space-between; color: #ffffff; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.mr-note__front::after { content: ""; position: absolute; right: 0; top: 0; width: 40px; height: 40px; background: linear-gradient(225deg, transparent 50%, rgba(0, 0, 0, .25) 50%); }
.mr-note--1 .mr-note__front, .mr-note--5 .mr-note__front { background: linear-gradient(135deg, #c7381f 50%, #b3301b 50%); }
.mr-note--2 .mr-note__front, .mr-note--6 .mr-note__front { background: linear-gradient(135deg, #12796a 50%, #0f6a5d 50%); }
.mr-note--3 .mr-note__front { background: linear-gradient(135deg, #3d6f9e 50%, #34618b 50%); }
.mr-note--4 .mr-note__front { background: linear-gradient(135deg, #22265e 50%, #1c2050 50%); }
.mr-note__no { font: 800 2.6rem/1 var(--head); }
.mr-note__hint { font-weight: 700; font-size: .95rem; }
.mr-note__back { justify-content: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotateY(180deg); }
.mr-note[aria-pressed="true"] .mr-note__front { transform: rotateY(-180deg); }
.mr-note[aria-pressed="true"] .mr-note__back { transform: rotateY(0); }
.mr-note__kind { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.mr-note__text { font: 700 1.15rem/1.4 var(--head); color: var(--ink); }
.mr-notes__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.mr-notes__count { margin: 0; font-weight: 700; color: var(--ink-2); }

.mr-story { display: grid; grid-template-columns: 1fr 290px; gap: 60px; align-items: start; }
.mr-story__body p:not(.mr-label) { max-width: 68ch; color: var(--ink-2); font-size: 1.08rem; }
.mr-hangtag { position: sticky; top: 110px; padding: 44px 24px 20px; background: #e9a823; color: #22265e; clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px); }
.mr-hangtag__hole { position: absolute; left: 50%; top: 14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px #b07a10; }
.mr-hangtag__title { margin-bottom: 10px; font: 800 1.35rem/1 var(--head); text-align: center; }
.mr-hangtag dl { margin: 0; }
.mr-hangtag dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed rgba(34, 38, 94, .4); }
.mr-hangtag dt { font-weight: 700; }
.mr-hangtag dd { margin: 0; text-align: right; }

.mr-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mr-tip { position: relative; padding: 26px 24px 24px 24px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.mr-tip::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 46px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.mr-tip--1::before { background: #c7381f; } .mr-tip--2::before { background: #12796a; } .mr-tip--3::before { background: #e9a823; } .mr-tip--4::before { background: #3d6f9e; }
.mr-tip__n { display: block; margin: 6px 0 10px 30px; font: 800 1.2rem/1 var(--head); color: var(--muted); }
.mr-tip p { margin: 0; color: var(--ink-2); font-size: 1rem; }

.mr-rules { background: #1a1d42; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 11px); color: #d4d2e6; }
.mr-rules__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.mr-rules .mr-sec__title { color: #ffffff; }
.mr-rules__head p:not(.mr-label) { color: #d4d2e6; font-size: 1.06rem; }
.mr-scroll { position: relative; padding: 0 14px; }
.mr-scroll__rod { display: block; height: 18px; margin: 0 -14px; border-radius: 9px; background: linear-gradient(180deg, #a1673b, #6e4021); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.mr-scroll__list { margin: 0; padding: 22px 26px; list-style: none; background: #fbf5f1; color: #22265e; display: grid; gap: 4px; box-shadow: inset 0 10px 14px -10px rgba(0, 0, 0, .35), inset 0 -10px 14px -10px rgba(0, 0, 0, .35); }
.mr-scroll__list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #e2cfc6; line-height: 1.55; }
.mr-scroll__list li:last-child { border-bottom: 0; }
.mr-scroll__seal { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 4px; background: #c7381f; color: #ffffff; transform: rotate(-6deg); }
.mr-scroll__seal .mr-ic { width: 17px; height: 17px; }

.mr-faq { display: grid; gap: 12px; }
.mr-faq__item { position: relative; background: var(--paper); border: 1px solid var(--line); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.mr-faq__item::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px; background: linear-gradient(225deg, transparent 50%, var(--line) 50%); }
.mr-faq__item[open] { border-color: var(--teal); }
.mr-faq__item summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.mr-faq__item summary::-webkit-details-marker { display: none; }
.mr-faq__item summary h3 { flex: 1; margin: 0; font-size: 1.16rem; }
.mr-faq__plus { position: relative; flex: none; width: 30px; height: 30px; background: var(--bg-2); }
.mr-faq__plus::before, .mr-faq__plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: var(--ink); transition: transform .2s; }
.mr-faq__plus::after { transform: rotate(90deg); }
.mr-faq__item[open] .mr-faq__plus::after { transform: rotate(0); }
.mr-faq__item p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

.mr-final { position: relative; overflow: hidden; padding: 90px 0; background: linear-gradient(135deg, #c7381f 50%, #b3301b 50%); color: #ffffff; text-align: center; }
.mr-final .mr-plane { color: #ffffff; opacity: .9; }
.mr-final .mr-plane .mr-ic { fill: transparent; }
.mr-plane--3 { left: 8%; top: 22%; animation: mr-drift 8s ease-in-out infinite; }
.mr-plane--4 { right: 10%; bottom: 18%; width: 36px; height: 36px; animation: mr-drift 10s ease-in-out infinite reverse; }
.mr-final__in { position: relative; }
.mr-final__title { margin: 0 0 10px; font: 800 clamp(2.1rem, 4.8vw, 3.3rem)/1.15 var(--head); }
.mr-final__in > p:not(.mr-final__title) { max-width: 46ch; margin: 0 auto 28px; font-size: 1.1rem; color: #fff3ef; }

/* ---------- footer (fixed indigo) */
.mr-foot { position: relative; padding: 70px 0 34px; background: #14162f; color: #d4d2e6; }
.mr-foot__fan { position: absolute; left: 0; right: 0; top: -1px; height: 22px; background: linear-gradient(135deg, var(--bg) 25%, transparent 25%) -11px 0 / 22px 22px, linear-gradient(225deg, var(--bg) 25%, transparent 25%) -11px 0 / 22px 22px; }
.mr-final + .mr-foot .mr-foot__fan { background: linear-gradient(135deg, #b3301b 25%, transparent 25%) -11px 0 / 22px 22px, linear-gradient(225deg, #b3301b 25%, transparent 25%) -11px 0 / 22px 22px; }
.mr-foot__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.mr-brand--night { color: #ffffff; }
.mr-foot__brand p { margin: 16px 0 14px; max-width: 32ch; }
.mr-foot__mail { display: inline-flex; align-items: center; gap: 8px; color: #ffc46b; font-weight: 700; text-decoration: none; }
.mr-foot__mail:hover { text-decoration: underline; }
.mr-foot__hangs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.mr-hang { display: flex; flex-direction: column; align-items: center; }
.mr-hang:nth-child(2) { padding-top: 22px; }
.mr-hang__string { width: 2px; height: 34px; background: #6a6da0; }
.mr-hang:nth-child(2) .mr-hang__string { height: 14px; }
.mr-hang__tag { width: 100%; padding: 30px 20px 18px; background: #fbf5f1; color: #22265e; clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px); position: relative; }
.mr-hang__tag::before { content: ""; position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #14162f; }
.mr-hang:nth-child(1) .mr-hang__tag { transform: rotate(-2deg); } .mr-hang:nth-child(3) .mr-hang__tag { transform: rotate(2deg); }
.mr-hang__h { margin: 0 0 10px; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b3301b; }
.mr-hang ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; text-align: center; }
.mr-hang a { font-weight: 700; text-decoration: none; }
.mr-hang a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mr-foot__legal { margin-top: 46px; padding-top: 20px; border-top: 1px solid #30346a; font-size: .92rem; color: #b0b2d2; }

/* ---------- inner pages */
.mr-pagehead { position: relative; overflow: hidden; padding: 56px 0 50px; background: linear-gradient(160deg, var(--bg-2) 55%, var(--bg) 55%); border-bottom: 1px solid var(--line); }
.mr-pagehead__crane { position: absolute; right: 4%; top: 18%; width: min(360px, 38%); height: auto; opacity: .16; }
.mr-pagehead .mr-wrap { position: relative; }
.mr-pagehead h1 { max-width: 18ch; }
.mr-pagehead__lead { max-width: 62ch; font-size: 1.14rem; color: var(--ink-2); }
.mr-pagehead__date { margin: 0; font-size: .9rem; color: var(--muted); }
.mr-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .92rem; color: var(--muted); }
.mr-pagebody { padding: 54px 0 90px; }
.mr-pagebody__grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.mr-pagebody__grid--solo { grid-template-columns: minmax(0, 820px); }
.mr-doc { position: relative; min-width: 0; padding: 44px; background: var(--paper); box-shadow: var(--shadow); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.mr-doc::after { content: ""; position: absolute; right: 0; top: 0; width: 44px; height: 44px; background: linear-gradient(225deg, transparent 50%, var(--line) 50%); }
.mr-doc h2 { margin-top: 1.3em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.mr-doc h2:first-child { margin-top: 0; }
.mr-doc h3 { margin-top: 1.4em; }
.mr-doc p { color: var(--ink-2); }
.mr-side { position: sticky; top: 110px; padding: 20px; background: #22265e; color: #ffffff; }
.mr-side__title { font: 800 1.2rem/1 var(--head); }
.mr-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mr-side__link { display: flex; gap: 12px; align-items: center; padding: 10px; color: #ffffff; text-decoration: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.mr-side__link--1 { background: #c7381f; } .mr-side__link--2 { background: #12796a; } .mr-side__link--3 { background: #3d6f9e; }
.mr-side__link:hover { filter: brightness(1.08); }
.mr-side__ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: rgba(255, 255, 255, .2); }
.mr-side b { display: block; }
.mr-side small { display: block; font-size: .84rem; line-height: 1.35; color: #fff3ef; }
.mr-mail { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; padding: 20px 22px; background: #e9a823; color: #22265e; text-decoration: none; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.mr-mail .mr-ic { width: 30px; height: 30px; }
.mr-mail small { display: block; font-size: .9rem; }
.mr-mail b { font: 800 1.35rem/1.15 var(--head); word-break: break-all; }

.mr-lost { padding: 70px 0 100px; text-align: center; }
.mr-lost__in { max-width: 640px; }
.mr-lost__crane { width: 220px; margin: 0 auto; height: auto; }
.mr-lost__code { margin: 0; font: 800 clamp(4.5rem, 15vw, 7rem)/1 var(--head); color: var(--label); }

/* ---------- room pages */
.mr-roombar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; height: 70px; padding: 0 14px; background: #14162f; color: #f6f1ee; border-bottom: 3px solid #c7381f; }
.mr-roombar .mr-logo { width: 38px; height: 38px; }
.mr-roombar .mr-word { font-size: 1.4rem; }
.mr-rtags { display: flex; gap: 8px; margin-inline: auto; }
.mr-rtag { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px 10px 14px; background: #20244a; color: #d4d2e6; text-decoration: none; font-weight: 700; font-size: .95rem; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); }
.mr-rtag::after { content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; background: linear-gradient(225deg, transparent 50%, #3a3f78 50%); }
.mr-rtag .mr-ic { width: 17px; height: 17px; }
.mr-rtag:hover { color: #ffffff; background: #2a2f5e; }
.mr-rtag[aria-current="page"] { background: #c7381f; color: #ffffff; }
.mr-rtag[aria-current="page"]::after { background: linear-gradient(225deg, transparent 50%, #8f2414 50%); }
.mr-roombar__full { background: transparent; border-color: #30346a; color: #f6f1ee; }
.mr-stage { height: calc(100dvh - 70px); min-height: 440px; background: #14162f; }
.mr-stage:fullscreen { height: 100vh; }
.mr-frame, .mr-stage #app_container, .mr-stage #app_container > iframe, .mr-stage #app_container > div { display: block; width: 100% !important; height: 100% !important; border: 0; }
.mr-roominfo { padding: 46px 0 86px; }
.mr-roominfo__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.mr-roominfo h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.mr-roominfo .mr-prose p { color: var(--ink-2); }
.mr-roominfo__note { padding: 14px 18px; border-left: 4px solid #e9a823; background: var(--bg-2); font-size: .98rem; }
.mr-tipcard { padding: 26px; background: var(--paper); box-shadow: var(--shadow); border-top: 6px solid #c7381f; }
.mr-tipcard h2 { font-size: 1.5rem; }
.mr-tipcard ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.mr-tipcard li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.mr-tipcard li .mr-ic { margin-top: 4px; padding: 3px; width: 22px; height: 22px; background: #12796a; color: #ffffff; }
.mr-tipcard__more { margin: 0; font-size: .94rem; color: var(--muted); }
.mr-roominfo__faq { margin-top: 60px; max-width: 880px; }
.mr-roominfo__faq h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .mr-tags { display: none; }
  .mr-head__end { margin-left: auto; }
  .mr-head__menu { display: inline-flex; }
  .mr-hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .mr-hero__art { max-width: 460px; width: 100%; margin: 0 auto; }
  .mr-rooms, .mr-tips { grid-template-columns: 1fr 1fr; }
  .mr-rooms > :last-child { grid-column: 1 / -1; }
  .mr-hello, .mr-story, .mr-rules__grid, .mr-pagebody__grid, .mr-roominfo__grid, .mr-foot__in { grid-template-columns: 1fr; gap: 36px; }
  .mr-hangtag, .mr-side { position: static; }
  .mr-hangtag { max-width: 340px; }
  .mr-steps { grid-template-columns: 1fr 1fr; }
  .mr-step::after { display: none; }
  .mr-notes__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .mr-wrap, .mr-wrap--narrow { width: calc(100% - 32px); }
  .mr-head__row { min-height: 64px; gap: 8px; }
  .mr-logo { width: 38px; height: 38px; }
  .mr-word { font-size: 1.45rem; }
  .mr-head__go span, .mr-head__menu span { display: none; }
  .mr-head__go, .mr-head__menu { width: 46px; padding: 0; }
  .mr-hero { padding-top: 36px; }
  .mr-hero__lead { font-size: 1.03rem; }
  .mr-btns .mr-btn--big { flex: 1 1 100%; }
  .mr-facts { gap: 8px; margin-top: 26px; }
  .mr-facts li { font-size: .92rem; padding: 7px 14px 7px 10px; }
  .mr-sec { padding: 62px 0; }
  .mr-rooms, .mr-tips, .mr-steps { grid-template-columns: 1fr; }
  .mr-room__fold { height: 100px; }
  .mr-hello__card { padding: 24px 18px 18px; }
  .mr-seal { right: 14px; top: 16px; width: 44px; height: 44px; font-size: 1rem; }
  .mr-phrase__text { font-size: 1.18rem; }
  .mr-notes__grid { grid-template-columns: 1fr; }
  .mr-note { min-height: 150px; }
  .mr-scroll__list { padding: 16px 16px; }
  .mr-faq__item summary { padding: 16px; }
  .mr-faq__item p { padding: 0 16px 18px; }
  .mr-foot__hangs { grid-template-columns: 1fr; gap: 0; }
  .mr-hang:nth-child(2) { padding-top: 0; }
  .mr-hang__tag { transform: none !important; }
  .mr-doc { padding: 28px 20px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
  .mr-doc::after { width: 28px; height: 28px; }
  .mr-pagehead { padding: 36px 0 32px; }
  .mr-pagebody { padding: 34px 0 70px; }
  .mr-roombar { gap: 6px; padding: 0 8px; }
  .mr-roombar .mr-word, .mr-roombar__full { display: none; }
  .mr-rtags { gap: 5px; }
  .mr-rtag { padding: 10px 14px 10px 11px; }
  .mr-rtag:not([aria-current="page"]) span { display: none; }
}
