/* Daily Double Dummy (web/src/daily.tsx), on top of style.css: the same card room, in
   one narrow column for a phone. */
main.daily { max-width: 560px; }
main.daily .center { text-align: center; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-inline: calc(50% - 50vw); padding-inline: max(16px, calc(50vw - 50%));
  padding-block: 14px 12px;
  background: radial-gradient(ellipse 60% 140% at 30% 0, rgba(255, 222, 150, 0.28), transparent 70%),
    radial-gradient(ellipse 90% 100% at 50% 100%, var(--felt) 0%, #0e2a1d 75%), var(--room);
  border-bottom: 6px solid var(--rail);
}
.topbar h1 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.25rem, 6vw, 1.7rem); line-height: 1.05; color: #f6e7c1; white-space: nowrap; }
.topbar .streak { white-space: nowrap; flex: none; }
.topbar p { margin: 3px 0 0; font-size: 0.85rem; color: var(--on-felt-muted); }
.topbar button.streak { background: transparent; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-light); padding: 6px 12px; font-weight: 700; }
/* The signed-in player's picture, beside the streak, and its menu. */
.topbar .actions { display: flex; align-items: center; gap: 10px; flex: none; }
/* Signed in, the avatar makes a third button: on a phone the title gives up a little room. */
@media (max-width: 480px) {
  .topbar:has(.avatar) h1 { font-size: clamp(1.05rem, 5vw, 1.7rem); }
  .topbar:has(.avatar) .actions { gap: 6px; }
  .topbar:has(.avatar) button.streak { padding: 6px 9px; }
}
@media (max-width: 350px) {
  .topbar:has(.avatar) .actions { gap: 4px; }
  .topbar:has(.avatar) button.help, .topbar:has(.avatar) button.avatar { width: 32px; height: 32px; }
  .topbar:has(.avatar) button.streak { padding: 5px 7px; }
}
.account { position: relative; }
.topbar button.avatar { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; overflow: hidden; background: var(--felt-dark); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-light); font-weight: 700; }
.topbar button.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 210px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35); text-align: left; }
.account .menu p { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.account .menu b { color: var(--ink); font-weight: 700; }
.account .menu button { display: block; width: 100%; }
.account .menu button + button { margin-top: 8px; }
/* Delete account, which asks again in the menu itself. */
.account .menu .danger { color: var(--red); }
.account .menu .confirm { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.account .menu .confirm p { color: var(--ink); }
.account .menu .confirm button.danger { background: var(--red); border-color: var(--red); color: #fff; }
/* The apps' own sign-in buttons: Apple's black one and Google's white one, as their
   guidelines draw them, the same size and one above the other. */
.signin button.appleid, .signin button.googleid { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 300px; margin: 8px auto 0; border-radius: 999px; font-weight: 600; }
.signin button.appleid { background: #000; border: 1px solid #000; color: #fff; }
.signin button.googleid { background: #fff; border: 1px solid #747775; color: #1f1f1f; }
.signin button.appleid span { font-size: 1.15em; line-height: 1; margin-top: -2px; }
/* On the narrowest phones (320 wide), room for the title, the streak and the picture. */
@media (max-width: 350px) {
  .topbar h1 { font-size: 1.12rem; }
  .topbar .actions { gap: 6px; }
  .topbar button.streak { padding: 6px 9px; }
}

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0 0; }
.week > span, .week > a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; color: var(--ink); text-decoration: none; }
.week .here { background: var(--card); box-shadow: 0 0 0 2px var(--felt); }
.week b { font-size: 0.72rem; color: var(--muted); }
.week small { font-size: 0.66rem; color: var(--muted); }
.week .sq { width: 20px; height: 20px; }

/* The puzzle's goal and terms, in a box of their own above the table. */
.goal { width: 100%; max-width: 460px; margin: 14px auto 12px; padding: 10px 16px 14px; text-align: center; background: var(--card); border: 2px solid var(--felt); border-radius: 16px; box-shadow: 0 8px 22px rgba(70, 50, 20, 0.08); }
.goal h2 { margin: 0; font-size: 1.55rem; line-height: 1.15; color: var(--felt); }
.goal p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.goal p.which { margin: 0 0 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.goal .stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; text-transform: none; }
.goal .terms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; padding: 0; }
.goal .terms li { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.goal .terms li.trumps { border: 1.5px solid var(--felt); background: var(--card); }
.goal .terms .sym { font-size: 1.05rem; color: var(--black); }
.goal .terms .s1, .goal .terms .s2 { color: var(--red); }
.goal .vs { margin-top: 10px; color: var(--ink); font-weight: 600; }
.goal .back { margin-top: 10px; }
.goal .back a { color: var(--felt); font-weight: 600; }
/* Pro: past days open their puzzle, from the week and the calendar. */
.week > a:hover { background: color-mix(in srgb, var(--felt) 8%, transparent); }
.calendar a.day { color: inherit; text-decoration: none; }
/* Pro's review of a finished game, under the result's heading. */
.result .review { text-align: left; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 14%, transparent); }
.result .review h3 { margin: 0 0 4px; font-size: 1rem; }
.result .review p { margin: 4px 0; font-size: 0.92rem; }
/* Pro's practice: the sizes to practise, under a finished daily; Next under a finished one. */
.result .practice-offer { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.result .practice-offer h3 { margin: 0 0 4px; font-size: 1rem; }
.result .practice-offer .sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.result .practice-offer .sizes a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.result a.button { display: block; box-sizing: border-box; text-align: center; text-decoration: none; padding: 12px 16px; border-radius: 999px; font-weight: 700; }
.result a.button.primary { background: var(--felt); color: var(--on-felt); }
.pro-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--felt); color: var(--on-felt); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px; vertical-align: 2px; }

main.daily .diagram { overflow: hidden; }
.hand .who .you { margin-left: 6px; font-size: 0.68rem; padding: 0 5px; border-radius: 4px; background: color-mix(in srgb, var(--felt) 14%, transparent); color: var(--felt); font-weight: 700; }
.hand.mover { box-shadow: 0 0 0 3px var(--gold), 0 3px 8px rgba(0, 0, 0, 0.35); }
button.card.play { font: inherit; font-size: 1rem; padding: 0 4px; margin-right: 1px; min-width: 1.3em; border-radius: 5px; border: 0; background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--ink); font-weight: 700; cursor: pointer; }
button.card.play:hover, button.card.play:focus-visible { background: var(--gold); }
.hand .rank { margin-right: 0.3em; }
/* Every seat's compass label, in the middle of the felt, at phone width too. */
main.daily .compass, main.daily .compass.playing { display: grid; }
@media (max-width: 480px) {
  main.daily .dgrid, main.daily .dgrid:has(.compass.playing) { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); column-gap: 8px; }
  main.daily .pos0 { grid-column: 2; grid-row: 1; justify-self: unsafe center; }
  main.daily .pos3 { grid-column: 1; grid-row: 2; justify-self: end; }
  main.daily .pos1 { grid-column: 3; grid-row: 2; justify-self: start; }
  main.daily .pos2 { grid-column: 2; grid-row: 3; justify-self: unsafe center; }
  main.daily .compass.playing { grid-column: 2; grid-row: 2; width: 96px; height: 96px; }
  main.daily .hand { padding: 5px 7px 6px; }
}

