/* Hub dock shared by Home, Wardrobe and Rank (B's wooden bar, two buttons each side of the Play coin). */
:root { --dock-b: calc(14px + env(safe-area-inset-bottom)); } html.desk { --dock-b: 24px; }
.dock a { text-decoration: none; }
  /* dock: B's wooden bar, two buttons each side of the Play coin */
  .dockwrap { position: absolute; left: 50%; bottom: var(--dock-b); transform: translateX(-50%); transition: transform .45s var(--ease-out); }
  .dock { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 64px; padding: 0 8px 6px; border-radius: 22px; background: linear-gradient(#f2c48a, #d9965a 70%);
    border: 3px solid var(--bark); box-shadow: 0 5px 0 var(--bark), 0 16px 26px -12px rgba(20, 10, 0, .7); }
  .dock::before { content: ''; position: absolute; left: 16px; right: 16px; top: 3px; height: 2px; border-radius: 2px; background: rgba(255, 240, 210, .75); }
  .tab { position: relative; width: 64px; height: 54px; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--ink); font-size: 11.5px; font-weight: 700; border-radius: 14px; transition: background .15s, transform .1s; }
  .tab .i, .tab .cr { width: 26px; height: 26px; display: grid; place-items: center; }
  .tab:active, .tab.pressed { transform: translateY(2px); background: rgba(120, 70, 30, .16); }
  .tab.on { background: rgba(255, 250, 240, .6); box-shadow: inset 0 -3px 0 rgba(120, 70, 30, .22); }
  .tab .dot { position: absolute; top: 4px; right: 12px; min-width: 12px; height: 12px; border-radius: 6px; background: var(--dot); border: 2px solid #fff3dc; color: #fff; font-size: 9px; display: grid; place-items: center; }
  .tab .dot.n { min-width: 18px; height: 18px; top: 1px; right: 8px; font-size: 10.5px; padding: 0 4px; }
  .coin .key { position: static; transform: none; margin-top: 3px; }
  html.desk .coin { align-content: center; gap: 0; }
  .tab .key { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }

  /* the Play coin: one tap plays */
  .coin { position: relative; width: 88px; height: 88px; margin: 0 6px -2px; align-self: center; transform: translateY(-18px); border-radius: 50%; display: grid; place-items: center; transition: transform .12s var(--ease-out), box-shadow .12s;
    background: radial-gradient(circle at 50% 32%, #ffe98f, #ffd24a 55%, #f0b429); border: 3.5px solid var(--gold-edge); box-shadow: 0 6px 0 #8a5a0e, 0 14px 22px -8px rgba(80, 40, 0, .7), inset 0 3px 0 rgba(255, 255, 255, .7); }
  .coin:active, .coin.pressed { transform: translateY(-14px); box-shadow: 0 2px 0 #8a5a0e, 0 8px 14px -8px rgba(80, 40, 0, .7), inset 0 3px 0 rgba(255, 255, 255, .7); }
  .coin .t { font-family: 'Lilita'; font-size: 24px; color: var(--ink); letter-spacing: .02em; margin-top: 2px; }
  .coin::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(255, 210, 74, .6); animation: halo 2.4s var(--ease-out) infinite; }
  @keyframes halo { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
  .coin .ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); opacity: 0; transform: rotate(-90deg); }
  .coin .ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
  .coin .t2 { display: none; font-family: 'Lilita'; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
  .coin .sub { display: none; font-size: 10.5px; font-weight: 700; color: #7a5410; margin-top: -2px; }

  html.desk .dock { height: 70px; padding: 0 12px 7px; gap: 8px; }
  html.desk .tab { width: 92px; height: 58px; font-size: 13px; }
  html.desk .coin { width: 104px; height: 104px; transform: translateY(-22px); } html.desk .coin .t { font-size: 28px; }
  html.desk .coin:active { transform: translateY(-18px); }
