:root {
  --ink: #f6eee3;
  --ink2: rgba(246, 238, 227, .72);
  --gold: #e3c99a;
  --gold2: #c9a46a;
  --night: #160905;
  --glass: rgba(38, 16, 8, .62);
  --line: rgba(227, 201, 154, .24);
  --pink: #ff7aa2;
  --font: 'Anuphan', system-ui, sans-serif;
  --display: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
  --serif: 'Cormorant Garamond', 'Noto Serif Thai', Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); font-family: var(--font); }
body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }

/* ---------- pond ---------- */
.pond-host { position: relative; overflow: hidden; background: #0a1030; }
.pond-canvas { position: absolute; inset: 0; display: block; }
.pond-layer { position: absolute; inset: 0; pointer-events: none; }
.pond-tag {
  position: absolute; left: 0; top: 0; max-width: min(340px, 70vw);
  padding: 10px 14px 11px; border-radius: 16px;
  background: rgba(255, 250, 238, .94); color: #2b1d12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 210, 120, .5);
  font-size: 15px; line-height: 1.45; text-align: center;
  opacity: 0; transition: opacity .45s ease, margin .6s cubic-bezier(.2, .9, .3, 1.2); margin-top: 14px;
  will-change: transform, opacity;
}
.pond-tag.on { opacity: 1; margin-top: 0; }
.pond-tag::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.pond-tag b { display: block; font-family: var(--display); font-weight: 500; font-size: 12px; color: #b0611c; letter-spacing: .02em; margin-bottom: 1px; }
.pond-tag span { display: block; }
.pond-tag.arrive { background: linear-gradient(180deg, #fff3d1, #ffe2a6); }
.pond-tag.arrive b { font-size: 14px; }
.pond-tag.sink { background: #e4f1ff; }
.pond-tag.tap { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 2px rgba(232,205,150,.9); }
.pond-tag.joint { background: linear-gradient(180deg, #ffeef4, #ffd6e4); }
.pond-tag.joint b { color: #c2386b; }
.pond-tag.lantern { background: linear-gradient(180deg, #fff1e0, #ffd9b0); }
.pond-tag.lantern b::before { content: '🏮 '; }
.pond-tag.sink b { color: #2f5f9e; }
.tv .pond-tag { font-size: clamp(15px, 1.25vw, 24px); max-width: min(460px, 34vw); padding: .7em 1em .75em; border-radius: 20px; }
.tv .pond-tag b { font-size: .72em; }

.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--line); }

/* ---------- toast ---------- */
.toast {
  position: absolute; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0;
  padding: 12px 22px; border-radius: 999px; font-family: var(--display); font-size: 18px; white-space: nowrap;
  transition: opacity .4s, transform .6s cubic-bezier(.2, .9, .3, 1.25); pointer-events: none; z-index: 30;
  max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
