@font-face {
  font-family: "Klee One";
  src: url("/ui/KleeOne-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f3e5;
  --ink: #353c31;
  --muted: #5a594c;
  --pine: #38574c;
  --pine-dark: #284339;
  --gold: #906d41;
  --border: #c4b491;
  font: 600 16px/1.7 "Klee One", "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--ink);
  background: #e0e4d6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    repeating-linear-gradient(4deg, #66583906 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 17%, #f5eddb, #eae2cf 55%, #dfe4d5);
}
h1, h2, p { margin: 0; line-break: strict; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1.3; letter-spacing: .025em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #355b89; outline-offset: 4px; }
[hidden] { display: none !important; }

.sign {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: .75rem;
  padding: .36rem .7rem .46rem;
  color: #403225;
  background:
    repeating-linear-gradient(3deg, transparent 0 5px, #80532e16 6px 7px, transparent 9px 13px),
    linear-gradient(100deg, #c6a77e, #e2c39b 52%, #c9a97e);
  border: 1px solid #a17e51;
  border-radius: .34rem;
  box-shadow: inset 0 0 0 2px #f7dfb55c, 0 3px 0 #9d805459;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  line-height: 1.4;
  letter-spacing: .07em;
  white-space: nowrap;
}
.sign::before, .sign::after {
  content: "";
  width: .27rem;
  height: .27rem;
  border-radius: 50%;
  background: #805e37;
}

.entrance {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(1.25rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
}
.door {
  width: min(100%, 32rem);
  padding: clamp(1.35rem, 6vw, 2.7rem);
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: .32rem solid #6f8978;
  border-radius: .45rem .45rem .8rem .8rem;
  box-shadow: 0 .45rem 0 -.15rem #d8c9aa, 0 1.2rem 2.5rem #4e523322;
}
.door-heading { margin-bottom: 1.35rem; }
.door-brand { display: flex; align-items: center; justify-content: space-between; gap: .62rem; }
.door-welcome { min-width: 0; }
.door-greeting {
  margin-top: .82rem;
  color: var(--pine-dark);
  font-size: clamp(1.08rem, 4.65vw, 1.54rem);
  letter-spacing: .025em;
  line-height: 1.4;
}
.door-greeting span { color: var(--gold); white-space: nowrap; }
.host-slot { flex: 0 0 clamp(4.9rem, 18vw, 7.35rem); }
.host-slot img { display: block; width: 100%; height: auto; }
.door h1 { margin-top: 1.1rem; }
.intro { color: var(--muted); margin-top: .65rem; text-wrap: pretty; }
.intro span { display: inline-block; max-width: 100%; }
.door form { padding-top: 1.05rem; border-top: 1px solid #d8cdb5; }
label { display: block; margin-bottom: .35rem; font-size: .94rem; letter-spacing: .025em; }
.secret-field { display: flex; background: #fffdf5; border: 1px solid #9a8c71; border-radius: .33rem; }
.secret-field input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 49px;
  border: 0;
  border-radius: .33rem;
  background: transparent;
  color: var(--ink);
  padding: .5rem .75rem;
}
.reveal {
  border: 0;
  border-left: 1px solid var(--border);
  color: var(--pine-dark);
  min-width: 4.25rem;
  background: #e9ebdf;
  border-radius: 0 .25rem .25rem 0;
  cursor: pointer;
}
.gate-ime-help { color: var(--muted); font-size: .94rem; line-height: 1.65; margin: .5rem 0 0; }
.message { color: #813a28; font-size: .94rem; margin: .45rem 0 0; }
.message:empty { display: none; }
.primary, .quiet {
  display: inline-grid;
  place-items: center;
  color: #fffaf0;
  background: var(--pine);
  padding: .49rem 1rem;
  min-height: 44px;
  border: 1px solid var(--pine-dark);
  border-radius: .35rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.primary:hover, .primary:focus-visible { background: var(--pine-dark); }
.enter { width: 100%; min-height: 48px; margin-top: .82rem; letter-spacing: .055em; }
.quiet { background: transparent; color: var(--pine-dark); border-color: #969881; }
.quiet:hover { background: #e6e5d7; }
.primary:disabled { background: #ece7d8; color: #5f6051; border-color: #b9af96; cursor: default; }

.room { width: min(100%, 62rem); margin: 0 auto; padding: clamp(1.1rem, 5vw, 3.25rem); }
.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding-bottom: .9rem;
  margin-bottom: clamp(1rem, 3vw, 1.65rem);
  border-bottom: 1px solid #bfb497;
}
.room h1 { margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 3vw, 1.55rem); }
.card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: .65rem;
  overflow: hidden;
  box-shadow: 0 .35rem 0 -.12rem #d8c9aa, 0 .55rem 1.35rem #53533715;
}
.card-art {
  display: grid;
  place-items: center;
  min-width: 0;
  background: #eae2cf;
  border-bottom: 1px solid var(--border);
}
.card-art img { display: block; width: 100%; height: auto; }
.card-copy { padding: clamp(.9rem, 2.5vw, 1.35rem); display: grid; grid-template-rows: auto 1fr auto; gap: .48rem; }
.card h2 { font-size: clamp(1.13rem, 2.8vw, 1.6rem); line-height: 1.3; letter-spacing: .02em; }
.card p { color: var(--muted); text-wrap: pretty; }
.card-action { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; }
.card .primary { min-width: 5.9rem; }
.availability { font-size: .9rem; }

.play-view { display: grid; grid-template-rows: auto 1fr; height: 100svh; }
.play-bar { display: flex; align-items: center; gap: .85rem; padding: .45rem .75rem; background: #eee6d5; border-bottom: 1px solid var(--border); }
.play-bar h1 { font-size: 1.2rem; }
.play-content { min-height: 0; }
.play-content iframe { width: 100%; height: 100%; display: block; border: 0; }

@media (max-width: 37rem) {
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: minmax(4rem, 36%) minmax(0, 1fr); grid-template-rows: auto; }
  .card-art { border-bottom: 0; border-right: 1px solid var(--border); }
  .card-copy { gap: .35rem; }
  .room-header .quiet { padding-inline: .72rem; }
}
