/* Cafe 247 kitchen (home page) */

body.hub {
  padding-top: env(safe-area-inset-top, 0px);
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(242, 179, 61, .22), transparent 60%),
    radial-gradient(700px 380px at -20% 30%, rgba(217, 72, 28, .08), transparent 60%),
    var(--cream);
}
body.hub::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--cream);
}
.hub main, .top, .foot {
  width: 100%; max-width: 980px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 46px; height: 46px; flex: none; }
.logo b { display: block; font: 700 24px/1 var(--display); letter-spacing: -.01em; }
.logo small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--chili); margin-top: 4px; }

.hero { padding-block: 18px 8px; max-width: 640px; }
.kicker { display: inline-block; font-weight: 700; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--chili); background: #fff; border: 1.5px solid var(--line); padding: 2px 12px; border-radius: 999px; }
.hero h1 { font: 700 clamp(34px, 8vw, 56px)/1.04 var(--display); letter-spacing: -.02em; margin: 14px 0 12px; text-wrap: balance; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font: 700 26px/1.1 var(--display); }
.daily-no { font-weight: 700; color: var(--ink-soft); font-size: 14px; }

/* "Continue" pill under the hero */
.continue {
  display: inline-flex; align-items: center; margin-top: 16px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}
.continue:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }

/* Today's round: play 3 counters */
.round {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; margin-top: 16px;
  padding: 14px 16px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  max-width: 560px;
}
.round-text { display: grid; gap: 2px; min-width: 0; }
.round-text b { font: 700 18px/1.2 var(--display); }
.round-text span { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.round-text .streak { color: var(--chili); font-weight: 800; }
.round .dots { display: flex; gap: 6px; }
.round .dot { width: 38px; height: 38px; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; }
.round .dot.on { border: 0; }
.round .dot svg { width: 28px; height: 28px; }
.round .try { grid-column: 1 / -1; justify-self: start; }
.round.done { border-color: var(--mint); box-shadow: 0 4px 0 var(--mint); }

/* Filter chips: scroll sideways on phones */
.floor { margin-top: 26px; }
.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px 6px;
  scroll-padding-inline: 16px;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
}
.filters button .n { font-size: 12px; color: var(--ink-soft); background: #f6ead6; border-radius: 999px; padding: 0 7px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .18); color: #fff; }

/* List / grid toggle (phones) */
.view { display: flex; gap: 4px; }
.view button { width: 38px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; line-height: 1; }
.view button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 760px) { .view { display: none; } }