.status { text-align: center; margin: 12px 0 0; min-height: 1.5em; font-weight: 600; color: var(--felt); }
.panel.log { margin-top: 12px; }
.panel.login { margin-top: 12px; }
.panel.login .signin { margin-top: 0; padding-top: 0; border-top: 0; }
.log h3 { margin: 0 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.15rem; }
/* The cards in the order played, in four narrow columns of the same width, so that the
   tricks read as a block; a gold outline round each trick's winning card. */
.log ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.log li { display: grid; grid-template-columns: 14px repeat(4, 3.9em); align-items: center; gap: 4px; font-size: 0.92rem; min-height: 28px; }
.log li .sq { width: 14px; height: 14px; margin: 0; border-radius: 3px; }
.log li > span:not(.sq) { justify-self: start; padding: 1px 6px; white-space: nowrap; }
.log li span.won { box-shadow: inset 0 0 0 1.5px var(--gold); border-radius: 7px; }
.try[role="button"] { cursor: pointer; }
.try[role="button"]:hover { background: color-mix(in srgb, var(--felt) 6%, transparent); }
.try.picked { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.doomed { display: flex; align-items: center; justify-content: center; gap: 6px 12px; margin: 4px auto 0; flex-wrap: wrap; text-align: center; }
.doomed p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.doomed button { padding: 6px 14px; font-size: 0.9rem; }

.sq { display: inline-block; width: 24px; height: 24px; border-radius: 5px; margin: 0 2px; vertical-align: middle; background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.sq.G { background: #3f9b5f; box-shadow: none; }
.sq.Y { background: #d9a93a; box-shadow: none; }
.sq.R { background: #c8442f; box-shadow: none; }

main.daily .panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 22px rgba(70, 50, 20, 0.08); }
.panel.tries { margin-top: 12px; }
.try { display: grid; grid-template-columns: 52px minmax(0, max-content) 1fr; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 0.85rem; color: var(--muted); }
.try.now { background: color-mix(in srgb, var(--felt) 8%, transparent); }
/* A try's squares, one per trick, stay on one line (not the site's wrapping .row): closer
   together on a phone, and a Sunday's eight shrink a little if they still don't fit. */
.try .row { flex-wrap: nowrap; gap: 12px; min-width: 0; }
.try .row .sq { flex: 0 1 auto; width: 24px; min-width: 12px; height: auto; aspect-ratio: 1; margin: 0; }
@media (max-width: 480px) { .try { grid-template-columns: 44px minmax(0, max-content) 1fr; } .try .row { gap: 4px; } }
.try .what { color: var(--ink); white-space: nowrap; min-width: 3.3em; }
button.wide { display: block; width: 100%; margin-top: 10px; padding: 11px; font-size: 1rem; }
/* Full width, so only the icon and its words need centring, together. */
button.share { display: flex; justify-content: center; }
/* A button's icon and its words, side by side and centred together: Share result, and
   the club kit's Copy buttons. */
button > .state { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.wide.link { background: transparent; border-color: transparent; color: var(--felt); text-decoration: underline; }
.result { text-align: center; margin-top: 10px; }
.result h2 { margin: 6px 0 2px; }
.note { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
.standings { margin: 12px 0 4px; display: grid; gap: 5px; text-align: left; }
.standings .rank { text-align: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.35rem; margin: 0 0 4px; color: var(--felt); }
.standings .bar { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; }
.standings .bar span { display: block; min-width: 2.8em; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); font-size: 0.78rem; font-weight: 700; text-align: right; }
.standings .bar span.mine { background: #3f9b5f; color: #fff; }
.standings .note { text-align: center; }

.calendar { margin-top: 12px; }
.signin { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.signin p { margin: 0 0 8px; font-weight: 600; }
.signin .gbutton { display: flex; justify-content: center; min-height: 44px; }
.badge-offer button.wide { margin-top: 0; }
.result .badge-on { margin-top: 14px; }
.history { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.history h3 { margin: 0 0 6px; text-align: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem; }
.history .stats { margin-top: 0; }
.history .standings .bar span { background: #3f9b5f; color: #fff; }
/* Pro's progress: a bar per day of the week, difficulty and week, the share made. */
.progress-pro { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.progress-pro h3 { margin: 0 0 2px; text-align: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.3rem; }
.progress-pro .note { text-align: center; margin: 0 0 6px; }
.progress-pro h4 { margin: 12px 0 4px; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.progress-pro .prog { display: grid; grid-template-columns: 8.5em 1fr 4.2em; align-items: center; gap: 8px; margin: 3px 0; font-size: 0.85rem; }
.progress-pro .prog .what { color: var(--ink); white-space: nowrap; }
.progress-pro .prog .track { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.progress-pro .prog .fill { display: block; height: 100%; border-radius: 6px; background: #3f9b5f; }
.progress-pro .prog .count { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.history .standings .bar span.miss { background: #c8442f; }
.history .standings .bar span.zero { background: color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); }
.history .note { text-align: center; margin-top: 12px; }
button.linkish { background: none; border: 0; padding: 0; color: var(--felt); text-decoration: underline; font: inherit; cursor: pointer; }
.soon { margin-top: 24px; text-align: center; }
main.daily .panel.soon { padding: 24px 24px 24px; display: grid; justify-items: center; }
.soon .banner { margin: 0 0 16px; max-width: 420px; }
.soon h2 { font-size: 1.6rem; line-height: 1.15; color: var(--felt); margin: 0 0 8px; text-wrap: balance; }
.soon p { margin: 0; max-width: 40ch; line-height: 1.5; text-wrap: pretty; }
.soon p.note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; max-width: 40ch; }
.soon a { color: var(--felt); font-weight: 600; }
main.daily { min-height: 100vh; display: flex; flex-direction: column; }
main.daily > footer.site { margin-top: auto; }
.calendar h2 { text-align: center; }
.calendar .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.calendar .grid b { text-align: center; font-size: 0.7rem; color: var(--muted); }
.calendar .day { display: grid; justify-items: center; gap: 2px; background: transparent; border: 0; padding: 0; cursor: default; color: var(--muted); font: inherit; }
.calendar .day .sq { width: 28px; height: 28px; margin: 0; }
.calendar .day.G .sq { background: #3f9b5f; box-shadow: none; }
.calendar .day.Y .sq { background: #d9a93a; box-shadow: none; }
.calendar .day.R .sq { background: #c8442f; box-shadow: none; }
.calendar .day.today .sq { box-shadow: inset 0 0 0 2px var(--gold); }
.calendar .day .d { font-size: 0.68rem; }
.calendar .stats { display: flex; justify-content: space-around; margin-top: 12px; text-align: center; }
.calendar .stats b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.6rem; }
.calendar .stats span { font-size: 0.8rem; color: var(--muted); }
.calendar .note { text-align: center; }

/* Club leaderboards: under a finished puzzle, the club's board (or the offer to start
   one), and above the puzzle, the join card a club's invite opens with. */
.club { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.club h3 { margin: 0 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.2rem; line-height: 1.2; }
.club .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.club .head h3 { margin: 0; }
.club select.pick { min-width: 0; max-width: 70%; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.05rem; }
.club p { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.club label, .join label { display: grid; gap: 4px; margin: 0 0 10px; color: var(--muted); font-size: 0.85rem; }
.club input, .join input { width: 100%; font-size: 1rem; padding: 9px 12px; }
.club button.wide { margin-top: 0; }
.club .invite { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.club .url { display: block; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-weight: 700; text-align: center; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.club .seg { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.club .seg button { border: 0; padding: 5px 14px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.club .seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.club .note { margin: 10px 0 0; font-size: 0.8rem; text-align: center; }
.club .more { margin: 8px 0 0; font-size: 0.8rem; text-align: center; color: var(--muted); }
.club a.linkish { color: var(--felt); }
.club .para { margin: 12px 0 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); line-height: 1.5; font-size: 0.9rem; }
.club button.copyreport { margin-top: 0; }
table.standing { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.standing td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
table.standing tbody tr:first-child td { border-top: 0; }
table.standing th { padding: 0 4px 4px; font-size: 0.68rem; font-weight: 600; color: var(--muted); text-align: center; }
table.standing th.pts { text-align: right; }
table.standing .rk { width: 20px; color: var(--muted); font-weight: 700; text-align: center; }
table.standing .nm { font-weight: 600; overflow-wrap: anywhere; }
table.standing tr.me .nm::after { content: " (you)"; font-weight: 400; color: var(--muted); }
table.standing tr.me td { background: color-mix(in srgb, var(--gold) 13%, transparent); }
table.standing tr.me td:first-child { border-radius: 8px 0 0 8px; }
table.standing tr.me td:last-child { border-radius: 0 8px 8px 0; }
table.standing .t { white-space: nowrap; text-align: right; }
table.standing .t .sq, table.standing .d .sq { width: 13px; height: 13px; margin: 0 1px; border-radius: 3px; }
table.standing .what { width: 76px; color: var(--muted); font-size: 0.8rem; text-align: right; white-space: nowrap; }
table.standing .d { text-align: center; padding: 7px 1px; }
table.standing .d .sq.today { box-shadow: inset 0 0 0 2px var(--gold); }
table.standing .d .sq.later { opacity: 0.35; }
table.standing .pts { width: 42px; text-align: right; font-family: var(--display); font-weight: var(--display-weight); }
/* Leave this club? */
dialog.confirm { width: min(340px, calc(100vw - 32px)); padding: 22px 20px 18px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
dialog.confirm::backdrop { background: rgba(11, 31, 21, 0.55); }
dialog.confirm h3 { margin: 0 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.25rem; line-height: 1.2; }
dialog.confirm p { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
dialog.confirm button.wide { margin: 8px 0 0; }
dialog.confirm button.wide:first-of-type { margin-top: 0; }
/* How to play: wider than a confirmation, its text left-aligned, an example result in
   the middle, and the basics of bridge play below a line once asked for. */
dialog.howto { width: min(420px, calc(100vw - 32px)); text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; }
dialog.howto h3 { text-align: center; margin-bottom: 12px; }
dialog.howto p { margin: 0 0 10px; color: var(--ink); }
dialog.howto .example { display: grid; justify-content: center; gap: 4px; margin: 4px 0 10px; }
dialog.howto .example .sq { width: 22px; height: 22px; }
dialog.howto .basics { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
dialog.howto h4 { margin: 0 0 8px; font-size: 1rem; }
dialog.howto button.wide.primary { margin-top: 14px; }
/* The basics are a real choice, so a button, but the second one: outlined in the felt green. */
dialog.howto button.wide.secondary { margin-top: 10px; background: transparent; color: var(--felt); border: 1.5px solid var(--felt); }
.topbar button.help { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-light); font-weight: 700; }
button.danger { background: #c8442f; border-color: #c8442f; color: #fff; font-weight: 700; }
main.daily .panel.join { margin-top: 14px; padding: 18px; }
.join h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.25rem; margin: 0 0 4px; color: var(--felt); }
.join p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
.join button.wide { margin-top: 4px; }
.join .small { margin: 8px 0 0; font-size: 0.8rem; text-align: center; color: var(--muted); }

/* The For clubs page (web/src/clubs.html): panels of its own, the prints to download,
   and last week's paragraph. */
main.daily .panel.kit { margin-top: 18px; padding: 22px; }
.kit .banner { max-width: 340px; margin: 0 auto 14px; filter: none; }
.kit h2 { font-size: 1.45rem; line-height: 1.15; color: var(--felt); margin: 0 0 8px; }
.kit p { margin: 0 0 12px; line-height: 1.5; text-wrap: pretty; }
.kit .lede { color: var(--muted); }
.kit ol { margin: 0 0 14px; padding-left: 1.3em; line-height: 1.5; }
.kit li { margin: 6px 0; }
.kit a.button { display: block; text-align: center; padding: 11px; border-radius: 999px; background: var(--felt); color: #fff; font-weight: 700; text-decoration: none; }
.kit .prints { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 12px; }
.kit .print { display: grid; gap: 8px; justify-items: center; text-align: center; }
.kit .print .frame { width: 100%; height: 190px; display: grid; place-items: center; }
.kit .print img { max-width: 100%; max-height: 190px; width: auto; height: auto; border-radius: 6px; box-shadow: 0 6px 16px rgba(60, 40, 10, 0.18); background: #fff; }
.kit .print .dl { display: flex; gap: 6px; white-space: nowrap; }
.kit .print .dl a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--felt); font-weight: 600; font-size: 0.82rem; text-decoration: none; }
/* One step between the panel's parts: 16 between the words, the box and the small print,
   12 from the box to its button. */
.kit .para { margin: 16px 0 12px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); line-height: 1.5; font-size: 0.95rem; }
.kit .para.waiting { color: var(--muted); }
.kit .small { font-size: 0.82rem; line-height: 1.45; color: var(--muted); margin: 16px 0 0; }
.kit button[hidden] { display: none; }
.kit button.wide { margin-top: 0; }

/* The privacy page (web/src/privacy.html): the daily's top bar over one panel of prose. */
.topbar h1 a { color: inherit; text-decoration: none; }
main.daily .panel.policy { margin-top: 24px; padding: 24px; line-height: 1.55; }
.policy h2 { font-size: 1.6rem; line-height: 1.15; color: var(--felt); margin: 0; }
.policy .updated { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }
.policy h3 { font-size: 1rem; margin: 24px 0 8px; }
.policy p { margin: 0 0 8px; text-wrap: pretty; }
.policy > p:nth-of-type(2) { margin-top: 16px; }
.policy a { color: var(--felt); font-weight: 600; }

@media (prefers-color-scheme: dark) {
  main.daily .panel { border-color: transparent; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
  .status { color: var(--gold-light); }
  .week b, .week small { color: #d8c8a8; }
  .goal { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
  .goal .terms li { background: #f3ead8; }
  .week .here { background: #3a2c20; box-shadow: 0 0 0 2px var(--gold); }
  .week > span, .week > a { color: #f3ead8; }
}

/* The apps' hand to play, opened as big cards by a tap on one of its cards (BigHand in
   daily.tsx): a row across the table, overlapping as much as the width needs, with the
   chosen card lifted toward the trick. */
main.daily .bighand { --cw: 66px; --ch: 96px; grid-row: 1; grid-column: 1 / span 3; justify-self: stretch; width: auto; }
main.daily .bighand.pos2 { grid-row: 3; }
@media (min-width: 560px) { main.daily .bighand { --cw: 84px; --ch: 122px; } }
.bighand .who { justify-content: center; gap: 5px; margin: 0 0 4px; font-size: 0.9rem; font-weight: 600; color: #f3ead8; }
.bighand .who .turn { color: var(--gold-light); }
.bighand .who .turn::before { content: "· "; }
.bighand .who .small { margin-left: 6px; padding: 1px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, #f3ead8 45%, transparent);
  background: none; color: #f3ead8; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.bighand .cards { display: flex; justify-content: center; align-items: flex-start; height: calc(var(--ch) + 14px); }
.bighand.pos2 .cards { align-items: flex-end; }
.bighand .pc { position: relative; flex: 0 0 var(--cw); width: var(--cw); height: var(--ch); padding: 0; border-radius: 10px;
  margin-left: min(6px, calc((100% - var(--n) * var(--cw)) / (var(--n) - 1)));
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); color: var(--black); font-family: var(--display);
  cursor: pointer; touch-action: manipulation; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease; }
.bighand .pc:first-child { margin-left: 0; }
.bighand .pc.s1, .bighand .pc.s2 { color: var(--red); }
.bighand .pc .r { position: absolute; top: 6px; left: 8px; font-size: calc(var(--cw) * 0.36); font-weight: 800; line-height: 1; }
.bighand .pc .s { position: absolute; top: calc(var(--cw) * 0.48); left: 9px; font-size: calc(var(--cw) * 0.27); }
.bighand .pc .big { position: absolute; right: 7px; bottom: 5px; font-size: calc(var(--cw) * 0.45); opacity: 0.9; }
.bighand .pc.up { z-index: 2; box-shadow: 0 0 0 3px var(--gold), 0 10px 20px rgba(0, 0, 0, 0.3); }
.bighand.pos0 .pc.up { transform: translateY(12px); }
.bighand.pos2 .pc.up { transform: translateY(-12px); }
.bighand .pc.off, .bighand .pc:disabled { opacity: 1; filter: brightness(0.8) saturate(0.75); cursor: default; }
/* The apps' Clubs tab (daily.html?view=clubs). */
main.clubs-view { padding-top: 12px; }
main.clubs-view .panel > .club:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Yesterday's puzzle under today's: its goal, how everyone did, and its winning line. */
.panel.yesterday { margin-top: 12px; }
.panel.yesterday h3 { margin: 0 0 4px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.1rem; }
.panel.yesterday p { margin: 4px 0; }
.panel.yesterday button.wide.secondary { background: transparent; color: var(--felt); border: 1.5px solid var(--felt); }
.panel.yesterday .panel.log { margin: 10px 0 0; padding: 0; border: 0; box-shadow: none; background: none; }
.result .note.next { margin-top: 12px; }
