/* Tip jar and Custom Fireplace tile (shop.js). Uses the colour and font variables from index.html. */

/* top bar link */
.topbar nav a.tipLink{display:inline-flex;align-items:center;gap:6px}
@media (max-width:420px){
  .topbar nav{gap:2px}
  .topbar nav a{padding:9px 9px}
  .topbar nav a.tipLink .tipWord{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* tip amounts, shared by the card and the dialogs */
.tipAmounts{display:flex;gap:10px;flex-wrap:wrap}
.tipAmt{flex:1 1 0;min-width:92px;flex-direction:column;gap:4px;padding:13px 12px;border-radius:18px;text-align:center;justify-content:center}
.tipAmt b{font:600 22px/1 var(--display);color:var(--amber)}
.tipAmt small{font:500 13px/1.2 var(--body);color:var(--muted);white-space:normal}
.tipAmt:hover b{color:#ffcb8a}
.tipNote{color:var(--muted);font-size:13px;margin:12px 2px 0}

/* card below the music */
.tipCard{display:flex;align-items:center;gap:18px 22px;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:24px;padding:clamp(16px,2.4vw,24px)}
.tipCup{font-size:40px;line-height:1;flex:none}
.tipText{flex:1 1 260px}
.tipText .sub{margin:0}
.tipCard .tipAmounts{flex:1 1 300px}

/* dialogs */
dialog.shopDlg{background:#1d1410;color:var(--text);border:1px solid var(--line);border-radius:26px;padding:24px;width:min(440px,calc(100vw - 32px));box-shadow:0 30px 80px rgba(0,0,0,.6)}
dialog.shopDlg::backdrop{background:rgba(8,5,3,.6);backdrop-filter:blur(3px)}
.shopDlg h3{margin:0 40px 12px 0;font:500 22px/1.2 var(--display)}
.shopDlg p{margin:0 2px 14px;font-size:15px;color:var(--muted)}
.shopDlg .x{position:absolute;top:16px;right:16px;padding:9px 11px}
.shopDlg .tipNote{margin-bottom:0}

/* Custom Fireplace tile: dashed outline with a "+", always after every scene (videos load later, so use order) */
.thumb.customTile{order:1;aspect-ratio:16/10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:rgba(255,236,214,.03);border:2px dashed rgba(244,185,110,.5);box-shadow:none;text-align:center}
.thumb.customTile:hover{border-color:var(--amber);background:rgba(244,185,110,.08);box-shadow:none}
.thumb.customTile span{position:static;padding:0;background:none}
.customTile .plus{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;border:2px dashed currentColor;
  color:var(--amber);font:400 32px/1 var(--display);margin-bottom:4px;transition:transform .25s ease}
.customTile:hover .plus{transform:rotate(90deg)}
.customTile .customName{font:500 16px var(--display)}
.customTile .customSoon{font:600 12px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--amber);opacity:.85}
@media (prefers-reduced-motion:reduce){.customTile .plus{transition:none}}
.shopDlg .thanksRow{display:flex;justify-content:flex-end;margin-top:6px}

/* "email me when custom fireplaces launch" form in the Coming soon dialog */
.notifyForm{margin:0 0 18px;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(255,236,214,.03)}
.notifyLabel{display:block;margin:0 2px 10px;font-size:14px;color:var(--text)}
.notifyLabel a{color:var(--amber)}
.notifyRow{display:flex;gap:8px;flex-wrap:wrap}
.notifyInput{flex:1 1 200px;min-width:0;padding:11px 14px;border-radius:14px;border:1px solid var(--line);background:#120c09;color:var(--text);font:500 15px var(--body)}
.notifyInput:focus{outline:2px solid var(--amber);outline-offset:1px;border-color:transparent}
.notifyRow .btn{flex:none}
.shopDlg .notifyMsg{margin:8px 2px 0;font-size:13px;min-height:0}
.shopDlg .notifyMsg:empty{display:none}
.shopDlg .notifyMsg.err{color:#ff9f8a}
.shopDlg .notifyMsg.ok{margin:0;color:var(--amber);font-size:15px}
