  :root{--bg:#f7f7fb;--panel:#ffffff;--panel2:#f3f3f8;--line:#ebeaf3;--field:#e2e0ef;--soft:#f6f4ff;--text:#14142b;--muted:#6b6b85;--accent:#6d4aff;--accent2:#9b7bff;--ok:#12a150;--radius:18px}
  *{box-sizing:border-box}
  body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,sans-serif;background:#fff;color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased}
  body>header{max-width:none;padding:14px max(28px,calc(50% - 592px));border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40;background:rgba(255,255,255,.86);backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px)}
  a{color:inherit;text-decoration:none}
  header{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;max-width:1240px;margin:auto;gap:16px}
  .logo{display:flex;align-items:center;gap:9px;font-weight:750;font-size:21px;letter-spacing:-.6px;white-space:nowrap}
  .logo .mark{width:34px;height:34px;flex:none;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
  .logo:hover .mark{transform:rotate(180deg)}
  .logo b{color:var(--accent)}
  .hsearch{flex:0 1 300px;position:relative}
  .hsearch input,.search input{width:100%;padding:11px 16px;border-radius:999px;border:1px solid var(--field);background:#fff;color:var(--text);font-size:15px;outline:none;transition:border-color .15s,box-shadow .15s}
  .hsearch input:focus,.search input:focus,textarea:focus,input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(109,74,255,.12);outline:none}
  ::placeholder{color:#9a9ab0}
  main{max-width:1240px;margin:auto;padding:0 28px 60px}
  .hero{text-align:center;padding:56px 24px 40px;margin-top:22px;background:var(--soft);border-radius:28px}
  .hero h1{font-size:clamp(34px,5.4vw,64px);margin:0 0 14px;letter-spacing:-.035em;line-height:1.04;font-weight:750}
  .hero h1 em{font-style:normal;color:var(--accent)}
  .hero p{color:var(--muted);font-size:18px;margin:0 auto 22px;max-width:600px}
  .search{max-width:520px;margin:auto;position:relative}
  .search input{padding:16px 22px;font-size:16px;box-shadow:0 1px 2px rgba(20,20,43,.04),0 8px 24px -12px rgba(76,52,200,.25)}
  .chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:22px 0 6px}
  .chip{background:#fff;border:1px solid var(--line);padding:8px 15px;border-radius:999px;font-size:14px;font-weight:500;color:#4a4a63;transition:.15s}
  .chip:hover{color:#fff;background:var(--accent);border-color:var(--accent)}
  .cat{margin-top:48px}
  .cat-h{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}
  .cat-h h2{margin:0;font-size:24px;letter-spacing:-.02em;font-weight:700}
  .cat-h .n{color:var(--muted);font-size:14px}
  .cat-h a.all{margin-left:auto;color:var(--accent);font-size:14px;font-weight:500}
  .cat-h a.all:hover{text-decoration:underline}
  .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
  .card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;gap:12px;align-items:flex-start;transition:transform .2s,box-shadow .2s,border-color .2s}
  .card:hover{transform:translateY(-2px);border-color:#d9d0ff;box-shadow:0 12px 30px -14px rgba(76,52,200,.28)}
  .card .ic{width:42px;height:42px;flex:none;border-radius:12px;background:var(--soft);color:var(--accent);display:grid;place-items:center;transition:background .2s,color .2s}
  .card:hover .ic{background:var(--accent);color:#fff}
  .ico{width:22px;height:22px;display:block;flex:none}
  .ico .f{fill:currentColor;stroke:none}
  .chip .ico{width:16px;height:16px;display:inline-block;vertical-align:-3px;margin-inline-end:6px;color:var(--accent)}
  .chip:hover .ico{color:#fff}
  .cat-h h2{display:flex;align-items:center;gap:10px}
  .cat-h h2 .ico{width:26px;height:26px;color:var(--accent)}
  .tico{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:15px;background:var(--soft);color:var(--accent);vertical-align:middle;margin-inline-end:14px}
  .tico .ico{width:28px;height:28px}
  .hero .tico{width:60px;height:60px;background:#fff;box-shadow:0 6px 18px -8px rgba(76,52,200,.35)}
  .dd a{display:flex!important;align-items:center;gap:10px}
  .dd .ico{width:18px;height:18px;color:var(--accent)}
  .card .ic{line-height:1}
  .card h3{margin:2px 0 4px;font-size:15px;font-weight:650;letter-spacing:-.01em}
  .card p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.4}
  .empty{text-align:center;color:var(--muted);padding:40px}
  .crumb{color:var(--muted);font-size:14px;margin:22px 0 14px}
  .crumb a:hover{color:var(--text)}
  .tool{background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px;animation:fade .25s;box-shadow:0 1px 2px rgba(20,20,43,.04),0 20px 50px -30px rgba(20,20,43,.18)}
  @keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1}}
  .tool h1{margin:0 0 4px;font-size:32px;letter-spacing:-.03em;font-weight:750}
  .tool .sub{color:var(--muted);margin:0 0 22px}
  .row{display:flex;gap:40px;flex-wrap:wrap;align-items:flex-start}
  .col{flex:1;min-width:260px}.col.wide{flex:1.4}
  textarea,input[type=number],input[type=text],input[type=date],select{width:100%;background:#fff;color:var(--text);border:1px solid var(--field);border-radius:12px;padding:11px;font-size:15px;font-family:inherit}
  input[type=file]{color:var(--muted);font-size:13px}
  /* list fields: one entry per line on its own striped row, larger and darker type */
  textarea{min-height:258px;resize:vertical;font-size:16.5px;font-weight:500;color:var(--text);line-height:34px;padding:8px 16px;
    border:1.5px solid #dcd8ee;background-color:#fff;background-image:repeating-linear-gradient(#fff 0 34px,#f6f4ff 34px 68px);
    background-attachment:local;background-position:0 8px;box-shadow:inset 0 1px 2px rgba(20,20,43,.04)}
  textarea.short{min-height:122px}
  label{font-size:14px;font-weight:600;color:#3a3a55;display:block;margin:0 0 8px}
  label.ck{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text);margin-top:22px;cursor:pointer}
  input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}
  .mt{margin-top:14px}
  .btn{background:var(--accent);border:0;color:#fff;font-weight:600;font-size:17px;padding:14px 28px;border-radius:999px;cursor:pointer;box-shadow:0 1px 2px rgba(20,20,43,.1),0 10px 24px -10px rgba(109,74,255,.7);transition:transform .15s,background .15s;font-family:inherit}
  .btn:hover{background:#5a37f0;transform:translateY(-1px)}.btn:active{transform:scale(.97)}
  .btn.ghost{background:var(--panel2);color:var(--text);box-shadow:none;font-size:14px;padding:10px 16px;font-weight:500;border:1px solid var(--line)}
  .btn.ghost:hover{background:#ebeaf3}
  .btn.big{font-size:22px;padding:18px 36px}
  .btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
  .result{font-size:clamp(26px,4.5vw,50px);font-weight:800;text-align:center;min-height:76px;display:flex;align-items:center;justify-content:center;margin:16px 0;word-break:break-word;flex-wrap:wrap;gap:10px}
  .center{text-align:center}
  .inline{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}
  .inline>div{flex:1;min-width:110px}
  .narrow{max-width:620px;margin-left:auto;margin-right:auto}
  .history{color:var(--muted);font-size:13px;text-align:center;margin-top:8px}
  .wheel-wrap{position:relative;width:min(470px,92vw,100%);margin:auto;padding-right:30px}
  .wheel-wrap canvas{width:100%;height:auto;display:block}
  .pointer{position:absolute;right:6px;top:50%;transform:translateY(-50%);border-top:18px solid transparent;border-bottom:18px solid transparent;border-right:34px solid var(--text);filter:drop-shadow(0 3px 6px rgba(20,20,43,.3))}
  .wrap3d{perspective:800px}
  .coin{width:170px;height:170px;margin:20px auto;position:relative;transform-style:preserve-3d;transition:transform 1.6s cubic-bezier(.2,.7,.2,1)}
  .coin div{position:absolute;inset:0;border-radius:50%;display:grid;place-items:center;font-size:30px;font-weight:800;backface-visibility:hidden;box-shadow:inset 0 0 0 8px #0002}
  .coin .h{background:radial-gradient(circle at 30% 30%,#ffe58a,#e0a92a);color:#7a5200}
  .coin .t{background:radial-gradient(circle at 30% 30%,#e6e8ff,#9da3c9);color:#3a3f6b;transform:rotateY(180deg)}
  .dice{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin:20px 0}
  .die-face{width:86px;height:86px;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:18px;display:grid;place-items:center;font-size:40px;font-weight:800;box-shadow:0 12px 24px -10px rgba(20,20,43,.3);animation:roll .6s}
  @keyframes roll{0%{transform:rotate(0) scale(.6)}60%{transform:rotate(300deg) scale(1.1)}100%{transform:rotate(360deg) scale(1)}}
  .boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
  .box{background:var(--bg);border-radius:14px;padding:14px;border-top:4px solid var(--accent);animation:pop .4s}
  .box h4{margin:0 0 8px;display:flex;justify-content:space-between}
  .box h4 small{color:var(--muted);font-weight:500}
  .box ul,.box ol{margin:0;padding-left:20px;color:#2c2c48}
  .out{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:14px 14px 14px 38px;min-height:120px;margin:0;line-height:1.7}
  .out.plain{padding-left:14px}
  .tag{display:inline-block;background:var(--soft);border:1px solid #e4defe;color:var(--text);border-radius:12px;padding:8px 14px;font-size:clamp(18px,2.6vw,28px);animation:pop .4s}
  .gen-list{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:18px 0}
  .gen-list .tag{font-size:clamp(16px,2.2vw,24px);font-weight:700}
  .swatch{display:inline-flex;flex-direction:column;align-items:center;gap:6px;font-size:14px;font-weight:600}
  .swatch i{width:110px;height:80px;border-radius:12px;display:block;box-shadow:0 8px 18px -8px rgba(20,20,43,.35)}
  table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
  td,th{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:15px}
  th{color:var(--muted);font-weight:600;font-size:13px}
  .seats{display:grid;gap:10px;margin-top:14px}
  .seat{background:var(--panel2);border-radius:10px;padding:12px 6px;text-align:center;font-weight:600;font-size:14px;animation:pop .4s;min-height:44px}
  .seat.empty{opacity:.3}
  .board{background:#2d6a4f;color:#fff;text-align:center;border-radius:10px;padding:8px;font-weight:700;letter-spacing:2px}
  .timer{font-size:clamp(70px,16vw,170px);font-weight:800;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:-3px;margin:10px 0}
  .bar{height:10px;background:var(--bg);border-radius:99px;overflow:hidden;margin-bottom:20px}
  .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:width .3s linear}
  .prompt-card{background:var(--soft);border:1px solid #e4defe;color:var(--text);border-radius:20px;padding:34px;font-size:clamp(20px,3vw,30px);font-weight:700;text-align:center;min-height:150px;display:flex;align-items:center;justify-content:center;margin:20px auto;max-width:720px;line-height:1.35}
  .prompt-card small{display:block;font-size:14px;color:var(--muted);margin-bottom:10px;letter-spacing:2px;text-transform:uppercase}
  .bingo{display:grid;grid-template-columns:40px repeat(15,1fr);gap:4px;margin-top:20px}
  .bingo b{display:grid;place-items:center;font-size:18px;color:var(--accent)}
  .bingo span{background:var(--bg);border-radius:6px;padding:6px 0;text-align:center;font-size:13px;color:#9a9ab0}
  .bingo span.on{background:var(--accent);color:#fff;font-weight:700}
  .ball{width:140px;height:140px;border-radius:50%;margin:10px auto;display:grid;place-items:center;font-size:44px;font-weight:800;background:radial-gradient(circle at 35% 30%,#fff,#d9d0ff 35%,#9b7bff 75%,var(--accent));color:#fff;box-shadow:0 14px 30px -10px rgba(109,74,255,.6);text-shadow:0 1px 4px rgba(0,0,0,.2)}
  .pcard{width:64px;height:90px;background:#fff;border-radius:8px;display:inline-flex;flex-direction:column;justify-content:space-between;padding:5px 7px;font-weight:800;font-size:16px;border:1px solid var(--line);box-shadow:0 8px 18px -8px rgba(20,20,43,.35);animation:pop .4s}
  .pcard .m{font-size:28px;text-align:center}
  .pcard.big{width:130px;height:180px;font-size:26px;padding:12px}.pcard.big .m{font-size:64px}
  .cards{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:16px 0}
  .rps{display:flex;gap:14px;justify-content:center;margin:18px 0}
  .rps button{font-size:54px;background:var(--panel2);border:2px solid var(--line);border-radius:20px;width:110px;height:110px;cursor:pointer;transition:.15s}
  .rps button:hover{border-color:var(--accent);transform:scale(1.06)}
  .score{display:flex;justify-content:center;gap:30px;color:var(--muted);font-size:15px}
  .score b{color:var(--text);font-size:22px;display:block;text-align:center}
  .bracket{display:flex;gap:22px;overflow-x:auto;padding:10px 2px 20px}
  .round{display:flex;flex-direction:column;justify-content:space-around;min-width:170px;gap:12px}
  .round h5{margin:0 0 4px;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px;text-align:center}
  .match{background:var(--bg);border-radius:10px;overflow:hidden;border:1px solid var(--line)}
  .match div{padding:8px 10px;font-size:14px;cursor:pointer;min-height:36px}
  .match div+div{border-top:1px solid var(--line)}
  .match div:hover{background:var(--panel2)}
  .match div.win{background:#12a1501a;color:var(--ok);font-weight:700}
  .match div.tbd{color:#9a9ab0;cursor:default}
  .reveal{filter:blur(7px);cursor:pointer;user-select:none;transition:.2s}
  .note{color:var(--muted);font-size:13px;margin-top:8px}
  .related{margin-top:40px}
  footer{text-align:center;color:var(--muted);font-size:13px;padding:36px 30px;margin-top:40px;border-top:1px solid var(--line);background:#fafafd}
  .pop{animation:pop .45s}
  @keyframes pop{0%{transform:scale(.7);opacity:0}100%{transform:scale(1);opacity:1}}
  @media(max-width:700px){.hsearch{display:none}main{padding:0 16px 40px}.tool{padding:18px}.bingo{grid-template-columns:24px repeat(15,1fr);gap:2px}.bingo span{font-size:9px}}
  /* multi-page additions */
  .dd{position:absolute;top:48px;left:0;right:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:6px;z-index:50;box-shadow:0 16px 40px -12px rgba(20,20,43,.25)}
  .dd a{display:block;padding:9px 12px;border-radius:10px;font-size:14px}
  .dd a:hover{background:var(--panel2)}
  .seo{margin-top:34px;display:grid;grid-template-columns:1fr 1fr;gap:18px}
  .seo>div{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px}
  .seo h2{font-size:20px;margin:0 0 10px}
  .seo p,.seo li,.seo details div{color:#4a4a63;line-height:1.65;font-size:15px}
  .seo ol{padding-left:20px;margin:0}
  details{border-bottom:1px solid var(--line);padding:10px 0}
  details:last-child{border:0}
  summary{cursor:pointer;font-weight:600}
  .fnav{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;margin-bottom:12px}
  .fnav a:hover{color:var(--text)}
  @media(max-width:800px){.seo{grid-template-columns:1fr}}
  /* language switcher + RTL */
  .langsel{width:auto;background:#fff;color:var(--text);border:1px solid var(--field);border-radius:999px;padding:9px 12px;font-size:14px;cursor:pointer}
  .wheel-wrap{direction:ltr}
  [dir=rtl] .cat-h a.all{margin-left:0;margin-right:auto}
  [dir=rtl] .out{padding:14px 38px 14px 14px}
  [dir=rtl] .out.plain{padding:14px}
  [dir=rtl] .box ul,[dir=rtl] .box ol,[dir=rtl] .seo ol{padding-left:0;padding-right:20px}
  [dir=rtl] td,[dir=rtl] th{text-align:right}
  @media(max-width:700px){header{flex-wrap:wrap}}
  /* info pages: privacy / about / contact */
  .legal{background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(24px,5vw,56px);max-width:820px;margin:0 auto;box-shadow:0 1px 2px rgba(20,20,43,.04),0 20px 50px -30px rgba(20,20,43,.18)}
  .legal h1{font-size:clamp(30px,4vw,40px);letter-spacing:-.03em;margin:0 0 6px}
  .legal .updated{color:var(--muted);font-size:14px;margin:0 0 26px}
  .legal h2{font-size:21px;letter-spacing:-.015em;margin:34px 0 10px}
  .legal p,.legal li{color:#33334d;font-size:16.5px;line-height:1.75}
  .legal ul{padding-inline-start:22px}.legal li{margin:6px 0}
  .legal a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
  .legal code{background:var(--soft);border-radius:6px;padding:2px 6px;font-size:.9em}
  .legal .mail{margin:18px 0 8px}
  .legal .mail a{color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px}
  .legal-links{font-size:12.5px;opacity:.9}
  /* long-form tool guides (i18n/tools/<lang>.json) */
  .guide{margin-top:34px}
  .guide .legal{max-width:860px}
  .guide .legal>h2:first-child{margin-top:0;font-size:clamp(22px,3vw,26px)}
  .guide .legal ol{padding-inline-start:22px}.guide .legal ol li{margin:8px 0;padding-inline-start:4px}
  .guide .legal ol li::marker{color:var(--accent);font-weight:700}
  .guide .faq details div{color:#33334d;font-size:16px;line-height:1.7;padding-top:6px}
  .guide .faq summary{font-size:16.5px}
