:root{--bg:#eeeae4;--surface:#f7f4ef;--surface-alt:#e7e3dd;--ink:#101b2e;--muted:#59636e;--line:#dcd6cd;--orange:#ff690c;--soft:#f4e2cd}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:"Segoe UI",Arial,sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,.button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:var(--surface);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffad6b;outline-offset:3px}.primary{background:var(--orange);color:#fff;border-color:var(--orange);font-weight:700}.header{height:90px;display:flex;align-items:center;gap:30px;padding:0 34px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;min-width:245px}.mascot{font-size:49px;transform:rotate(-10deg)}.brand b{font-size:38px;letter-spacing:-2px;font-weight:900;line-height:1.1}.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:.6px;font-weight:700;margin-top:4px}.search{margin:auto;display:flex;align-items:center;background:var(--surface-alt);border-radius:16px;padding:7px 14px;max-width:640px;flex:1}.search .ui-icon{width:22px;height:22px}.search input{background:none;border:0;padding:9px 12px;min-width:0;flex:1;outline:none}.search button{background:transparent;border:0;font-size:12px;color:var(--muted);padding:6px}.account{display:flex;align-items:center;gap:20px}.icon-button{border:0;background:none;font-size:23px;color:#f7a20a;padding:5px}.login-link{font-weight:600;white-space:nowrap}.username{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell{max-width:1600px;margin:0 auto;display:grid;grid-template-columns:245px minmax(0,1fr) 325px;gap:27px;padding-right:28px}.sidebar{padding:22px 20px;border-right:1px solid var(--line)}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav a{display:flex;align-items:center;gap:17px;min-height:43px;padding:9px 13px;border-radius:12px;font-weight:500}.sidebar img{width:24px;height:27px;object-fit:contain}.sidebar a:hover,.selected{background:var(--soft);color:#ec5e00}.section-label{display:flex;justify-content:space-between;color:var(--muted);font-weight:700;letter-spacing:.5px;font-size:12px;margin:30px 12px 12px}.section-label a{color:var(--orange);font-weight:400;letter-spacing:0}.side-note{margin:35px 12px;color:var(--muted);font-size:12px;line-height:1.6}.side-note b{color:var(--ink);font-size:17px}.feed{min-width:0;padding-top:28px}.feed-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:700}h1{font-size:25px;letter-spacing:-.8px;margin:8px 0;font-weight:750}.tiny-smile{font-size:42px;color:#ffbd50}.tabs{display:flex;gap:9px;margin-bottom:18px;overflow:auto;white-space:nowrap;padding-bottom:2px}.tabs a{padding:12px 18px;background:var(--surface-alt);border-radius:24px;font-weight:600;font-size:12px}.tabs .active{background:var(--orange);color:white}.joke{padding:20px 22px 17px;border:1px solid #e1d8cb;border-radius:15px;margin-bottom:15px;box-shadow:0 2px 3px #1e253203;background:#f5ede2}.tone-1{background:#e7eef3;border-color:#d6e1e8}.tone-2{background:#f4ece0}.tone-3{background:#e8efe4;border-color:#d7e3d3}.joke-meta{display:flex;gap:17px;align-items:center;margin-bottom:13px;font-size:11px;color:#697788}.joke-meta a{display:flex;align-items:center;gap:12px;font-weight:750;font-size:14px;color:#b53a24}.joke-meta img{width:25px;height:28px;object-fit:contain}.tone-1 .joke-meta a{color:#0663da}.tone-3 .joke-meta a{color:#168348}.editor{margin-left:auto;font-size:10px}.editor span{color:var(--orange)}.joke h2{font-size:21px;font-weight:700;line-height:1.4;letter-spacing:-.45px;margin:0 0 5px}.punchline{font-size:20px;line-height:1.5;letter-spacing:-.3px;margin:0 0 18px;white-space:pre-line}.actions{display:flex;gap:12px;flex-wrap:wrap}.actions form{display:flex}.actions button{font-size:12px;padding:8px 13px;border-radius:12px;min-height:36px;background:#ffffffd9}.actions .ui-icon{width:17px;height:17px}.vote-group{background:#fff;border:1px solid var(--line);border-radius:13px}.vote-group button{border:0}.vote-group .up{color:#ff6300;background:#fff0dd;font-size:17px;gap:10px}.vote-group button:last-child{font-size:24px;padding:1px 13px}.actions .voted{background:#ffdec0;color:#b94a00}.rightbar{padding-top:27px}.random-card{position:relative;overflow:hidden;background:linear-gradient(110deg,#ffdb90,#ffc768);border-radius:15px;padding:25px 20px 20px;min-height:220px}.random-card h2{font-size:30px;font-weight:950;letter-spacing:-1px;transform:rotate(-4deg);margin:0 0 13px;position:relative}.random-card p{line-height:1.6;font-size:16px;margin:0 0 20px;position:relative}.random-face{position:absolute;font-size:90px;right:8px;top:52px;transform:rotate(12deg)}.random-card .button{position:relative;display:flex;border-radius:28px;font-size:17px;padding:12px 10px;box-shadow:0 2px 0 #ed5a00}.random-card .button span{font-size:28px;line-height:1}.spark{position:absolute;color:#f57c1b;font-size:28px}.one{right:30px;top:12px}.two{right:110px;top:70px}.panel{border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:20px;margin-top:17px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.panel h2{font-size:18px;letter-spacing:-.5px;margin:0}.panel-heading a{color:#0772ef;font-size:11px}.topic-row{display:flex;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.topic-row:last-child{border:0;padding-bottom:0}.topic-row img{width:26px;height:27px;object-fit:contain}.topic-row small{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}.rank{color:#74808e;font-weight:700}.daily{padding:23px}.daily h2{margin-top:12px}.daily p{color:var(--muted);line-height:1.8;font-size:13px}.daily a{color:var(--orange);font-size:12px;font-weight:600}.right-footer{font-size:11px;color:var(--muted);line-height:2;padding:23px 8px}.right-footer b{color:var(--ink)}.feed-end{text-align:center;color:var(--muted);font-size:11px;margin:30px 0}.pagination{display:flex;justify-content:center;gap:10px}.empty{text-align:center;background:var(--surface);padding:65px 20px;border:1px solid var(--line);border-radius:15px}.empty span{font-size:60px;color:#ffb952}.empty p{color:var(--muted)}footer{border-top:1px solid var(--line);padding:22px;text-align:center;color:var(--muted);font-size:11px}.text-button{border:0;background:none;color:var(--muted);font-size:11px}.auth-page{max-width:480px;margin:65px auto;padding:40px;text-align:center}.auth-page p{line-height:1.8;color:var(--muted)}.auth-page small,.auth-page>a{display:block;margin-top:22px}.auth-face{font-size:60px}.provider{width:100%;margin-top:13px;font-weight:700;padding:14px}.notice{padding:16px;background:var(--soft);border-radius:12px;margin:20px 0}.admin{max-width:1200px;margin:45px auto;padding:0 25px}.admin-heading{display:flex;align-items:center;gap:16px}.admin-heading>div{margin-right:auto}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:25px 0}.stats>div{border:1px solid var(--line);padding:23px;border-radius:14px;background:var(--surface);color:var(--muted)}.stats b{display:block;font-size:30px;color:var(--ink)}.table-wrap{overflow:auto}table{border-collapse:collapse;background:var(--surface);width:100%;text-align:left}td,th{padding:15px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-size:12px}td:first-child{max-width:400px}td a{color:var(--orange)}.badge{border-radius:20px;background:var(--soft);padding:6px 10px;font-size:11px}.danger{color:#be302a;font-size:11px;margin-top:5px}.narrow{max-width:730px}.editor-form{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);padding:30px;border-radius:15px;margin-top:25px}.editor-form label{font-weight:650}.editor-form input:not([type=checkbox]),.editor-form textarea,.editor-form select{width:100%;padding:12px;border:1px solid #d8dce1;border-radius:8px;background:var(--surface);color:var(--ink)}.checkbox{display:flex;align-items:center;gap:10px}.help{font-size:12px;color:var(--muted);line-height:1.7}.validation{color:#c22727}.ad-space{border:1px dashed #d5d2cd;border-radius:12px;text-align:center;min-height:170px;margin:20px 0;padding:12px;color:var(--muted)}.ad-space small{font-size:9px;letter-spacing:2px}.ad-placeholder{font-size:11px;padding:50px 15px}.consent{position:fixed;bottom:20px;left:20px;z-index:30;max-width:380px;padding:23px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 50px #0003}.consent p{font-size:13px;line-height:1.6}.consent>a{font-size:11px;text-decoration:underline}.consent>div{display:flex;gap:10px;margin-top:15px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:20px;z-index:40}[hidden]{display:none!important}
body.dark{--bg:#141820;--surface:#1e2530;--surface-alt:#2a313b;--ink:#eef1f6;--muted:#a7b0bd;--line:#343c47;--soft:#49301e}.dark .joke{background:#27252a;border-color:#3a3940}.dark .tone-1{background:#1d2c3d}.dark .tone-3{background:#203329}.dark .search,.dark .tabs a{background:#2a313b}.dark input{color:var(--ink)}.dark .tabs .active{background:var(--orange)}.dark .actions button{color:#142033}.dark .random-card{color:#142033}
@media(min-width:1550px){.shell{grid-template-columns:270px minmax(0,1fr) 350px;gap:30px}.joke h2{font-size:23px}.punchline{font-size:22px}}
@media(max-width:1200px){.shell{grid-template-columns:205px minmax(0,1fr);padding-right:25px;gap:23px}.rightbar{display:none}.header{padding:0 20px;gap:20px}.brand{min-width:210px}.brand b{font-size:32px}.account{gap:12px}.sidebar{padding:22px 12px}}
@media(max-width:760px){.header{height:auto;min-height:80px;flex-wrap:wrap;padding:13px 16px;gap:12px;position:relative}.brand{min-width:0;flex:1}.brand b{font-size:29px}.brand small{font-size:7px}.mascot{font-size:37px}.account{gap:12px}.account .primary,.username{display:none}.login-link{font-size:12px}.search{order:3;flex-basis:100%;max-width:none}.shell{display:block;padding:0 14px}.sidebar{border:0;padding:15px 0 0}.sidebar nav:first-child{flex-direction:row;overflow:auto;gap:6px}.sidebar nav:first-child a{font-size:11px;gap:6px;white-space:nowrap;padding:9px}.sidebar img{width:19px;height:20px}.sidebar nav:nth-of-type(2){flex-direction:row;overflow:auto;gap:7px}.sidebar nav:nth-of-type(2) a{font-size:11px;white-space:nowrap;background:var(--surface);border:1px solid var(--line);min-height:33px;padding:5px 10px;gap:5px}.section-label{margin:18px 2px 9px;font-size:10px}.side-note{display:none}.feed{padding-top:22px}.feed-heading h1{font-size:22px}.tiny-smile{font-size:32px}.tabs{gap:7px}.tabs a{padding:10px 14px;font-size:11px}.joke{padding:16px}.joke h2{font-size:18px}.punchline{font-size:18px}.joke-meta{gap:10px}.editor{font-size:0}.editor span{font-size:13px}.actions{gap:7px}.actions button{padding:8px 10px;font-size:11px}.admin-heading{flex-wrap:wrap}.admin-heading>div{width:100%}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.admin{padding:0 15px}.editor-form{padding:20px}.auth-page{margin:30px 15px;padding:30px 20px}.consent{left:12px;right:12px;bottom:12px;max-width:none}}

.category-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.category-tags a{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:4px 10px;background:var(--surface);color:var(--muted)}
.category-picker{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:15px;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.category-picker legend{font-weight:600}.bulk-publish{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}#schedule-fields{display:grid;gap:12px}.topic-filter{display:block;width:100%;min-width:0;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.topic-filter::placeholder{color:var(--muted)}.topic-filter-empty{padding:0 12px;color:var(--muted);font-size:12px}
.category-count{margin-left:auto;color:var(--muted);font-size:11px}.all-categories{display:inline-block;margin:12px 13px;color:var(--orange);font-size:12px;font-weight:600}.category-directory{max-width:1450px;margin:0 auto;padding:34px 40px 70px;min-height:calc(100vh - 160px)}.directory-back{font-size:12px;color:var(--muted)}.directory-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;margin:38px 0 28px}.directory-heading h1{font-size:38px;margin:12px 0}.directory-heading p{color:var(--muted);line-height:1.6}.directory-search{width:320px;max-width:100%;flex-shrink:0}.directory-search label{display:block;font-size:12px;font-weight:600;margin-bottom:9px}.directory-search input{margin:0;padding:13px 15px}.directory-toolbar{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:20px 0 30px;font-size:12px;color:var(--muted)}.directory-toolbar a{color:var(--orange)}.category-columns{columns:5;column-gap:42px}.category-group{break-inside:avoid;margin:0 0 30px}.category-group h2{font-size:19px;margin:0 0 13px;padding-bottom:10px;border-bottom:1px solid var(--line)}.category-group ul{list-style:none;padding:0;margin:0}.category-group a{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;line-height:1.45}.category-group a:hover{color:var(--orange)}.category-group small{font-size:10px;color:var(--muted);white-space:nowrap}.category-directory .topic-filter-empty{padding:25px 0}.category-group a span{overflow-wrap:anywhere}
@media(max-width:1200px){.category-columns{columns:4;column-gap:28px}}
@media(max-width:960px){.category-columns{columns:3}.directory-heading{align-items:start;flex-direction:column;gap:15px}.directory-search{width:100%}}
@media(max-width:760px){.category-directory{padding:25px 20px 45px}.directory-heading{margin-top:25px}.directory-heading h1{font-size:29px}.category-columns{columns:2;column-gap:25px}.sidebar nav[aria-label="Categorías populares"]{flex-wrap:wrap;overflow:visible}.all-categories{margin-left:2px}.directory-toolbar{font-size:11px}}
@media(max-width:420px){.category-columns{columns:1}}

.privacy-page{max-width:800px;margin:0 auto;padding:40px 22px 64px;line-height:1.75;overflow-wrap:anywhere}.privacy-page h1{font-size:32px;line-height:1.2;margin-top:24px}.privacy-page h2{font-size:20px;line-height:1.35;margin-top:32px}.privacy-page a,.privacy-link{text-decoration:underline;text-underline-offset:3px}.privacy-page>a{font-size:13px}.privacy-link{display:inline-block;margin:6px 12px}


dialog.consent{inset:0;margin:auto;width:calc(100% - 32px);max-width:510px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0004}
dialog.consent::backdrop{background:rgb(16 27 46 / 48%)}
body:has(dialog.consent[open]){overflow:hidden}
.consent-brand{font-size:10px;font-weight:750;letter-spacing:1.5px;color:var(--muted)}
dialog.consent h2{font-size:27px;line-height:1.2;letter-spacing:-.7px;margin:16px 0}
dialog.consent p{line-height:1.65;font-size:14px}
dialog.consent .consent-note{font-size:12px;color:var(--muted)}
dialog.consent .consent-actions{display:grid;gap:10px;margin:23px 0 16px}
.consent-actions button{width:100%;min-height:46px;font-weight:700}
.consent-actions button:not(.primary){border-color:var(--muted)}
.consent summary{cursor:pointer;padding:10px 0;font-weight:600;font-size:13px}
.consent summary:focus-visible{outline:3px solid #ffad6b;outline-offset:3px}
.consent-options{padding:14px 0;border-top:1px solid var(--line)}
dialog.consent .consent-options p{margin:4px 0 17px 26px;font-size:12px;color:var(--muted)}
.consent-options input{width:18px;height:18px;accent-color:var(--orange);flex-shrink:0}
.consent-options button{width:100%}
dialog.consent .consent-policy{display:block;margin-top:15px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:480px){dialog.consent{padding:23px}dialog.consent h2{font-size:24px}}

.ui-icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}
.sidebar nav a:is(.selected, :hover) .ui-icon { color: #ac4500; }
.dark .sidebar nav a:is(.selected, :hover) .ui-icon { color: #ffad68; }
@media (max-width: 760px) {
  .sidebar .ui-icon { width: 19px; height: 19px; }
}

.games-directory { grid-column: 2 / -1; width: 100%; max-width: 1080px; padding: 32px 0 64px; }
.games-directory h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 20px; }
.game-feature { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #ffda93; color: #192032; padding: clamp(22px, 4vw, 48px); border-radius: 18px; }
.game-feature h2 { font-size: clamp(27px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.game-feature p { max-width: 38ch; line-height: 1.5; font-size: 16px; }
.game-play { display: inline-flex; gap: 16px; align-items: center; background: #192032; color: white; padding: 12px 18px; border-radius: 24px; font-weight: 700; }
.game-play:hover { background: #344460; }
.crossword-art { width: clamp(92px, 19vw, 220px); aspect-ratio: 1; flex: none; height: auto; transform: rotate(6deg); }
#recommended-games { margin: 34px 0 16px; }
.game-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(10px, 2vw, 22px); }
.game-card { overflow: hidden; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); text-align: center; padding-bottom: 18px; }
.game-cover { display: grid; place-items: center; aspect-ratio: 1; }
.game-cover svg { width: 65%; height: 65%; }
.circuitos { background: #ffa34f; }
.game-card .game-play { padding: 6px 16px; }
.game-card:hover .game-play { background: #344460; }
.sopa { background: #a8dcd8; }
.remate-cover { background: #f5adb0; }
.remate-invite { margin: 4px 8px 10px; }
.panal { background: #ffc875; }
.game-card h3 { font-size: clamp(16px, 2vw, 21px); margin: 15px 4px 5px; }
.game-status { font-size: 13px; color: var(--ink); opacity: .78; }
@media (max-width: 900px) { .game-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 480px) { .game-feature { gap: 5px; } .games-directory { padding-top: 24px; } }

.game-back { margin: 0 0 12px; }
.game-back a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; color: var(--ink); font-weight: 600; }
.game-back a:hover { text-decoration: underline; }
.crossword .game-back { margin: 12px 20px; }
.game-ad { grid-column: 2 / -1; width: min(100%, 970px); margin: 0 0 28px; }
.game-ad:not([data-ad-ready]), .game-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