/* Counters: list on phones, grid on wider screens. Each card is a little stall with an awning. */
.counters { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.counter {
  --accent: var(--chili);
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 18px 14px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  overflow: hidden; transition: transform .12s;
}
.counter:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.counter .awning {
  position: absolute; inset: 0 0 auto; height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, #fff 18px 36px);
}
.counter .awning::after {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px;
  background: radial-gradient(circle at 9px -2px, var(--accent) 8px, transparent 8.5px) 0 0 / 36px 6px repeat-x;
}
.counter .plate { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; }
.counter .plate svg { width: 58px; height: 58px; }
.counter .body { min-width: 0; }
.counter .section { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.counter h3 { font: 700 21px/1.15 var(--display); margin-top: 2px; }
.counter h3 .hi { font: 600 14px/1 var(--font); color: var(--ink-soft); margin-left: 6px; }
.counter .blurb { color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; margin-top: 3px; }
.counter .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 7px; }
.counter .prog { font-size: 13px; font-weight: 700; color: var(--ink); }
.counter .cover { position: absolute; inset: 0; z-index: 0; }
.counter .play { position: relative; z-index: 1; padding: 10px 18px; font-size: 16px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: #f6ead6; color: var(--ink-soft); }
.tag.new { background: var(--turmeric); color: var(--ink); }

@media (max-width: 520px) {
  .counter { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; padding: 16px 12px 12px; }
  .counter .plate { width: 60px; height: 60px; border-radius: 16px; }
  .counter .plate svg { width: 48px; height: 48px; }
  .counter h3 { font-size: 19px; }
  .counter .blurb { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .counter .play { padding: 8px 14px; font-size: 15px; }
}
/* Phone grid: two compact tiles per row */
@media (max-width: 759px) {
  .counters.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .counters.grid .counter { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 18px 10px 10px; }
  .counters.grid .counter .plate { width: 100%; height: 86px; }
  .counters.grid .counter .plate svg { width: 64px; height: 64px; }
  .counters.grid .counter .blurb, .counters.grid .counter .section { display: none; }
  .counters.grid .counter h3 { font-size: 17px; }
  .counters.grid .counter h3 .hi { display: none; }
  .counters.grid .counter .meta { margin-top: 2px; }
  .counters.grid .counter .body { flex: 1; }
  .counters.grid .counter .play { align-self: stretch; text-align: center; padding: 8px; }
}
@media (min-width: 760px) {
  .counters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .counter { display: flex; flex-direction: column; align-items: stretch; padding: 26px 18px 18px; gap: 12px; }
  .counter .plate { width: 100%; height: 132px; border-radius: 16px; }
  .counter .plate svg { width: 96px; height: 96px; }
  .counter .body { flex: 1; }
  .counter .play { align-self: flex-start; }
}

/* Daily specials: one small card per game with a daily */
.specials { margin-top: 34px; }
.special-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.special {
  position: relative; display: grid; gap: 4px; padding: 14px; border-radius: var(--r); text-decoration: none; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .12s;
}
.special:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.special .art { width: 44px; height: 44px; }
.special b { font-size: 16px; line-height: 1.2; }
.special small { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.special.done small { color: var(--mint); }
.special .fire { position: absolute; top: 10px; right: 12px; font-weight: 800; font-size: 13px; color: var(--chili); }
@media (max-width: 760px) {
  .special-row { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
  .special-row::-webkit-scrollbar { display: none; }
  .special { flex: 0 0 148px; }
}

/* Teasers */
.next { margin-top: 34px; }
.next-p { color: var(--ink-soft); margin: -6px 0 14px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.idea { display: grid; gap: 6px; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .55); border: 1.5px dashed #dcc6a3; }
.idea b { font-size: 17px; }
.idea span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; }
.idea button { justify-self: start; margin-top: 4px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 14px; }
.idea button[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #fff; }
@media (max-width: 720px) { .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .idea { padding: 12px; } .idea span { font-size: 13.5px; } .idea button { font-size: 13px; padding: 4px 10px; } }

.foot { padding-block: 34px calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--ink-soft); font-size: 14.5px; display: grid; gap: 6px; }
.foot .small { font-size: 13px; opacity: .85; }
.tag.pick { background: var(--ink); color: #fff; }

.top-right { display: flex; align-items: center; gap: 8px; }
.top .lives-chip { height: 36px; background: rgba(255, 255, 255, .7); border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; }

/* Story mode card under today's round */
.quest-card {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 6px 12px; margin-top: 12px; max-width: 560px;
  padding: 14px 16px; border-radius: 18px; color: var(--ink); text-decoration: none;
  background: linear-gradient(120deg, #fff1d6, #fde0e0); border: 1.5px solid #f0c9a0; box-shadow: 0 4px 0 #f0c9a0;
}
.quest-card:empty { display: none; }
.qc-face svg { width: 58px; height: 58px; display: block; }
.qc-text { display: grid; gap: 1px; min-width: 0; }
.qc-text small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--chili); }
.qc-text b { font: 700 20px/1.15 var(--display); }
.qc-text span { font-size: 14px; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.quest-card .btn { grid-column: 1 / -1; justify-self: start; }
.taste-card {
  display: grid; gap: 2px; margin-top: 10px; max-width: 560px; padding: 12px 16px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: #fff; border: 1.5px dashed var(--chili);
}
.taste-card b { font-size: 16px; }
.taste-card b::after { content: " →"; color: var(--chili); }
.taste-card small { color: var(--ink-soft); font-size: 14px; }
