* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8cbdee; color: #26323f;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, "Noto Color Emoji";
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }

#hud { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(100%, 620px); z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  padding: calc(env(safe-area-inset-top) + 6px) 10px 6px; pointer-events: none; }
.hud-right > * { pointer-events: auto; }
.hud-left { font-size: 13px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
#bloomCount { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
#wind { color: #fff; text-shadow: 0 1px 2px rgba(38,50,63,.5); letter-spacing: -2px; }
.hud-mid { text-align: center; min-width: 96px; }
#count { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
#gauge { height: 8px; border-radius: 4px; background: rgba(38,50,63,.18); overflow: hidden; }
#gauge i { display: block; height: 100%; background: #2f86d6; transform-origin: left; }
#gauge.low i { background: #e8673c; }
.hud-right { display: flex; justify-content: flex-end; gap: 4px; }
.hud-right button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.75);
  font-size: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hud-right button:disabled { opacity: .35; cursor: default; }
#map { grid-column: 1 / -1; position: relative; height: 14px; border-radius: 7px; background: rgba(255,255,255,.45); overflow: hidden; }
#map i { position: absolute; top: 0; bottom: 0; }
#map .lake { background: #4aa3e0; opacity: .8; top: 7px; border-radius: 3px 3px 0 0; }
#map .tree { background: #2f7d43; opacity: .55; bottom: 7px; border-radius: 0 0 3px 3px; }
#map .dot { width: 8px; height: 8px; top: 3px; margin-left: -4px; border-radius: 50%; background: #b08a52; }
#map .dot[data-s="ok"] { background: #e3c63c; }
#map .dot[data-s="bloom"] { background: #3fae4a; }
#map .dot[data-s="drowned"] { background: #3a6fc4; }
#map .dot[data-s="burnt"] { background: #2c2826; }
#mapView { border: 2px solid rgba(38,50,63,.5); border-radius: 7px; }
#mapFire { background: #ff5a1f; top: 8px !important; animation: flick .3s infinite alternate; }
@keyframes flick { to { opacity: .5; } }
#mapCloud { width: 12px; height: 6px !important; bottom: auto !important; top: 0; margin-left: -6px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(38,50,63,.4); }
#day { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(38,50,63,.12); overflow: hidden; margin-top: -2px; }
#sun { display: block; height: 100%; background: #ffc83d; transform-origin: left; }
#sun.low { background: #e8673c; }
#practiceTag { position: fixed; top: calc(env(safe-area-inset-top) + 96px); left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #e8673c;
  padding: 3px 9px; border-radius: 9px; }

#bubble { position: fixed; z-index: 2; transform: translate(-50%, -100%); max-width: 220px; padding: 8px 12px;
  background: #fff; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; }
#bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
#hint { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 8px); left: 0; right: 0; text-align: center; z-index: 2;
  font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(60,40,20,.7); pointer-events: none; padding: 0 12px; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 700; z-index: 5; background: #8cbdee; color: #fff; }

.card { position: fixed; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 390px);
  background: #fffaf2; border-radius: 22px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px 20px 16px; text-align: center; box-shadow: 0 10px 40px rgba(30,40,60,.3); }
.card h1 { margin: 0 0 2px; font-size: 34px; letter-spacing: -.02em; }
.card h2 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 6px 0; line-height: 1.35; }
.card .big { font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.card .big small { font-size: 18px; opacity: .55; }
.card .grid { font-size: 22px; letter-spacing: 2px; margin: 4px 0; }
.card .sub { font-size: 14px; opacity: .7; }
.card .quip { font-style: italic; font-size: 16px; margin: 10px 0; }
.card .unlock { font-size: 14px; font-weight: 700; color: #b04a24; background: rgba(232,103,60,.1); border-radius: 10px; padding: 8px; }
.card .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.card .btn { min-height: 46px; padding: 0 18px; border-radius: 14px; border: 0; background: #e6ecf2; font-weight: 700; font-size: 16px; }
.card .btn.go { background: #2f86d6; color: #fff; }
.card .share { font-family: ui-monospace, Menlo, monospace, "Noto Color Emoji"; font-size: 13px; white-space: pre-wrap; background: #eef2f6;
  border-radius: 10px; padding: 8px; text-align: left; margin-top: 10px; }
.card .more { display: block; margin-top: 12px; font-size: 13px; color: #2a6aa8; }
.card .credit { font-size: 11px; opacity: .5; margin-top: 8px; }
.card .keys { font-size: 13px; opacity: .75; margin-top: 8px; }
body.touch .desk, body:not(.touch) .tch { display: none; }
@media (pointer: fine) { .hud-right button:hover { background: #fff; } .card .btn:hover { filter: brightness(1.05); } }

/* the vote and the fake door (result card) */
.card .ask { border-top: 1px solid rgba(38,50,63,.1); margin-top: 10px; padding-top: 4px; }
.card .ask .q { font-size: 13px; opacity: .8; margin: 6px 0; }
.card .ask .q a { color: #2a6aa8; }
.card .ask .chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 0 2px 2px; }
.card .ask .chips::-webkit-scrollbar { display: none; }
.card .ask .chips button { flex: none; }
.card .ask .chips button { min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid rgba(38,50,63,.18); background: #fff; font-size: 13px; font-weight: 600; }
.card #door button { min-height: 44px; width: 100%; margin: 6px 0 2px; padding: 6px 12px; border-radius: 14px; border: 1px dashed rgba(47,134,214,.6); background: rgba(47,134,214,.07); color: #1f5f9e; font-size: 13px; font-weight: 600; }
.card .more.follow { margin-top: 4px; }

/* the wefav mark (title) and the studio row (result), both drawn by wefav.com/_site/studio.js */
.card .mark { display: block; margin: -8px 0 6px; }
.card .wrow { margin-top: 12px; }
.card .wrow .more { margin-top: 0; }
/* the result card is wider on a desktop, so it fits with the row and the row's cards sit side by side */
@media (min-width: 700px) { .card.wide { width: 600px; } }

/* the meter legend on the title card: a small copy of a plant's thirst meter */
.mtr { display: inline-block; position: relative; width: 46px; height: 12px; vertical-align: -1px; margin-right: 4px; border-radius: 2px; background: rgba(38,50,63,.6); }
.mtr i { position: absolute; left: 3px; top: 2px; bottom: 2px; width: 18px; background: #6cc2f5; }
.mtr b { position: absolute; left: 22px; right: 3px; top: 2px; bottom: 2px; background: rgba(255,107,91,.85); border-left: 2px solid #fff; }
