.hotel-annex {
  --annex-ink:#332622;
  --annex-red:#722e38;
  --annex-edge:#c9bca8;
  color:var(--annex-ink);
  background:#faf6ed;
  border:1px solid var(--annex-edge);
  border-radius:10px;
  padding:clamp(14px,2vw,26px);
  text-align:left;
}
.annex-heading,.annex-dialog header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.annex-heading h2 { margin:0; font-family:Georgia,"Songti SC","SimSun",serif; font-size:clamp(1.35rem,2.2vw,2rem); color:var(--annex-red); }
.annex-heading > span,.annex-tip { font-size:.85rem; color:#625449; }
.annex-tip { margin:.45rem 0 .9rem; }
.annex-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(13rem,18rem); align-items:start; gap:clamp(.8rem,2vw,1.5rem); }
.annex-mat {
  position:relative; isolation:isolate; width:100%; aspect-ratio:4/3; overflow:hidden;
  border:1px solid #8e826e; border-radius:6px;
  background:radial-gradient(ellipse at 45% 30%,#557567,#344e43); box-shadow:inset 0 2px 8px #102b2038;
}
.annex-empty { position:absolute; inset:0; display:grid; place-items:center; color:#efece3; font-size:.9rem; }
.hotel-annex .annex-piece {
  display:block; position:absolute; margin:0; padding:0; background:transparent; border:0;
  width:11%; border-radius:2px; line-height:0; min-height:0; min-width:0; cursor:grab;
  touch-action:none; user-select:none; -webkit-user-select:none; box-shadow:0 1px 3px #15231da8;
}
.hotel-annex .annex-piece[data-kind=board] { width:58%; z-index:0; }
.hotel-annex .annex-piece[data-kind=tile] { width:11%; z-index:1; }
.hotel-annex .annex-piece[data-kind=token] { width:6%; z-index:1; }
.hotel-annex .annex-piece:not([data-kind=board]) { z-index:1; }
.hotel-annex .annex-piece[aria-pressed=true] { outline:2px solid #ffd693; outline-offset:1px; }
.hotel-annex .annex-piece:focus-visible { outline:3px solid white; outline-offset:2px; }
.hotel-annex .annex-piece.annex-dragging { cursor:grabbing; }
.annex-piece img { display:block; width:100%; height:auto; max-height:44cqw; object-fit:contain; }
.annex-mat { container-type:inline-size; }
.annex-obverse { display:grid; place-items:center; width:100%; aspect-ratio:2/3; line-height:1; font-size:clamp(.45rem,2cqw,.75rem); color:#f5e8d5; border:2px solid #b89973; background:#693844; }
.annex-controls,.annex-inspector { display:grid; gap:.6rem; min-width:0; }
.annex-select,.annex-position label { display:grid; min-width:0; gap:.25rem; font-size:.77rem; font-weight:600; letter-spacing:.01em; }
.hotel-annex select,.hotel-annex input {
  box-sizing:border-box; width:100%; max-width:100%; min-height:36px; margin:0; padding:.35rem .45rem;
  border:1px solid var(--annex-edge); border-radius:4px; background:#fffdf7; color:var(--annex-ink); font:inherit;
}
.annex-controls button,.annex-dialog button {
  padding:.37rem .63rem; min-height:34px; border:1px solid #b2a087; border-radius:4px; background:#faf5e9; color:var(--annex-ink); font:inherit; font-size:.82rem; cursor:pointer;
}
.annex-controls button:enabled:hover,.annex-dialog button:hover { border-color:var(--annex-red); color:var(--annex-red); }
.annex-controls button:disabled { opacity:.48; cursor:default; }
.annex-controls button[data-annex-cmd=add] { background:var(--annex-red); border-color:var(--annex-red); color:white; }
.annex-controls button[data-annex-cmd=add]:enabled:hover { background:#58242c; color:white; }
.annex-controls button.annex-preview { display:grid; place-items:center; height:7.5rem; width:100%; overflow:hidden; padding:4px; background:#ede5d5; cursor:zoom-in; }
.annex-preview img { display:block; height:100%; width:100%; object-fit:contain; min-height:0; }
.annex-inspector { padding-top:.7rem; margin-top:.15rem; border-top:1px solid var(--annex-edge); }
.annex-buttons { display:flex; flex-wrap:wrap; gap:.35rem; }
.annex-position { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:.3rem; align-items:end; }
.annex-position input { min-height:34px; }
.annex-dialog { max-width:min(94vw,1000px); max-height:93dvh; border:1px solid var(--annex-edge); border-radius:8px; padding:12px; background:#fcf7e9; color:var(--annex-ink); }
.annex-dialog::backdrop { background:#201914bc; }
.annex-dialog header { margin-bottom:8px; }
.annex-enlarged img,.annex-enlarged .annex-obverse { display:block; width:auto; height:auto; max-width:100%; max-height:76dvh; object-fit:contain; }
.annex-enlarged .annex-obverse { display:grid; width:min(66vw,300px); }
@media(max-width:730px) {
  .annex-layout { grid-template-columns:1fr; }
  .annex-controls { grid-template-columns:1fr 1fr; align-items:end; }
  .annex-controls button.annex-preview { height:5rem; }
  .annex-inspector,.annex-controls > p { grid-column:1/-1; }
}
@media(prefers-reduced-motion:reduce) {
  .hotel-annex * { scroll-behavior:auto; }
}
.annex-caption { max-width:60ch; margin:.65rem 0 .2rem; color:#44362e; font-size:.9rem; line-height:1.55; white-space:pre-line; }
