/* Dosa Tycoon — climb.css (5.1 "Climb and share", CLIMB51): the Hall of Fame card (js/climb.js) and the Share button a
 * big moment's notice carries (js/ui-hud.js). Sizes are stage pixels like screens.css: the 1600 x 900 stage is scaled
 * on a desktop (small text reads max(its size, --fl): never under 12 real px), and on a phone the host is zoomed into
 * its ~540 design px (html.dt-compact #screen-layer > .dts-host, screens.css), where nothing here is under 18 design px. */

#screen-layer > .dtc-host { z-index: 3; display: flex; justify-content: center; align-items: flex-start; padding-top: 128px; }

.dtc-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 620px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 20px 64px 20px 20px;
  color: var(--c-ink, #3A1F12);
  background: var(--c-cream, #FFF4DC);
  border: 4px solid var(--c-ink, #3A1F12);
  border-radius: 26px;
  box-shadow: 0 7px 0 var(--c-ink, #3A1F12), 0 18px 40px rgba(0, 0, 0, .35);
  animation: dtc-in .32s cubic-bezier(.2, 1.4, .4, 1) both;
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.dtc-card.is-leaving { opacity: 0; transform: translateY(-14px); pointer-events: none; }
@keyframes dtc-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dtc-card { animation: none; } .dtc-card.is-leaving { transform: none; } }

.dtc-card__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--c-turmeric, #F5B301);
  background: var(--c-kumkum, #8E1B2D);
  border: 3px solid var(--c-ink, #3A1F12);
}
.dtc-card__badge > svg { width: 36px; height: 36px; }
.dtc-card--passed .dtc-card__badge { color: var(--c-cream, #FFF4DC); background: #5A4636; }

.dtc-card__body { flex: 1 1 auto; min-width: 0; }
.dtc-card__kicker { font-size: max(16px, var(--fl, 0px)); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-kumkum, #8E1B2D); }
.dtc-card__head {
  margin-top: 2px;
  font-family: var(--font-display, 'Lilita One', sans-serif);
  font-size: 30px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.dtc-card__line { margin-top: 6px; font-size: max(20px, var(--fl, 0px)); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dtc-card__line--more { margin-top: 3px; font-weight: 600; opacity: .85; }
.dtc-card__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.dtc-card__btns > .dt-btn { text-decoration: none; }
.dtc-card__btns > .dt-btn > svg { flex: none; }

.dtc-card__x {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--c-ink, #3A1F12);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.dtc-card__x:hover { background: rgba(58, 31, 18, .08); }
.dtc-card__x:focus-visible { outline: 3px solid var(--c-kumkum, #8E1B2D); outline-offset: 1px; }
.dtc-card__x > svg { width: 22px; height: 22px; }

/* a phone: the host is zoomed (screens.css); the card takes the width, under the HUD's top row */
html.dt-compact #screen-layer > .dtc-host { padding: calc(var(--pt, 12px) + 168px) var(--pr, 12px) 0 var(--pl, 12px); }          /* (under both rows of the HUD: the cash stays in sight) */
html.dt-compact .dtc-card { width: 100%; max-width: 620px; padding: 16px 72px 16px 16px; gap: 14px; }
html.dt-compact .dtc-card__badge { width: 54px; height: 54px; }
html.dt-compact .dtc-card__badge > svg { width: 30px; height: 30px; }
html.dt-compact .dtc-card__kicker { font-size: max(19px, var(--fl-deep, 0px)); }          /* (12.4 real px at the narrowest zoom, 360 px wide) */
html.dt-compact .dtc-card__head { font-size: 28px; }
html.dt-compact .dtc-card__line { font-size: 21px; }
html.dt-compact .dtc-card__btns > .dt-btn { min-height: 68px; flex: 1 1 auto; justify-content: center; }          /* (68 design px: 44 real px on the narrowest phone, whose host is zoomed to about two thirds) */
html.dt-compact .dtc-card__x { top: 4px; right: 4px; width: 68px; height: 68px; }
html.dt-compact .dtc-card__x > svg { width: 26px; height: 26px; }
html.dt-compact.dt-landscape #screen-layer > .dtc-host { padding-top: calc(var(--pt, 12px) + 64px); }
html.dt-compact.dt-landscape .dtc-card { max-width: 760px; }

/* the Share button on a big moment's notice (js/ui-hud.js showToast) */
.hud-toast__share { display: inline-flex; align-items: center; gap: 6px; background: #FFF4DC; }
.hud-toast__share .hud-ic, .hud-toast__share > svg { width: 18px; height: 18px; flex: none; }
.hud--compact .hud-toast__share { min-width: 44px; justify-content: center; padding: 0 10px 2px; }
.hud--compact .hud-toast__share > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
