/* app home: tarot.thecocoonmethod.life */

body.app-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { body.app-body { padding-bottom: 0; } }

.appbar { position: sticky; top: 0; z-index: 40; background: rgba(247, 237, 226, .96); border-bottom: 1px solid var(--line); }
.appbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.wordmark b { font: 400 17px/1 var(--logo); letter-spacing: .08em; font-weight: 400; }
.wordmark i { font: italic 400 17px/1 var(--serif); color: var(--rose); }
.appbar .r { display: flex; align-items: center; gap: 10px; }
.signin { white-space: nowrap; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(154, 120, 72, .6); color: var(--ink); }
.topnav { display: none; }
@media (max-width: 380px) { .appbar .lang { display: none; } }
@media (min-width: 960px) {
  .appbar .wrap { height: 72px; }
  .topnav { display: flex; gap: 28px; margin-right: auto; margin-left: 48px; }
  .topnav a { text-decoration: none; font-size: 15px; padding: 8px 0; border-bottom: 1px solid transparent; }
  .topnav a[aria-current="true"] { border-color: var(--gold); }
}

.app { padding: 28px 0 40px; }
.app .wrap { display: grid; gap: 0; }
@media (min-width: 960px) {
  .app { padding: 56px 0 96px; }
  .app .wrap { grid-template-columns: 420px 1fr; gap: 72px; align-items: start; }
  .app-today { position: sticky; top: 104px; }
}

/* today */
.app-today { text-align: center; }
.app-today .eyebrow { color: var(--gold); }
.app-today h1 { font-size: var(--t-3xl); margin: 10px 0 6px; }
.app-today .stage { margin-top: 22px; width: min(56vw, 230px); }
@media (min-width: 960px) { .app-today .stage { width: 250px; } }
.app-today .reading { margin-top: 8px; }
.app-today .draw { padding: 0 0 8px; }

/* unlock strip */
.ustrip {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: center;
  background: var(--rose); color: var(--paper); border-radius: 18px; padding: 18px; margin: 32px 0 8px;
}
.ustrip .tcard { grid-row: span 2; width: 64px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.ustrip h2 { font-size: var(--t-xl); color: var(--paper); }
.ustrip h2 em { color: #f3d9c9; }
.ustrip p { font-size: var(--t-s); line-height: 1.4; opacity: .92; }
.ustrip .btn { grid-column: 1 / -1; margin-top: 12px; background: var(--paper); color: var(--ink); }
.ustrip .btn:hover { background: #fff; }
.owned { display: none; margin: 32px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.owned p { font-family: var(--serif); font-size: var(--t-l); }
.owned p em { color: var(--rose); }
.is-unlocked .ustrip { display: none; }
.is-unlocked .owned { display: block; }
@media (min-width: 960px) { .app-side > .ustrip:first-child, .app-side > .owned:first-child { margin-top: 0; } }

/* lists */
.block { padding-top: 40px; scroll-margin-top: 80px; }
.block-head { margin-bottom: 12px; }
.block-head p { margin-top: 4px; }
@media (min-width: 560px) { .block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .block-head p { margin-top: 0; } }
.block-head h2 { font-size: var(--t-2xl); }
.block-head p { color: var(--muted); font-size: var(--t-s); }
.block > p.intro { color: var(--muted); margin-bottom: 8px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .rows button.row {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 0; text-align: left; text-decoration: none; min-height: 84px;
}
.rows .tcard { width: 44px; border-radius: 5px; box-shadow: 0 6px 12px -8px rgba(70, 40, 30, .6); }
.rows .nm { font: 380 var(--t-l)/1.2 var(--serif); display: block; }
.rows .mt { font-size: var(--t-s); color: var(--muted); display: block; margin-top: 2px; line-height: 1.35; }
.rows .end { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); display: flex; align-items: center; gap: 6px; }
.rows .end svg { width: 18px; height: 18px; }
.rows .end .lk { color: var(--rose); }
.rows .end .go { display: none; color: var(--muted); }
.is-unlocked .rows .end .lk { display: none; }
.is-unlocked .rows .end .go { display: block; }
.rows a:hover .nm, .rows button.row:hover .nm { color: var(--rose-deep); }
.rows .ico-row { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--rose-deep); }
.rows .ico-row svg { width: 20px; height: 20px; }
.rows .ico-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* deck grid */
.deckgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; margin: 6px 0 22px; }
.deckgrid button { position: relative; display: block; text-align: left; min-width: 0; }
.deckgrid .tcard, .rows .tcard { display: block; }
.deckgrid .tcard { border-radius: 6px; box-shadow: 0 8px 16px -10px rgba(70, 40, 30, .6); transition: transform .3s var(--ease); }
.deckgrid button:hover .tcard { transform: translateY(-3px); }
.deckgrid .cap { display: block; font: italic 400 13px/1.25 var(--serif); margin-top: 6px; color: var(--muted); }
.deckgrid .lk { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(251, 246, 240, .92); color: var(--rose); display: grid; place-items: center; }
.deckgrid .lk svg { width: 13px; height: 13px; }
.is-unlocked .deckgrid .lk { display: none; }
@media (min-width: 960px) { .deckgrid { gap: 16px; } }

/* bottom tabs */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(251, 246, 240, .98); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: grid; justify-items: center; gap: 4px; padding: 10px 0 12px; min-height: 60px; text-decoration: none; font: 500 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="true"] { color: var(--rose-deep); }
@media (min-width: 960px) { .tabbar { display: none; } }

.app-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 8px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.app-foot a { color: inherit; }
@media (min-width: 960px) { .app-today:has(.draw.is-turned) { position: static; } }
/* after today's card is turned on a phone, its own unlock button already carries the offer */
@media (max-width: 959px) { .app-today:has(.draw.is-turned) ~ .app-side .ustrip { display: none; } }
