/* Riskelo US — the site's stylesheet.
   The colors are exactly the board's: the site and the game must not look
   like two different products. The accent is green here, where the French
   app's is blue — the same difference the two icons carry. */

:root {
  --sea:    #171f29;
  --panel:  #242b36;
  --ink:    #edf0f2;
  --dim:    #949ead;
  --held:   #5cb873;
  --lost:   #db594d;
  --green:  #5cb873;
  --red:    #cc4f3d;
  --amber:  #dea833;
  --rule:   rgba(148, 158, 173, .22);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sea);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 22px; }

/* Header -------------------------------------------------------------- */

header.bar {
  border-bottom: 1px solid var(--rule);
  background: rgba(23, 31, 41, .92);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky; top: 0; z-index: 10;
}
header.bar .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 58px; flex-wrap: wrap;
}
header.bar .brand {
  font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
header.bar .brand img { width: 26px; height: 26px; border-radius: 7px; }
header.bar nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
header.bar nav a { color: var(--dim); font-size: 14.5px; }
header.bar nav a:hover, header.bar nav a[aria-current] { color: var(--ink); }

/* Hero ---------------------------------------------------------------- */

.hero { padding: 62px 0 46px; text-align: center; }
.hero img.icon {
  width: 116px; height: 116px; border-radius: 26px;
  box-shadow: 0 18px 46px rgba(0,0,0,.5);
}
.hero h1 {
  font-size: 44px; margin: 24px 0 10px; letter-spacing: -.5px;
}
.hero p.tagline {
  font-size: 20px; color: var(--dim); margin: 0 auto; max-width: 30em;
}
.badges {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px;
}
.badge {
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; color: var(--dim);
}

/* Content ------------------------------------------------------------- */

main { padding-bottom: 70px; }
section { padding: 34px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; }

h2 { font-size: 26px; margin: 0 0 14px; letter-spacing: -.3px; }
h3 { font-size: 18px; margin: 30px 0 8px; }
h4 { font-size: 15px; margin: 22px 0 6px; color: var(--dim);
     text-transform: uppercase; letter-spacing: .06em; }
h5 { font-size: 14px; margin: 18px 0 4px; font-weight: 600; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: #fff; }
small { color: var(--dim); }

.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 17px;
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--dim); font-size: 14.5px; }

table {
  width: 100%; border-collapse: collapse; margin: 0 0 16px;
  background: var(--panel); border-radius: var(--radius); overflow: hidden;
  font-size: 15px;
}
th, td { text-align: left; padding: 10px 13px; border-top: 1px solid var(--rule); }
th { color: var(--dim); font-weight: 600; font-size: 13.5px;
     text-transform: uppercase; letter-spacing: .04em; border-top: none; }

pre {
  background: rgba(0,0,0,.3); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
  color: var(--ink);
}

.note {
  background: rgba(92, 184, 115, .12); border: 1px solid rgba(92, 184, 115, .4);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px;
}
.note p:last-child { margin-bottom: 0; }

.warning {
  background: rgba(219, 89, 77, .12); border-color: rgba(219, 89, 77, .45);
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
           margin-top: 30px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.button.solid { background: var(--green); color: #10331c; }
.button.hollow { border: 1px solid var(--rule); color: var(--ink); }
.button:hover { text-decoration: none; opacity: .9; }

/* Table of contents --------------------------------------------------- */

.toc { background: var(--panel); border: 1px solid var(--rule);
       border-radius: var(--radius); padding: 16px 20px; }
.toc ol { margin: 0; padding-left: 20px; column-count: 2; column-gap: 26px; }
.toc li { margin-bottom: 5px; }
@media (max-width: 560px) { .toc ol { column-count: 1; } }

/* Footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule); padding: 26px 0 40px;
  color: var(--dim); font-size: 14px;
}
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap;
               align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .hero p.tagline { font-size: 17px; }
}
