.foro {
  --acid: #d0ff19;
  --paper: #faf5e7;
  --quiet: #bbb7af;
  --edge: #555153;
  --panel: #171617;
  --purple: #bd6dff;
  color: var(--paper);
  max-width: 1170px;
  margin-inline: auto;
  padding-bottom: 3rem;
}
.foro [hidden] { display: none !important; }
.foro button, .foro input, .foro select, .foro textarea { font: inherit; }
.foro button { cursor: pointer; }
.foro button:disabled { cursor: wait; opacity: .65; }
.foro :focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.foro h1, .foro h2, .foro h3 { line-height: 1; }
.foro p { line-height: 1.48; }
.foro-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foro-hero { display: flex; align-items: center; justify-content: space-between; position: relative; isolation: isolate; min-height: 245px; padding: 1rem clamp(.15rem, 2.8vw, 2.4rem); gap: 1rem; }
.foro-hero::before, .foro-hero::after {
  content: ""; width: 42%; height: 95%; position: absolute; pointer-events: none; z-index: -1;
  background: radial-gradient(#c7ff31 1px, transparent 1.85px) 0 0 / 7px 7px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 69%); opacity: .48;
}
.foro-hero::before { bottom: -61%; left: -26%; }
.foro-hero::after { top: 0; right: 0; opacity: .34; }
.foro-hero-copy { min-width: 0; position: relative; z-index: 1; }
.foro-eyebrow { display: inline-block; background: var(--acid); color: #0e1202; transform: rotate(-3deg); padding: .35em .65em; margin-bottom: .6rem; font: italic 900 clamp(.64rem, 1.4vw, 1.05rem)/1 var(--display); }
.foro-hero h1 { font-size: clamp(2rem, 8.2vw, 7.2rem); font-style: italic; letter-spacing: -.085em; line-height: .9; text-shadow: 4px 5px 0 #1a1916; }
.foro-hero h1 span { color: var(--acid); }
.foro-hero p { font: italic 900 clamp(.93rem, 2.5vw, 2.05rem)/1.12 var(--display); margin: .65rem 0 .4rem .1em; }
.foro-hero p::after { content: ""; display: block; width: 29%; height: 5px; background: var(--acid); border-radius: 65% 45% 35% 10%; transform: rotate(-4deg); margin: .45rem 7% 0 auto; }
.foro-hero-mate { width: clamp(8rem, 24%, 16rem); flex-shrink: 0; transform: rotate(7deg); filter: drop-shadow(0 0 25px #b9fc1338); }
.foro-hero-mate img { animation: foro-arrival .52s cubic-bezier(.18,.72,.25,1.22) both; }
@keyframes foro-arrival { from { opacity: 0; transform: translateY(12px) scale(.84) rotate(-9deg); } to { opacity: 1; transform: none; } }
.foro-grid { display: grid; grid-template: "wall polls" auto "wall ranking" auto "wall ." 1fr / minmax(0, 2.1fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
.foro-wall { grid-area: wall; min-width: 0; }
.foro-polls { grid-area: polls; display: grid; gap: .75rem; min-width: 0; }
.foro-ranking { grid-area: ranking; min-width: 0; }
.foro-panel, .foro-post { border: 1px solid var(--edge); border-radius: 17px; background: linear-gradient(132deg,#1c1a1c,#121112); }
.foro-compose { display: flex; align-items: center; gap: .75rem; padding: 1rem; }
.foro-compose img { width: 48px; height: 48px; object-fit: contain; background: #2d3512; border: 1px solid #647922; border-radius: 50%; padding: 4px; }
.foro-prompt, .foro-button, .foro-sorts button, .foro-sections button { color: var(--paper); background: transparent; border: 1px solid var(--edge); border-radius: 12px; min-height: 42px; padding: .55rem .85rem; }
.foro-prompt { flex: 1; min-width: 0; text-align: left; color: var(--quiet); min-height: 46px; }
.foro-button { font-weight: 900 !important; }
.foro-primary { border-color: var(--acid); color: #111500; background: var(--acid); }
.foro-primary:hover { background: #e5ff73; }
.foro-button:not(.foro-primary):hover, .foro-prompt:hover { border-color: var(--acid); }
.foro-sections { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .65rem; }
.foro-sections button { min-height: 34px; padding: .35rem .65rem; font-size: .78rem; color: var(--quiet); border-color: #343036; }
.foro-sections button[aria-pressed=true] { background: #271b32; border-color: #8b50a7; color: #f1d7ff; }
.foro-controls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .75rem; }
.foro-sorts { display: flex; flex: 1 1 auto; gap: .28rem; }
.foro-sorts button { flex: 1; border-color: transparent; text-transform: uppercase; font: italic 900 clamp(.67rem, 1.15vw, .87rem)/1 var(--display); white-space: nowrap; padding-inline: clamp(.28rem, 1.2vw, .82rem); }
.foro-sorts button[aria-pressed=true] { border-color: var(--acid); color: #0f1401; background: var(--acid); }
.foro-search { display: flex; min-height: 37px; flex: 0 1 130px; border: 1px solid #444047; border-radius: 10px; min-width: 0; }
.foro-search input { min-width: 0; width: 100%; background: transparent; border: 0; color: var(--paper); padding-left: .55rem; font-size: .85rem; }
.foro-search button { background: transparent; color: var(--paper); border: 0; padding: 0 .6rem; }
.foro-posts { display: grid; gap: .65rem; }
.foro-post { padding: clamp(.75rem, 1.6vw, 1.05rem); min-width: 0; }
.foro-post-header { display: flex; align-items: center; gap: .55rem; position: relative; padding-right: 2.5rem; }
.foro-avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #402648; font-size: 1.15rem; vertical-align: middle; }
.foro-avatar img { width: 80%; height: 80%; object-fit: contain; }
.foro-avatar[data-avatar=mate] { background: #304012; }
.foro-avatar[data-avatar=llama] { background: #4b231b; }
.foro-avatar[data-avatar=rayo] { background: #473913; }
.foro-avatar[data-avatar=fantasma] { background: #3d2953; }
.foro-avatar[data-avatar=corona] { background: #463514; }
.foro-avatar[data-avatar=ojo] { background: #123849; }
.foro-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; color: var(--quiet); font-size: .8rem; }
.foro-post-meta strong { color: var(--paper); font-size: .91rem; overflow-wrap: anywhere; }
.foro-post-tag { color: #e3b6ff; font-size: .72rem; }
.foro-post h3 { font-size: clamp(1.24rem, 2.3vw, 1.76rem); margin: .55rem 0 .35rem; line-height: 1.08; overflow-wrap: anywhere; }
.foro-post h3 button, .foro-link { border: 0; background: none; color: inherit; padding: 0; text-align: left; font: inherit; }
.foro-post h3 button:hover, .foro-link:hover { color: var(--acid); }
.foro-copy { color: #eee8df; white-space: pre-wrap; overflow-wrap: anywhere; }
.foro-card-copy { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.foro-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; align-items: center; }
.foro-actions button { min-height: 37px; border: 1px solid #766f75; border-radius: 30px; background: transparent; color: var(--paper); font-size: .84rem; font-weight: 700; padding: .32rem .62rem; }
.foro-actions button[aria-pressed=true] { color: var(--acid); border-color: var(--acid); background: #28340e; animation: foro-tap .26s ease-out; }
.foro-actions [data-react=contra][aria-pressed=true] { color: #f1c7ff; border-color: #d99aff; background: #352241; }
@keyframes foro-tap { 50% { transform: scale(1.055); } }
.foro-actions .foro-comments-button { border-color: transparent; }
.foro-post-menu { position: absolute; right: 0; top: -1px; z-index: 3; }
.foro-post-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 39px; min-height: 35px; border-radius: 8px; font-weight: 900; }
.foro-post-menu summary::-webkit-details-marker { display: none; }
.foro-post-menu[open] summary { background: #302733; }
.foro-menu-items { display: grid; min-width: 157px; padding: .35rem; position: absolute; right: 0; background: #221d24; border: 1px solid var(--edge); border-radius: 9px; box-shadow: 0 8px 30px #0009; }
.foro-menu-items button { color: var(--paper); background: transparent; border: 0; text-align: left; min-height: 38px; border-radius: 6px; padding: 0 .5rem; }
.foro-menu-items button:hover { background: #39303c; }
.foro-week { background: var(--acid); color: #131801; padding: .7rem; border-radius: 18px; }
.foro-week h2, .foro-ranking h2 { display: flex; align-items: center; gap: .5rem; text-transform: uppercase; font-style: italic; font-size: clamp(1.05rem, 2vw, 1.6rem); line-height: 1; }
.foro-week h2 { margin: .22rem .25rem .65rem; }
.foro-week h2 span, .foro-ranking h2 span { font-size: 1.5em; }
.foro-week .foro-poll { background: #121112; color: var(--paper); border-radius: 12px; padding: .82rem; }
.foro-poll h3 { font-size: 1.24rem; line-height: 1.1; margin-bottom: .55rem; }
.foro-week-note { text-align: center; font-size: .78rem; color: #252e01; font-style: italic; margin-top: .45rem; }
.foro-poll-options { display: grid; gap: .4rem; }
.foro-poll-option { text-align: left; background: transparent; border: 1px solid #48424c; border-radius: 8px; padding: .37rem .5rem; color: var(--paper); min-height: 41px; }
.foro-poll-option:not(:disabled):hover, .foro-poll-option[aria-pressed=true] { border-color: var(--acid); }
.foro-poll-option:disabled { cursor: default; opacity: 1; }
.foro-poll-label { display: flex; justify-content: space-between; font-weight: 700; font-size: .84rem; gap: .4rem; }
.foro-poll progress { appearance: none; width: 100%; display: block; height: 6px; margin-top: .3rem; border: 0; border-radius: 1rem; background: #403b42; overflow: hidden; }
.foro-poll progress::-webkit-progress-bar { background: #403b42; }
.foro-poll progress::-webkit-progress-value { background: #ede8d9; }
.foro-poll progress::-moz-progress-bar { background: #ede8d9; }
.foro-poll-option[data-lead=true] progress::-webkit-progress-value { background: var(--acid); }
.foro-poll-option[data-lead=true] progress::-moz-progress-bar { background: var(--acid); }
.foro-poll-count { font-size: .72rem; color: var(--quiet); margin-top: .44rem; }
.foro-daily, .foro-ranking { padding: .8rem; }
.foro-daily summary, .foro-recap summary, .foro-rules summary { cursor: pointer; font-weight: 900; padding: .25rem 0; }
.foro-daily .foro-poll, .foro-post .foro-poll { margin-top: .65rem; }
.foro-ranking h2 { margin-bottom: .4rem; }
.foro-ranking h2 span { color: var(--acid); }
.foro-ranking ol { margin: 0; padding: 0; list-style: none; }
.foro-rank-row { display: flex; gap: .55rem; align-items: center; padding: .55rem 0; border-top: 1px solid #4a454a; }
.foro-rank-row div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.foro-rank-row small { color: var(--quiet); display: block; }
.foro-crown { color: var(--acid); }
.foro-ranking p, .foro-rules p, .foro-recap p { color: var(--quiet); font-size: .82rem; margin-block: .38rem; }
.foro-rules, .foro-recap { border-top: 1px solid #4a454a; padding-top: .4rem; margin-top: .4rem; }
.foro-placeholder { padding: 1.2rem; border: 1px dashed #565054; border-radius: 12px; color: var(--quiet); }
.foro-more { margin: .75rem auto 0; display: block; }
.foro-bottom { display: none; }
.foro-toast:not(:empty) { margin-bottom: .65rem; padding: .65rem .8rem; border-radius: 10px; background: #282130; border: 1px solid #9562af; }
.foro-dialog { width: min(670px, calc(100% - 1.1rem)); max-height: calc(100dvh - 2rem); padding: .85rem 1rem 1.1rem; color: var(--paper); background: #161316; border: 1px solid #746677; border-radius: 17px; overscroll-behavior: contain; }
.foro-dialog::backdrop { background: #060407c9; backdrop-filter: blur(3px); }
.foro-dialog-top { display: flex; justify-content: flex-end; }
.foro-dialog-close { width: 42px; min-height: 42px; background: #2d2531; border: 1px solid #59505e; color: var(--paper); border-radius: 10px; font-size: 1.45rem !important; line-height: 1; }
.foro-dialog h2 { margin: 0 0 .65rem; font-size: 1.65rem; line-height: 1.08; }
.foro-form { display: grid; gap: .65rem; margin-top: .7rem; }
.foro-form label { display: grid; gap: .28rem; font-size: .85rem; font-weight: 700; }
.foro-form :is(input, textarea, select) { color: var(--paper); background: #221e24; border: 1px solid #615665; border-radius: 9px; padding: .6rem .65rem; width: 100%; min-height: 43px; }
.foro-form textarea { resize: vertical; min-height: 90px; }
.foro-form input[type=file] { font-size: .76rem; }
.foro-form-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.foro-dialog-status { color: #f2c4ff; font-size: .85rem; }
.foro-comment { padding: .6rem 0; border-top: 1px solid #3c353e; }
.foro-comment[data-reply=true] { margin-left: 1.05rem; border-left: 2px solid #51365d; padding-left: .65rem; }
.foro-comment .foro-actions { margin-top: .3rem; }
.foro-comment .foro-copy { margin-top: .38rem; font-size: .93rem; }
.foro-comment-heading { margin-top: 1rem !important; }
.foro-thread > p { color: var(--quiet); margin-block: .55rem; }
.foro-media { width: auto; max-width: 100%; max-height: 320px; object-fit: contain; margin-top: .55rem; border-radius: 9px; }
.foro-profile-art { width: 118px; margin: 0 auto .7rem; }
.foro-reply-banner { color: #eacbfb; font-size: .85rem; }
.foro-sticker { font-size: 2rem; }
.foro-heat { font-size: .72rem; color: #dfafff; margin-top: .5rem; }
.foro-heat meter { margin-inline: .25rem; width: 65px; accent-color: var(--purple); }
.foro a[id], .foro [id] { scroll-margin-top: 1rem; }
@media (max-width: 760px) {
  .foro-grid { grid-template: "polls" auto "wall" auto "ranking" auto / minmax(0, 1fr); gap: .75rem; }
  .foro-hero { min-height: 0; padding-top: .8rem; padding-bottom: .9rem; gap: .25rem; }
  .foro-hero h1 { font-size: clamp(2.1rem, 8.9vw, 4.8rem); }
  .foro-hero-mate { width: clamp(4.15rem, 21%, 8rem); }
  .foro-week-note { margin-top: .25rem; }
  .foro-bottom { display: grid; position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: .32rem .65rem max(.32rem, env(safe-area-inset-bottom)); border: 1px solid #565158; border-radius: 15px 15px 0 0; background: #171518; }
  .foro-bottom > * { display: grid; gap: 0; place-content: center; justify-items: center; font: 900 .65rem/1.18 var(--display); color: var(--paper); min-height: 47px; border: 0; border-radius: 10px; background: transparent; text-transform: uppercase; }
  .foro-bottom span { font-size: 1.3rem; line-height: 1; }
  .foro-bottom [aria-current] { color: #111500; background: var(--acid); }
  .foro { padding-bottom: 4.6rem; }
}
@media (max-width: 470px) {
  .foro-search { flex: 1 1 100%; }
  .foro-compose { padding: .65rem; gap: .38rem; }
  .foro-compose img { width: 35px; height: 35px; }
  .foro-compose button { padding-inline: .45rem; font-size: .82rem; }
  .foro-controls { gap: .27rem; }
  .foro-sorts button { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .foro *, .foro *::after, .foro *::before { animation: none !important; transition: none !important; } }
.foro-profile-link { min-height: 35px; margin: .3rem 0 .55rem; }
.foro-profile-preview { margin-bottom: .65rem; }
.foro-moderation { display: grid; padding: .65rem; border: 1px solid #9562af; border-radius: 9px; margin-top: .65rem; }
.foro-moderation ul { padding-left: 1.1rem; margin: .4rem 0; overflow-wrap: anywhere; }

.foro-week h2 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.foro-poll h3 { line-height: 1.2; text-wrap: pretty; margin-bottom: .8rem; }
.foro-poll-option { min-height: 46px; padding: .55rem .7rem; }
.foro-poll-label { align-items: center; font-size: .95rem; line-height: 1.25; }
.foro-poll-option[aria-pressed=true] { background: #252c13; }
.foro-discuss { width: 100%; min-height: 44px; margin-top: .55rem; border: 1px solid var(--acid); border-radius: 8px; color: var(--acid); background: transparent; font-weight: 900; }
.foro-discuss:hover { color: #111; background: var(--acid); }
.foro-dialog { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .foro-form :is(input, select, textarea) { font-size: 16px; }
  .foro-dialog { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .foro-sorts button, .foro-profile-link { min-height: 44px; }
}

.foro-avatars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; padding: 0; margin: 0; border: 0; }
.foro-avatars legend { margin-bottom: .4rem; font-weight: 700; }
.foro-form .foro-avatar-choice { position: relative; justify-items: center; border: 1px solid var(--edge); border-radius: 10px; padding: .45rem; cursor: pointer; text-transform: capitalize; }
.foro-avatar-choice:has(:checked) { background: #272d17; border-color: var(--acid); }
.foro-avatar-choice:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.foro-form .foro-avatar-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

/* táctil-44 */
@media (pointer: coarse) { .foro-sections button, .foro-search button, .foro-search input, .foro-compose .foro-button { min-height: 44px; } .foro-panel > summary, .foro-recap > summary, .foro-rules > summary { min-height: 44px; display: flex; align-items: center; } }
