/* Inter, hosted on this site (variable font, weights 400-800) */
@font-face { font-family: "Inter"; font-weight: 400 800; font-style: normal; font-display: swap; src: url(../assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400 800; font-style: normal; font-display: swap; src: url(../assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* footer links: keep each link on one line and wrap the row instead (phones) */
.site-footer { flex-wrap: wrap; row-gap: 10px; padding-bottom: 84px; }
.site-footer a { white-space: nowrap; }
@media (max-width: 640px) { .site-footer { gap: 10px 12px; font-size: .8rem; } .site-footer i { height: 14px; } }

/* one format for every row of part buttons: same size tiles that wrap, on every card */
.parts { flex-wrap: wrap; }
.parts .pb { flex: 0 0 56px; }

.ohmdef { margin: 10px 0 8px; font-size: .92rem; line-height: 1.5; color: var(--text, inherit); }
.ohmdef b { font-weight: 700; }

.tc.big .art-cap { display: block; margin-top: 8px; font-size: .8rem; line-height: 1.45; color: var(--muted, #9db8c8); }

/* games section */
.play-sec { max-width: 1180px; margin: 0 auto; padding: 56px 28px 0; }
.play-sec .sh { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--panel, #0a1c3a); border: 1px solid var(--line, rgba(40,200,255,.55)); color: var(--text, #eaf2ff); text-decoration: none; transition: box-shadow .15s, transform .12s; }
.pcard:hover, .pcard:focus-visible { box-shadow: 0 0 18px rgba(25,211,240,.28); outline: none; }
.pcard:active { transform: scale(.99); }
.pcard h3 { margin: 0; font-size: 1.35rem; }
.pcard p { margin: 0; color: var(--muted, #a9bbd6); font-size: .98rem; line-height: 1.5; flex: 1; }
.ptag { font: 600 .72rem var(--plexmono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan, #19d3f0); }
.pgo { margin-top: 8px; font-weight: 600; color: var(--cyan, #19d3f0); }
.pnote { margin: 14px 0 0; font-size: .85rem; color: var(--muted, #a9bbd6); }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; } .play-sec { padding: 40px 16px 0; } }

/* Learning Games section */
.play-sec .ghead { display: flex; align-items: center; gap: 16px; max-width: 820px; margin: 0 auto 16px; }
.play-sec .ghead h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.play-sec .ghead p { margin: 4px 0 0; color: var(--muted, #a9bbd6); }
.gico { width: 58px; flex: 0 0 auto; color: var(--cyan, #19d3f0); }
.play-sec .pgrid { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.gcard { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; border-radius: 18px; background: var(--panel, #0a1c3a); border: 2px solid rgba(25,211,240,.6); color: var(--text, #eaf2ff); text-decoration: none; transition: box-shadow .15s, transform .12s; }
.gcard:hover, .gcard:focus-visible { box-shadow: 0 0 20px rgba(25,211,240,.3); outline: none; }
.gcard:active { transform: scale(.99); }
.gcard img { width: 100%; height: 100%; min-height: 120px; max-height: 190px; object-fit: cover; border-radius: 12px; display: block; }
.gtxt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 8px 4px 0; }
.gtxt h3 { margin: 0; font-size: 1.5rem; }
.gtxt p { margin: 0 0 6px; color: var(--muted, #a9bbd6); font-size: .95rem; line-height: 1.45; }
.gplay { display: inline-block; padding: 8px 22px; border-radius: 999px; background: var(--cyan, #19d3f0); color: #04101d; font-weight: 700; }
.gpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 820px; margin: 22px auto 6px; text-align: center; }
.gpoints > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; }
.gpoints > div + div { border-left: 1px solid rgba(25,211,240,.35); }
.gpoints svg { width: 40px; height: 40px; color: var(--cyan, #19d3f0); }
.gpoints b { color: var(--cyan, #19d3f0); }
.gpoints span { color: var(--text, #eaf2ff); font-size: .92rem; line-height: 1.35; }
.play-sec .pnote { max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .gcard img { height: auto; min-height: 0; max-height: none; aspect-ratio: 7 / 5; } .gcard { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; } .gtxt h3 { font-size: 1.25rem; } .gtxt p { font-size: .86rem; } .gico { width: 46px; } .gpoints { gap: 0; } .gpoints > div { padding: 4px 6px; } .gpoints span { font-size: .82rem; } }
#home-video { background: #04101d url("../assets/video-poster-v2.jpg") center / contain no-repeat; }

/* Combined Disclaimer & Privacy window */
#dlg-body h4 { margin: 18px 0 6px; font-size: 1.05rem; color: var(--cyan, #19d3f0); }
#dlg-body h4:first-child { margin-top: 0; }

/* Computer view: three tall cards side by side, picture on top. Phone keeps the stacked layout above. */
@media (min-width: 900px) {
  .play-sec .ghead, .play-sec .pgrid, .play-sec .gpoints, .play-sec .pnote { max-width: 1120px; }
  .play-sec .ghead { justify-content: center; text-align: center; margin-bottom: 22px; }
  .play-sec .ghead > div { text-align: left; }
  .play-sec .pgrid { flex-direction: row; gap: 22px; align-items: stretch; }
  .gcard { flex: 1 1 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 0; overflow: hidden; }
  .gcard img { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; border-radius: 0; }
  .gtxt { padding: 16px 20px 20px; gap: 6px; flex: 1; }
  .gtxt h3 { font-size: 1.6rem; }
  .gtxt p { flex: 1; font-size: 1rem; }
  .gplay { margin-top: 6px; }
  .gpoints { margin-top: 30px; }
}
