/* NOOO.SI — Pop Art × Neo-Brutalism × Kinetic Type. Mobile first. */
:root {
  --ink: #111111;
  --paper: #FFF6E5;
  --red: #FF3B30;
  --red-text: #D6291F; /* white-on-red text, 4.5:1+ */
  --yellow: #FFE14D;
  --cyan: #2CD5F5;
  --pink: #FF7AB8;
  --lime: #B8F23A;
  --orange: #FF9F1C;
  --violet: #8B5CF6;
  --space: #140F33;
  --white: #FFFFFF;
  --b: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 16px;
  --display: 'Bungee', 'Lalezar', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
:lang(ar) { --display: 'Lalezar', 'Bungee', 'Rubik', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 16px; }
.center { display: flex; justify-content: center; margin-top: 22px; }
.empty { padding: 20px; border: var(--b); border-radius: var(--radius); background: #fff; text-align: center; font-weight: 600; }
.fineprint { font-size: 14px; opacity: .85; margin-top: 18px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--ink); color: #fff; border-bottom: var(--b);
}
.logo { font-family: 'Bungee', sans-serif; font-size: 24px; text-decoration: none; letter-spacing: .02em; color: var(--yellow); white-space: nowrap; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: #ffffff22; }
.controls { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 3px solid #fff; background: transparent; cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.dialog .icon-btn { border-color: var(--ink); }
.volume { width: 76px; accent-color: var(--yellow); }
.lang-btn { height: 40px; padding: 0 12px; border-radius: 12px; border: 3px solid var(--yellow); background: var(--yellow); color: var(--ink); font-weight: 800; cursor: pointer; font-family: var(--body); }
@media (max-width: 720px) { .nav { display: none; } .volume { width: 64px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border: var(--b); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .08s; color: var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-sm { min-height: 44px; padding: 4px 12px; font-size: 14px; border-width: 3px; }
.btn-big { font-size: 20px; padding: 12px 26px; }
.btn-pop { background: var(--red-text); color: #fff; }
.band-violet .btn-ghost, .band-ink .btn-ghost { color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; }
.input, select {
  color: var(--ink);
  min-height: 44px; padding: 8px 12px; border: var(--b); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); max-width: 100%;
}
.input-big { font-size: 26px; font-weight: 800; width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px 56px; text-align: center; overflow: hidden; border-bottom: var(--b);
  background:
    radial-gradient(circle at 20% 20%, #ffffff55 0 2px, transparent 3px) 0 0 / 22px 22px,
    repeating-conic-gradient(from 0deg at 50% 55%, var(--red) 0 10deg, #FF5A4E 10deg 20deg);
}
.hero-kicker { display: inline-block; margin: 0 0 8px; padding: 6px 14px; background: var(--ink); color: var(--yellow); border-radius: 999px; font-weight: 800; font-size: 15px; }
.hero-title { margin: 8px 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 76px); line-height: 1.1; color: #fff; text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.hero-stage { position: relative; padding: 12px; }
.nooo-btn {
  position: relative; font-family: 'Bungee', sans-serif; font-size: clamp(64px, 17vw, 190px); line-height: 1; letter-spacing: .02em;
  padding: .18em .38em .24em; border: 7px solid var(--ink); border-radius: 36px; background: var(--yellow); color: var(--red);
  box-shadow: 12px 12px 0 var(--ink); cursor: pointer; direction: ltr; user-select: none; -webkit-tap-highlight-color: transparent;
  text-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.nooo-btn:hover { transform: translate(-3px, -3px) rotate(-1.5deg); box-shadow: 15px 15px 0 var(--ink); }
.nooo-btn:active { transform: translate(8px, 8px); box-shadow: 4px 4px 0 var(--ink); }
.nooo-btn .l { display: inline-block; }
.hero-says { min-height: 1.4em; margin: 22px 0 0; font-family: var(--display); font-size: clamp(26px, 5vw, 48px); color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.hero-says.pop { animation: pop .35s ease-out; }
.hero-count { margin: 4px 0 0; color: #fff; font-weight: 800; text-shadow: 2px 2px 0 var(--ink); }
.hero-hint { margin: 14px auto 0; max-width: 520px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.hero-sub { margin: 18px 0 0; font-family: 'Bungee', sans-serif; color: var(--yellow); text-shadow: 2px 2px 0 var(--ink); font-size: 15px; }
@keyframes pop { 0% { transform: scale(.6) rotate(-6deg); } 70% { transform: scale(1.12) rotate(2deg); } 100% { transform: scale(1); } }

/* ---------- bands / sections ---------- */
.band { padding: 56px 0; border-bottom: var(--b); position: relative; }
.band-yellow { background: var(--yellow) radial-gradient(#0000001a 1.6px, transparent 2px) 0 0 / 18px 18px; }
.band-pink { background: var(--pink) radial-gradient(#ffffff40 2px, transparent 2.5px) 0 0 / 20px 20px; }
.band-cyan { background: var(--cyan) repeating-linear-gradient(45deg, #ffffff22 0 12px, transparent 12px 24px); }
.band-space { background: var(--space) radial-gradient(#ffffff55 1px, transparent 1.5px) 0 0 / 34px 34px; color: #fff; }
.band-lime { background: var(--lime) linear-gradient(#0000000d 2px, transparent 2px) 0 0 / 100% 28px; }
.band-orange { background: var(--orange) radial-gradient(#ffffff38 2px, transparent 2.5px) 0 0 / 22px 22px; }
.band-violet { background: var(--violet) radial-gradient(#ffffff2e 2px, transparent 2.5px) 0 0 / 22px 22px; color: #fff; }
.band-ink { background: var(--ink); color: #fff; }
.section-title {
  display: inline-block; margin: 0 0 10px; padding: 6px 18px 4px; font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 5vw, 48px); line-height: 1.2; background: #fff; color: var(--ink); border: var(--b); border-radius: 14px;
  box-shadow: var(--shadow); transform: rotate(-1deg);
}
.section-intro { max-width: 760px; font-size: 17px; font-weight: 600; margin: 12px 0 22px; }
.band-violet .section-intro, .band-space .section-intro { color: #fff; }
.live { display: inline-block; font-family: 'Bungee', sans-serif; font-size: .5em; vertical-align: middle; background: var(--red-text); color: #fff; padding: 2px 10px; border-radius: 8px; border: 3px solid var(--ink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .input { flex: 1 1 220px; }
.inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.count { font-weight: 800; }

/* ---------- feed / cards ---------- */
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 700; font-size: 15px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; }
.feed-meta .sep { opacity: .4; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); animation: blink 1.2s infinite; }
.feed-shared { margin: 18px 0; }
.feed-hero { margin: 18px 0 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-big { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .card-big { grid-template-columns: 1.1fr 1fr; } .card-big .card-art { border-bottom: 0; border-inline-end: var(--b); } }
.card-art { position: relative; border-bottom: var(--b); background: var(--yellow); }
.card-art svg { width: 100%; height: auto; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--red-text); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); font-size: 14px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.chip { align-self: flex-start; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.eyebrow { margin: 4px 0 0; font-size: 13px; font-weight: 800; text-transform: uppercase; opacity: .8; }
.card-headline { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 800; }
.card-big .card-headline { font-size: clamp(22px, 3vw, 30px); }
.card-reply { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.3; color: var(--red); -webkit-text-stroke: .4px var(--ink); }
.card-big .card-reply { font-size: clamp(26px, 3.4vw, 40px); }
.kicker { margin: 0; font-size: 14px; font-weight: 700; opacity: .85; }
.card-time { font-size: 13px; opacity: .8; font-weight: 600; }
.verified { margin: 0; font-size: 13px; font-weight: 700; color: #047857; }
.lang-word { margin: 0; font-size: 34px; font-weight: 800; }
.code { margin: 4px 0; padding: 10px 12px; background: var(--ink); color: var(--lime); border-radius: 10px; font-family: var(--mono); font-size: 14px; white-space: pre-wrap; word-break: break-word; text-align: left; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.archive { margin-top: 24px; }
.archive-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; font-weight: 800; }
.archive-controls label { display: inline-flex; gap: 8px; align-items: center; }

/* card effects (play once when they scroll into view, or on ✨) */
.fx-card-confetti { animation: cardPop .6s; background-image: radial-gradient(var(--pink) 3px, transparent 4px), radial-gradient(var(--cyan) 3px, transparent 4px); background-size: 26px 26px, 34px 34px; }
.fx-card-stamp::after { content: 'NO!'; position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Bungee', sans-serif; font-size: 90px; color: var(--red); opacity: 0; animation: stamp 1.2s; pointer-events: none; }
.card { position: relative; }
.fx-card-echo { animation: echo 1s; }
.fx-card-glitch .card-art { animation: glitch .5s steps(2) 2; }
.fx-card-rain .card-art { animation: cardPop .5s; }
.fx-card-zoom { animation: zoomIn .6s; }
@keyframes cardPop { 0% { transform: scale(.94) rotate(-1deg); } 60% { transform: scale(1.03) rotate(.6deg); } 100% { transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-20deg); } 40% { opacity: .9; transform: scale(1) rotate(-12deg); } 100% { opacity: 0; transform: scale(1) rotate(-12deg); } }
@keyframes echo { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 10px 10px 0 var(--red), 20px 20px 0 var(--ink); } 60% { box-shadow: 6px 6px 0 var(--cyan); } }
@keyframes glitch { 0% { transform: translate(0); filter: hue-rotate(0); } 50% { transform: translate(-6px, 2px); filter: hue-rotate(90deg); } 100% { transform: translate(5px, -2px); } }
@keyframes zoomIn { 0% { transform: scale(.85); } 100% { transform: scale(1); } }

/* scene animations (only when motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .scene.anim-shake .scene-char { animation: wig 1.6s ease-in-out infinite; transform-origin: 200px 160px; }
  .scene.anim-bounce .scene-char { animation: bob 1.2s ease-in-out infinite; }
  .scene.anim-wobble .scene-char { animation: wig 2.6s ease-in-out infinite; transform-origin: 200px 260px; }
  .scene.anim-pulse .scene-char { animation: pulse 1.8s ease-in-out infinite; transform-origin: 200px 160px; }
  .scene.anim-float .scene-char { animation: bob 3s ease-in-out infinite; }
  .scene.anim-tilt .scene-char { animation: tilt 3s ease-in-out infinite; transform-origin: 200px 270px; }
}
@keyframes wig { 0%, 100% { rotate: 0deg; } 25% { rotate: -3deg; } 75% { rotate: 3deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }
@keyframes tilt { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }

/* ---------- art of no ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { min-height: 44px; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.tab.active { background: var(--ink); color: var(--yellow); }
.art-panel { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.art-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.art-icon { border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; }
.art-card h3 { margin: 0 0 8px; font-size: 20px; }
.tones { display: flex; flex-wrap: wrap; gap: 6px; }
.tone { min-height: 44px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 14px; cursor: pointer; }
.tone.active { background: var(--red-text); color: #fff; }
.art-line { margin: 12px 0 0; padding: 12px 14px; border-inline-start: 6px solid var(--red); background: var(--paper); font-size: 19px; font-weight: 700; border-radius: 8px; }
@media (max-width: 480px) { .art-card { grid-template-columns: 1fr; } .art-icon { max-width: 160px; } }

/* ---------- world ---------- */
.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.lang-card { background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 14px; display: flex; flex-direction: column; }
.lang-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 800; }
.dir-badge { font-size: 11px; font-weight: 800; border: 2px solid var(--ink); border-radius: 6px; padding: 0 6px; }
.lang-no { margin: 6px 0 0; font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--red); -webkit-text-stroke: .5px var(--ink); }
.lang-translit { margin: 0; font-weight: 600; opacity: .8; }
.lang-note { margin: 6px 0 0; font-size: 13px; opacity: .85; }
.src { font-size: 13px; font-weight: 700; align-self: center; }

/* ---------- galactic ---------- */
.gal-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.gal-card { background: #241c5c; border: 4px solid #fff; border-radius: var(--radius); box-shadow: 6px 6px 0 var(--pink); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.gal-card.nooo-original { box-shadow: 6px 6px 0 var(--lime); }
.gal-art { border: 3px solid #fff; border-radius: 12px; overflow: hidden; }
.gal-card h3 { margin: 4px 0 0; }
.gal-no { margin: 0; font-family: 'Bungee', sans-serif; font-size: 28px; color: var(--yellow); }
.kind { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--pink); color: var(--ink); }
.kind.nooo-original { background: var(--lime); }
.band-space .src { color: #fff; }

/* ---------- machine ---------- */
.machine-input { display: grid; gap: 8px; background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 18px; font-weight: 800; }
.morse-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.morse-lamp { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--ink); background: #444; transition: background .05s, box-shadow .05s; }
.morse-lamp.on { background: var(--yellow); box-shadow: 0 0 20px var(--yellow); }
.enc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.enc { background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px; }
.enc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.enc h3 { margin: 0; font-size: 17px; }
.enc-note { margin: 0; font-size: 13px; opacity: .8; }
.enc-asciiart .code { font-size: 10px; line-height: 1.15; white-space: pre; overflow-x: auto; word-break: normal; }

/* ---------- memes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-btn { min-height: 44px; padding: 2px 12px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.chip-btn.active { background: var(--ink); color: var(--yellow); }
.meme-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); }
.meme-tile { padding: 0; border: var(--b); border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); text-align: start; transition: transform .1s; }
.meme-tile:hover { transform: rotate(-1.5deg) scale(1.02); }
.meme-cap { display: block; padding: 8px 10px; font-weight: 700; font-size: 14px; line-height: 1.35; border-top: 3px solid var(--ink); }
.maker { margin-top: 36px; background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.maker-title { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 30px; }
.maker-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.maker-layout > *, .maker-form label, .grid2 > * { min-width: 0; }
.maker-form select, .maker-form .input { width: 100%; }
@media (min-width: 860px) { .maker-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.maker-canvas { position: relative; border: var(--b); border-radius: 12px; overflow: hidden; container-type: inline-size; }
.cap { position: absolute; inset-inline: 0; margin: 0; padding: 0 12px; text-align: center; color: #fff; font-family: 'Bungee', 'Lalezar', sans-serif; font-size: clamp(16px, 5.4cqw, 34px); line-height: 1.15; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke; text-shadow: 3px 3px 0 var(--ink); pointer-events: none; }
.cap[dir='rtl'] { font-family: 'Lalezar', sans-serif; }
.cap-top { top: 10px; }
.cap-bottom { bottom: 12px; }
.maker-form { display: grid; gap: 10px; font-weight: 800; }
.maker-form label { display: grid; gap: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- sound ---------- */
.pads { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.pad { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: var(--b); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow); font-weight: 800; font-size: 16px; cursor: pointer; transition: transform .08s; }
.pad:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.pad.playing { background: var(--yellow); }
.pad-icon { font-size: 40px; }

/* ---------- games ---------- */
.games { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.game { background: #fff; border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.game h3 { margin: 0; font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 22px; }
.g-area { display: grid; gap: 10px; justify-items: center; min-height: 160px; align-content: center; }
.g-status { margin: 0; font-weight: 800; text-align: center; min-height: 1.5em; }
.g1-btn { font-family: 'Bungee', sans-serif; font-size: 26px; padding: 18px 26px; border: 5px solid var(--ink); border-radius: 50%; aspect-ratio: 1; background: var(--red); color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .3s; }
.g2-grid { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 4px; width: 100%; }
.g2-tile { min-height: 44px; min-width: 44px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); font-family: 'Bungee', sans-serif; font-size: 14px; cursor: pointer; direction: ltr; }
.g2-tile.wrong { background: #ddd; opacity: .5; }
.g3-pad { width: 100%; min-height: 150px; border: var(--b); border-radius: 16px; background: var(--cyan); font-family: 'Bungee', 'Lalezar', sans-serif; font-size: 26px; cursor: pointer; }
.g3-pad.wait { background: #94a3b8; }
.g3-pad.go { background: var(--red); color: #fff; }
.g4-target { margin: 0; font-size: 20px; font-weight: 800; padding: 8px 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; }
.g4-target.bad { background: #ffd6d6; }
.g4-input { width: 100%; min-height: 48px; padding: 8px 12px; border: var(--b); border-radius: 12px; font-size: 18px; }

/* ---------- hall ---------- */
.walls { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 18px; }
.wall { border: 4px solid #fff; border-radius: var(--radius); padding: 14px; }
.wall h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 24px; }
.wall ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; }
.wall-corporate { background: #334155; } .wall-robot { background: #0e7490; } .wall-cat { background: #9d174d; } .wall-galactic { background: #4c1d95; } .wall-monday { background: #9a3412; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 36px 0 60px; font-size: 15px; }
.footer-logo { direction: ltr; text-align: start; font-family: 'Bungee', sans-serif; font-size: 44px; color: var(--red); margin: 0; text-shadow: 3px 3px 0 var(--yellow); }

/* ---------- dialogs / toast ---------- */
.dialog { border: var(--b); border-radius: 18px; box-shadow: 10px 10px 0 var(--ink); padding: 16px; width: min(460px, 94vw); background: #fff; }
.dialog-wide { width: min(880px, 96vw); }
.dialog::backdrop { background: #111111b3; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.share-preview { white-space: pre-wrap; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; padding: 10px; font-weight: 600; max-height: 180px; overflow: auto; }
.share-list { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 140%); background: var(--ink); color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 12px; border: 3px solid var(--yellow); z-index: 60; transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- hero FX layer ---------- */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.fx-fly { position: fixed; font-family: 'Bungee', 'Lalezar', sans-serif; translate: -50% -50%; animation: fly ease-out forwards; white-space: nowrap; }
@keyframes fly { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; } }
.fx-sticker { background: #fff; border: 3px solid var(--ink); border-radius: 8px; padding: 0 8px; color: var(--red); font-size: 22px !important; }
.fx-letter { color: var(--yellow); -webkit-text-stroke: 3px var(--ink); }
.fx-star { color: var(--yellow); }
.fx-echo { color: transparent; -webkit-text-stroke: 3px var(--ink); animation-name: echoFly; }
@keyframes echoFly { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.fx-rain { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; padding: 0 6px; animation-name: rain; animation-timing-function: linear; }
@keyframes rain { 0% { transform: translateY(0); } 100% { transform: translateY(var(--dy)); } }
.fx-bit { color: var(--lime); -webkit-text-stroke: 2px var(--ink); font-family: var(--mono); }
.fx-emoji { font-family: system-ui, sans-serif; }
.fx-ring { position: fixed; width: 60px; height: 60px; border: 8px solid var(--yellow); border-radius: 50%; translate: -50% -50%; animation: ring 1.1s ease-out forwards; opacity: 0; }
@keyframes ring { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(14); opacity: 0; } }
.fx-stamp { position: fixed; top: 38%; left: 50%; translate: -50% -50%; font-family: 'Bungee', 'Lalezar', sans-serif; font-size: clamp(60px, 14vw, 150px); color: var(--red); border: 10px solid var(--red); border-radius: 18px; padding: 0 24px; background: #fff8; animation: stampIn 1.3s forwards; }
@keyframes stampIn { 0% { transform: scale(2.6) rotate(-25deg); opacity: 0; } 25% { transform: scale(1) rotate(-12deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1) rotate(-12deg); opacity: 0; } }
.fx-scene { position: fixed; width: min(320px, 70vw); translate: -50% -50%; animation: scenePop 1.6s forwards; border: 5px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.fx-float { animation-name: sceneFloat; }
@keyframes scenePop { 0% { transform: scale(0) rotate(-20deg); } 20% { transform: scale(1.05) rotate(4deg); } 30% { transform: scale(1) rotate(0); } 85% { opacity: 1; } 100% { transform: scale(.9) translateY(-30px); opacity: 0; } }
@keyframes sceneFloat { 0% { transform: translateY(40px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-320px) rotate(8deg); opacity: 0; } }
.fx-lamp { position: fixed; top: 22%; left: 50%; translate: -50% 0; font-family: var(--mono); font-size: 44px; color: var(--yellow); background: var(--ink); padding: 6px 20px; border-radius: 14px; animation: lamp 1.8s steps(6) forwards; }
@keyframes lamp { 0%, 33%, 66% { opacity: 1; } 16%, 50%, 83% { opacity: .35; } 100% { opacity: 0; } }
.fx-bubble { position: fixed; background: #fff; border: 4px solid var(--ink); border-radius: 20px; padding: 4px 16px; font-family: 'Bungee', sans-serif; font-size: 26px; animation: 1.4s ease-out forwards; }
.fx-bubble.l { left: -10px; animation-name: bubbleL; }
.fx-bubble.r { right: -10px; animation-name: bubbleR; }
@keyframes bubbleL { 0% { transform: translateX(-120%); } 30% { transform: translateX(20px); } 80% { opacity: 1; } 100% { transform: translateX(20px); opacity: 0; } }
@keyframes bubbleR { 0% { transform: translateX(120%); } 30% { transform: translateX(-20px); } 80% { opacity: 1; } 100% { transform: translateX(-20px); opacity: 0; } }
.fx-ufo { position: fixed; top: 10%; width: 220px; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; animation: ufo 2s ease-in-out forwards; }
@keyframes ufo { 0% { left: -240px; } 40%, 60% { left: calc(50% - 110px); } 100% { left: 110%; } }
.fx-yes { position: fixed; top: 60%; left: 50%; translate: -50% 0; font-family: 'Bungee', 'Lalezar', sans-serif; font-size: 48px; color: #fff; -webkit-text-stroke: 2px var(--ink); animation: abduct 2s forwards; }
@keyframes abduct { 0%, 35% { transform: translateY(0) scale(1); opacity: 1; } 60% { transform: translateY(-40vh) scale(.3); opacity: 0; } 100% { opacity: 0; } }
.fx-cross { position: fixed; top: 30%; left: 50%; translate: -50% 0; font-family: 'Bungee', 'Lalezar', sans-serif; font-size: clamp(48px, 10vw, 110px); background: #fff; border: 5px solid var(--ink); border-radius: 16px; padding: 0 20px; animation: fadeOut 1.6s forwards; }
.fx-cross s { text-decoration-color: var(--red); text-decoration-thickness: 10px; opacity: .6; }
.fx-cross b { color: var(--red); }
@keyframes fadeOut { 0% { transform: scale(.6); } 15% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.fx-balloon { position: fixed; font-size: 80px; translate: -50% -50%; animation: balloon .8s ease-in forwards; font-family: system-ui; }
@keyframes balloon { 0% { transform: translateY(0) scale(.6); } 85% { transform: translateY(-120px) scale(1.4); opacity: 1; } 100% { transform: translateY(-120px) scale(2); opacity: 0; } }
.fx-type { position: fixed; bottom: 18%; left: 50%; translate: -50% 0; font-family: var(--mono); font-size: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--lime); padding: 8px 18px; border-radius: 10px; }

body.fx-shake main, body.fx-shake .topbar { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-10px) rotate(-.6deg); } 40% { transform: translateX(10px) rotate(.6deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
body.fx-space .hero { background: var(--space) radial-gradient(#ffffff88 1px, transparent 1.5px) 0 0 / 26px 26px; transition: background .3s; }
body.fx-hue .hero { animation: hue 1.2s linear; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.nooo-btn.fx-glitch { animation: glitch .15s steps(2) 4; }
.nooo-btn.fx-zoom { animation: zoomPunch .55s; }
@keyframes zoomPunch { 30% { transform: scale(1.25) rotate(-3deg); } 100% { transform: scale(1); } }
.nooo-btn.fx-spin { animation: spin .75s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes spin { to { transform: rotate(360deg); } }
.nooo-btn.fx-bounce .l { animation: letter .5s ease-out; }
.nooo-btn.fx-bounce .l:nth-child(2) { animation-delay: .06s; } .nooo-btn.fx-bounce .l:nth-child(3) { animation-delay: .12s; } .nooo-btn.fx-bounce .l:nth-child(4) { animation-delay: .18s; } .nooo-btn.fx-bounce .l:nth-child(5) { animation-delay: .24s; }
@keyframes letter { 40% { transform: translateY(-.35em) rotate(-8deg); } }
.nooo-btn.fx-stretch { animation: stretch .8s; }
@keyframes stretch { 30% { transform: scaleX(1.35) scaleY(.8); } 60% { transform: scaleX(.9) scaleY(1.1); } }
.nooo-btn.fx-calm { box-shadow: 4px 4px 0 var(--ink); background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fx-layer { display: none; }
}
:lang(ar) .hero-title, :lang(ar) .card-reply, :lang(ar) .lang-no { -webkit-text-stroke: 0; }

/* ---- WORLD LAUGHS (jokes + quotes) ---- */
.wit-random { display: grid; gap: 16px; margin-bottom: 20px; justify-items: center; }
.joke-grid, .quote-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.joke-card, .quote-card { background: #fff; color: var(--ink); border: var(--b); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.joke-big { width: 100%; max-width: 760px; box-shadow: var(--shadow); background: var(--yellow); }
.joke-big .joke-text { font-size: clamp(19px, 3vw, 26px); }
.joke-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.joke-region { font-weight: 800; font-size: 14px; }
.joke-text { margin: 0; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.quote-text { margin: 0; font-size: 20px; line-height: 1.55; font-weight: 600; border-inline-start: 6px solid var(--red); padding-inline-start: 12px; overflow-wrap: anywhere; }
.quote-card figcaption { font-size: 15px; }
.quote-source { margin: 0; font-size: 13px; font-weight: 600; opacity: .8; }
.quote-take { margin: 0; padding: 8px 10px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 10px; font-weight: 700; font-size: 15px; }

/* ---- museum photo cards ---- */
.card-art .card-photo { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; background: var(--paper); }
.photo-credit { margin: 0; font-size: 13px; font-weight: 600; opacity: .85; overflow-wrap: anywhere; }
.photo-credit a { text-decoration: underline; }
