/* Scissor Games: the promo site and the pages around each game. Same layout as the other Scissor
   sites, with green as this app's accent colour (buttons, links, the logo mark). */
:root {
  --bg: #ffffff; --bg-alt: #f5f5f7; --surface: #ffffff; --fill: #e8e8ed;
  --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b; --line: #d2d2d7; --hair: rgba(0, 0, 0, .08);
  --accent: #0b7a4b; --accent-hover: #09643d; --link: #0a6e44; --accent-soft: rgba(11, 122, 75, .12);
  --lift: 0 0 0 .5px rgba(0, 0, 0, .1), 0 18px 40px rgba(0, 0, 0, .18);
  --nav: rgba(255, 255, 255, .8); --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-alt: #101012; --surface: #1c1c1e; --fill: #2c2c2e;
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b; --line: #424245; --hair: rgba(255, 255, 255, .12);
    --accent: #2fb67a; --accent-hover: #4ccb91; --link: #4ccb91; --accent-soft: rgba(47, 182, 122, .18);
    --lift: 0 0 0 .5px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .6);
    --nav: rgba(0, 0, 0, .72);
  }
}
/* Script fonts, the same ones as the other Scissor sites, all under the SIL Open Font License and
   served from this site. Latin keeps the system font; each script gets a typeface drawn for it, and
   unicode-range means a file downloads only when a page shows that script. */
