/* 砂紋 — 美術館の佇まい。語らない。 */
:root {
  --dark: #0d0b09;
  --paper: #efe4cd;
  --paper-faint: rgba(239, 228, 205, .42);
  --line: rgba(239, 228, 205, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--dark);
  color: var(--paper);
  font-family: "Shippori Mincho", serif;
  -webkit-tap-highlight-color: transparent;
}
#garden { position: fixed; inset: 0; width: 100vw; height: 100vh; touch-action: none; cursor: crosshair; }

.mark {
  position: fixed; top: 26px; left: 30px;
  font-family: "Yuji Syuku", serif; font-size: 19px; letter-spacing: .5em;
  color: var(--paper-faint); pointer-events: none; user-select: none;
}
.hint {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 13px; letter-spacing: .5em; text-indent: .5em; color: var(--paper-faint);
  pointer-events: none; transition: opacity 1.6s ease;
}
.hint.gone { opacity: 0; }

/* 今日の砂(4色) */
.sands { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 18px; }
.sands button {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  cursor: pointer; opacity: .55; transition: opacity .5s, transform .5s;
}
.sands button.on { opacity: 1; transform: scale(1.25); border-color: rgba(239, 228, 205, .5); }

.windBtn {
  position: fixed; right: 30px; bottom: 24px;
  background: none; border: none; cursor: pointer;
  font-family: "Yuji Syuku", serif; font-size: 15px; letter-spacing: .2em;
  color: var(--paper-faint); transition: color .4s;
}
.windBtn:hover { color: var(--paper); }

.warn {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .44em; text-indent: .44em; color: var(--paper-faint);
  opacity: 0; transition: opacity 2s ease; pointer-events: none;
}
.warn.show { opacity: 1; }

/* 見送りの間 */
.farewell {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
  background: rgba(13, 11, 9, .96); opacity: 0; transition: opacity 2.4s ease;
  pointer-events: none;
}
.farewell[hidden] { display: none; }
.farewell.show { opacity: 1; pointer-events: auto; }
.fw-line { font-size: 13px; letter-spacing: .5em; text-indent: .5em; color: var(--paper-faint); }
#bestshot { max-width: min(72vw, 560px); max-height: 52vh; border: 1px solid var(--line); }
.fw-actions { display: flex; gap: 34px; }
.fw-actions button, .again {
  background: none; border: none; cursor: pointer;
  font-family: "Shippori Mincho", serif; font-size: 14px; letter-spacing: .3em; text-indent: .3em;
  color: var(--paper-faint); padding: 8px 4px; transition: color .4s;
}
.fw-actions button:hover, .again:hover { color: var(--paper); }
.fw-note { font-size: 12px; letter-spacing: .4em; color: var(--paper-faint); }

@media (max-width: 600px) {
  .mark { top: 18px; left: 20px; }
  .windBtn { right: 20px; }
}
