/* Daily games in your language (17 Nov 2026): one shelf page per language, in the language's own folder (it, tr, es, pt, fr).
   Not a game: it wears the site's slate, as the world table, the duel and the rooms do. Everything shared lives in assets/css/logicers.css.
   A card is one link to someone else's game; its tile borrows one of the site's colours so the page feels like Logicers. */
[data-g="daily"] { --c: #3A3F5C; --tint: #ECEEF6; }
@media (prefers-color-scheme: dark) {
  [data-g="daily"] { --c: #AEB6DA; --tint: #141728; }
}

.dl-wrap { padding-bottom: 40px; }
.dl-h1 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 7.6vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.07; }
.dl-lede { margin-top: 10px; max-width: 30rem; font-size: 1.05rem; line-height: 1.42; color: var(--soft); }

.dl-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }

.dl-card {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 3px 14px; align-items: center;
  padding: 14px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease;
}
.dl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.dl-card:active { transform: scale(0.985); }
.dl-card:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }

.dl-tile {
  grid-row: 1 / span 2; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
  background: var(--c); color: var(--on-c); font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1;
}
.dl-name { align-self: end; min-width: 0; font-family: var(--display); font-weight: 800; font-size: 1.16rem; letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: anywhere; }
.dl-host { align-self: start; color: var(--soft); font-size: 0.8rem; font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.dl-line { grid-column: 1 / -1; margin-top: 8px; font-size: 0.98rem; line-height: 1.4; }

/* the button: the colour is the site's slate, so it never looks like a plain link */
.dl-go {
  grid-column: 1 / -1; margin-top: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 0.98rem; letter-spacing: .005em;
}
.dl-go svg { width: 15px; height: 15px; flex: none; }

@media (min-width: 600px) {
  .dl-card { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px 14px 14px; }
  .dl-tile { grid-column: 1; grid-row: 1 / span 2; }
  .dl-name { grid-column: 2; grid-row: 1; }
  .dl-host { grid-column: 2; grid-row: 2; }
  .dl-line { grid-column: 1 / 3; grid-row: 3; margin-top: 6px; }
  .dl-go { grid-column: 3; grid-row: 1 / span 3; margin-top: 0; padding: 0 22px; }
}
@media (hover: none) { .dl-card:hover { transform: none; box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .dl-card, .dl-card:hover, .dl-card:active { transition: none; transform: none; } }

/* "Do you know one?" — the way a maker gets on the page */
.dl-add { margin-top: 26px; padding: 20px 18px 18px; border-radius: 24px; border: 1.5px dashed color-mix(in srgb, var(--soft) 38%, transparent); }
.dl-add h2 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.025em; line-height: 1.2; }
.dl-add p { margin-top: 6px; font-size: 0.98rem; line-height: 1.4; }
.dl-mail {
  margin-top: 14px; min-height: 46px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--c); color: var(--on-c); font-weight: 800; font-size: 0.98rem; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.dl-mail:active { transform: scale(0.97); }
.dl-mail:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }

.dl-back { margin-top: 26px; text-align: center; }
.dl-back a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--soft); font-weight: 700; font-size: 0.95rem; text-decoration: none; border-radius: 10px; }
.dl-back a:hover { color: var(--ink); }