@font-face { font-family: 'Vazirmatn'; src: url(/fonts/vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-700.woff2) format('woff2'); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Heebo'; src: url(/fonts/heebo.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Noto Sans Devanagari'; src: url(/fonts/noto-sans-devanagari.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Noto Sans Bengali'; src: url(/fonts/noto-sans-bengali.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Noto Sans Thai'; src: url(/fonts/noto-sans-thai.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
:root { --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif; }
:root:lang(fa), :root:lang(ckb), :root:lang(ur) { --font: 'Vazirmatn', var(--system); }
:root:lang(ar) { --font: 'IBM Plex Sans Arabic', var(--system); }
:root:lang(he) { --font: 'Heebo', var(--system); }
:root:lang(hi), :root:lang(mr) { --font: 'Noto Sans Devanagari', var(--system); }
:root:lang(bn) { --font: 'Noto Sans Bengali', var(--system); }
:root:lang(th) { --font: 'Noto Sans Thai', var(--system); }
:root:lang(ja) { --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo UI', 'Noto Sans JP', sans-serif; }
:root:lang(ko) { --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:root:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
:root:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; }
/* Language names are shown in the system font, so listing them does not download every script font. */
.langs a, .lang-menu a { font-family: var(--system); }
/* Joined and stacked scripts are never tracked, and their tall marks need more line height. */
[dir="rtl"] *, :lang(hi) *, :lang(mr) *, :lang(bn) *, :lang(th) * { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, :lang(hi) h1, :lang(hi) h2, :lang(mr) h1, :lang(mr) h2, :lang(bn) h1, :lang(bn) h2, :lang(th) h1, :lang(th) h2 { line-height: 1.32; }
:lang(he) h1, :lang(he) h2 { line-height: 1.15; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; margin: 0; font-weight: 600; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: 17px; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 0; }
/* The brand opens the Scissor family: on hover, or on the caret for touch and keyboard. */
.brand-switch { position: relative; display: flex; align-items: center; gap: 2px; flex: none; }
.brand-caret { border: 0; background: none; color: var(--text-2); padding: 6px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.brand-caret:hover, .brand-switch.open .brand-caret { background: var(--fill); }
.brand-caret:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.product-pop { position: absolute; top: calc(100% + 6px); inset-inline-start: -8px; z-index: 60; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: var(--lift); display: none; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 24px); }
.product-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.brand-switch:hover .product-pop, .brand-switch:focus-within .product-pop, .brand-switch.open .product-pop { display: grid; }
.product-pop a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.product-pop a:hover { background: var(--fill); text-decoration: none; }
.product-pop a[aria-current] { background: var(--accent-soft); }
.product-pop img { flex: none; border-radius: 0; }
.product-pop span { display: grid; line-height: 1.25; min-width: 0; }
.product-pop b { font-size: 14px; font-weight: 600; }
.product-pop small { font-size: 12px; color: var(--text-2); overflow-wrap: break-word; }
@media (max-width: 520px) { .product-pop { grid-template-columns: 1fr; min-width: 240px; max-height: calc(100vh - 70px); overflow: auto; } }
.nav nav { margin-inline-start: auto; display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.lang-menu summary { white-space: nowrap; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.play { color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 500; }
.nav nav a.play:hover { background: var(--accent-hover); }
/* The language menu, as on the other Scissor sites. */
.lang-menu { position: relative; font-size: 13px; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text-2); padding: 6px 2px; border-radius: 6px; user-select: none; -webkit-user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu .caret { opacity: .7; transition: transform .2s; }
.lang-menu[open] .caret { transform: rotate(180deg); }
.lang-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: -8px; z-index: 60; width: 300px; max-height: min(70vh, 520px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--lift); animation: pop-in .16s cubic-bezier(.2, .8, .2, 1); }
.nav nav .lang-pop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.nav nav .lang-pop a:hover { background: var(--fill); }
.nav nav .lang-pop a[aria-current] { background: var(--accent); color: #fff; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .lang-pop { animation: none; } .lang-menu .caret { transition: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 17px; font-weight: 500; background: var(--fill); color: var(--text); border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(11, 122, 75, .32); }
.btn.primary:hover { background: var(--accent-hover); filter: none; }

/* Hero */
.hero { text-align: center; padding: 76px 0 30px; }
.hero h1 { font-size: clamp(42px, 8vw, 72px); }
.hero h1 span { color: var(--text-3); display: block; }
.hero .lead { font-size: clamp(19px, 2.6vw, 24px); color: var(--text-2); max-width: 720px; margin: 22px auto 0; line-height: 1.38; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .ticks { color: var(--text-2); font-size: 14px; margin-top: 18px; }
.hero .ticks::before { content: "✓ "; color: var(--accent); }
.shot { margin: 46px auto 0; max-width: 960px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--lift); background: #063a30; display: block; }
.shot img { width: 100%; height: auto; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.head h2 { font-size: clamp(32px, 5vw, 48px); }
.head h2 span { color: var(--text-3); }
.head p { color: var(--text-2); font-size: 19px; max-width: 640px; margin: 14px 0 0; }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 40px; }
.game { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 .5px var(--hair), 0 2px 8px rgba(0, 0, 0, .06); color: var(--text); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.game:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--lift); }
.game img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #063a30; }
.game .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game h3 { font-size: 22px; }
.game p { margin: 0; color: var(--text-2); font-size: 15px; }
.game .meta { font-size: 13px; color: var(--text-3); margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.game .meta b { color: var(--accent); font-weight: 600; font-size: 15px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 34px; margin-top: 44px; }
.features h3 { font-size: 20px; margin-bottom: 8px; }
.features p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Questions */
.faq { max-width: 780px; margin-top: 30px; }
.faq details { border-bottom: .5px solid var(--line); padding: 18px 0; }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; margin: 0; letter-spacing: 0; line-height: 1.3; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 10px 0 0; }

/* Article pages (rules, privacy, licenses) */
.article { max-width: 760px; margin: 0 auto; padding: 64px 22px 84px; }
.article h1 { font-size: clamp(34px, 6vw, 52px); }
.article .lead { font-size: 21px; color: var(--text-2); margin: 18px 0 0; line-height: 1.4; }
.article h2 { font-size: 28px; margin: 48px 0 12px; }
.article h3 { font-size: 20px; margin: 28px 0 8px; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-inline-start: 22px; }
.article li { margin: 7px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--bg-alt); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--text-2); margin: 0; }
.more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.more a { background: var(--accent-soft); color: var(--link); padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; }

/* Footer */
footer { background: var(--bg-alt); border-top: .5px solid var(--hair); padding: 48px 0 40px; font-size: 13px; color: var(--text-2); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; }
footer h2 { font-size: 13px; color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 7px 0; }
footer a { color: var(--text-2); }
footer .legal { margin-top: 34px; padding-top: 18px; border-top: .5px solid var(--line); color: var(--text-3); }

/* Between phone and desktop the three text links give way before anything wraps. */
@media (max-width: 900px) { .nav nav > a:not(.play) { display: none; } }
@media (max-width: 640px) {
  .nav nav > a:not(.play) { display: none; }
  .nav nav { gap: 14px; }
  .lang-menu summary span, .lang-menu .caret { display: none; }
  .lang-menu summary { padding: 8px; }
  .lang-pop { position: fixed; top: 58px; inset-inline: 12px; width: auto; }
  .hero { padding-top: 48px; }
  section { padding: 60px 0; }
}

.article .updated { color: var(--text-3); font-size: 14px; margin-top: 28px; }

/* Stars under each game, and the Feedback page: stars and a message form. */
.rate { margin: 44px 0 0; padding: 26px 22px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.rate h2, .rate h3 { margin: 0 0 4px; font-size: 21px; }
.rate-hint { margin: 0 0 8px; color: var(--text-2); font-size: 14px; }
.stars { display: inline-flex; }
.stars button { font: inherit; font-size: 34px; line-height: 1; padding: 4px 6px; background: none; border: 0; border-radius: 8px; color: var(--line); cursor: pointer; transition: transform .15s, color .15s; }
.stars button.on { color: #f5a300; }
/* Under the pointer the stars fill up to the one pointed at, so it is plain how many are being given. */
.stars:hover button { color: #f5a300; }
.stars button:hover ~ button { color: var(--line); }
.stars button:hover { transform: scale(1.12); }
.stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.care-form { display: grid; gap: 14px; margin: 14px auto 0; max-width: 520px; text-align: start; }
.care-form[hidden] { display: none; }
.care-form label { display: grid; gap: 6px; }
.care-form label span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.care-form textarea, .care-form input, .care-form select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.care-form textarea { resize: vertical; line-height: 1.45; }
.care-form textarea:focus-visible, .care-form input:focus-visible, .care-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.care-form .btn { justify-self: start; box-shadow: none; }
.rate-form .btn { justify-self: center; padding: 9px 20px; font-size: 15px; }
.care-status { margin: 12px 0 0; font-size: 15px; }
.care-status:empty { display: none; }
.care-status.ok { color: var(--link); font-weight: 600; }
.care-status.err { color: #c9342b; }
.rate-more { margin: 12px 0 0; text-align: center; font-size: 15px; }
.feedback .message { margin-top: 8px; }
.feedback .message .care-form { margin-inline: 0; max-width: none; }
.care-note { margin-top: 28px; color: var(--text-3); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .stars button { transition: none; } .stars button:hover { transform: none; } }

/* The cookie choice: a card floating over the bottom of the page, in the site's own look. */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 250; display: flex; align-items: center; gap: 20px; max-width: 720px; margin: 0 auto; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--lift); font: 15px/1.4 var(--font); animation: cookie-in .25s ease-out; }
.cookie-banner[hidden] { display: none; }
.cookie-banner:focus { outline: none; }
.cookie-banner :focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cookie-copy { flex: 1; min-width: 0; }
.cookie-copy h2 { margin: 0 0 2px; font: 600 15px/1.3 var(--font); letter-spacing: 0; }
.cookie-copy p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.cookie-copy a { color: var(--link); }
.cookie-actions { display: flex; flex: none; gap: 8px; }
.cookie-actions .btn { min-width: 96px; min-height: 44px; justify-content: center; padding: 10px 18px; font-size: 15px; box-shadow: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .cookie-actions .btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* The languages the site comes in, at the foot of every page. */
footer .langs { margin-top: 30px; }
footer .langs h2 { margin-bottom: 8px; }
footer .langs ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .langs a[aria-current] { color: var(--text); font-weight: 600; }
