/*
Theme Name: Hambo.Games
Author: Hambo Rocks Limited
Description: Mobile-first gaming and community theme with a white and lime wordmark, two game libraries, and BuddyPress / bbPress styling. Install Hambo Game Library for game content types.
Version: 1.7.2
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hambo-games
Tags: custom-menu, featured-images, translation-ready, wide-blocks
*/
:root{--bg:#101210;--surface:#191c19;--raised:#222622;--line:#343a32;--white:#f8faf4;--muted:#b4bdaf;--lime:#c1f65b;--ink:#17200d;--radius:18px;--wrap:1240px;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;background:var(--bg);color:var(--white);font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:1rem;line-height:1.65;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{line-height:1.08;letter-spacing:-.045em}h1{font-size:clamp(2.8rem,7.8vw,6rem);font-weight:850}h2{font-size:clamp(2rem,4vw,3.25rem)}h3{font-size:1.6rem}a{color:inherit;text-underline-offset:5px}img{display:block;max-width:100%;height:auto}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--lime);outline-offset:5px}::selection{background:var(--lime);color:var(--ink)}.wrap,.header-inner,.site-footer{width:min(var(--wrap),calc(100% - 2.5rem));margin-inline:auto}.site-header{border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;min-height:72px;padding-block:.65rem}.brand{text-decoration:none;white-space:nowrap}.wordmark{color:#fff;font-size:1.75rem;font-weight:900;letter-spacing:-.075em;line-height:1}.wordmark span{color:var(--lime)}.menu-toggle{margin-left:auto;background:transparent;color:var(--white);border:1px solid var(--line);padding:.55rem .8rem;border-radius:8px;min-height:44px}.header-join{display:none!important}#primary-nav{width:100%}#primary-nav .menu{list-style:none;display:flex;gap:.25rem 1.5rem;flex-wrap:wrap;margin:0;padding:0}#primary-nav .menu>li>a{display:block;padding:.6rem 0;text-decoration:none;font-size:.94rem;font-weight:600;color:var(--muted)}#primary-nav .menu a:hover,#primary-nav .current-menu-item>a{color:var(--lime)}#primary-nav .sub-menu{padding-left:1rem;list-style:none}#primary-nav .sub-menu a{display:block;padding:.4rem}.menu-toggle:not([hidden])~#primary-nav{display:none}.menu-toggle:not([hidden])~#primary-nav.is-open{display:block}.button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:.8rem 1.35rem;border:1px solid var(--lime);border-radius:7px;background:var(--lime);color:var(--ink);font-size:.95rem;font-weight:750;line-height:1.3;text-decoration:none;transition:background .15s,transform .15s}.button:hover{background:#d6ff8d;transform:translateY(-2px)}.button-outline{background:transparent;border-color:#59634f;color:var(--white)}.button-outline:hover{background:var(--raised)}.button-small{min-height:44px;font-size:.88rem}.button-row{display:flex;flex-wrap:wrap;gap:.75rem}.hero{display:grid;padding-block:1.75rem 2rem;overflow:hidden}.eyebrow{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--lime);font-weight:750;margin-bottom:1rem}.mini-mark{font-size:1.4rem;vertical-align:middle;margin-right:.5rem}.hero h1{margin-bottom:1.5rem}.hero h1 span{color:var(--lime)}.hero-intro{font-size:1.1rem;color:var(--muted);max-width:33rem;margin-bottom:2rem}.hero-note{font-size:.8rem;color:var(--muted);margin-top:2rem}.hero-note .mini-mark{color:var(--lime)}.hero-art{position:relative;max-width:640px;margin-inline:auto;isolation:isolate}.hero-art:before{content:'';position:absolute;inset:10%;background:radial-gradient(ellipse,#34432588,transparent 68%);z-index:-1}.hero-art img{width:100%}.art-label{position:absolute;background:#20271de8;border:1px solid #59634f;border-radius:5px;padding:.4rem .75rem;font-size:.75rem;font-weight:650;box-shadow:0 8px 30px #0004}.label-table{bottom:20%;left:1%;transform:rotate(-7deg)}.label-screen{top:18%;right:0;transform:rotate(6deg)}.manifesto{background:var(--lime);color:var(--ink);font-weight:800;font-size:clamp(.85rem,1.6vw,1.15rem);letter-spacing:-.02em}.manifesto .wrap{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.6rem 1.5rem;padding-block:1.2rem}.manifesto span{font-size:1.4rem}.section{padding-block:3.5rem;scroll-margin-top:1rem}.section+.section{border-top:1px solid var(--line)}.section-heading{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.75rem}.section-heading h2{margin-bottom:.75rem}.section-heading p{margin-bottom:0}.muted{color:var(--muted)}.text-link{font-size:.9rem;font-weight:750;text-decoration:underline;text-decoration-color:var(--lime);text-decoration-thickness:2px;white-space:normal}.text-link:hover{color:var(--lime)}.world-grid,.game-grid{display:grid;gap:1.25rem}.world-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:#222c1e;min-height:440px;text-decoration:none;display:flex;flex-direction:column;transition:border-color .2s}.world-card:hover{border-color:var(--lime)}.world-card.video_game{background:#242526}.world-copy{padding:1.75rem;z-index:1}.world-card h3{font-size:2.35rem;margin-block:1.1rem .8rem}.world-card p{color:#c7cebf;max-width:24rem;font-size:.95rem}.pill{font-size:.72rem;letter-spacing:.01em;font-weight:650;border:1px solid #738365;padding:.4rem .65rem;border-radius:4px}.world-card img{width:80%;max-width:350px;margin:-1.5rem 0 -2rem auto;align-self:flex-end;transform:rotate(-7deg)}.world-card.video_game img{transform:rotate(8deg)}.game-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.card-image{display:block;aspect-ratio:16/10;overflow:hidden;background:radial-gradient(ellipse,#36432c,#1c211b)}.card-image img{height:100%;width:100%;object-fit:cover;transition:transform .3s}.card-image:hover img{transform:scale(1.04)}.card-copy{padding:1.5rem}.card-copy h3{margin-bottom:.7rem}.card-copy h3 a{text-decoration:none}.card-copy p:not(.eyebrow){color:var(--muted);font-size:.95rem}.card-copy .eyebrow{font-size:.7rem}.empty-state{grid-column:1/-1;border:1px dashed #4d5746;padding:2rem;border-radius:12px;background:var(--surface)}.empty-state p{max-width:42rem;color:var(--muted)}.community-banner{margin-block:1rem 4rem;background:#24311d;border:1px solid #475a35;overflow:hidden;border-radius:var(--radius);padding:2rem;position:relative}.community-banner>div:first-child{position:relative;z-index:1;max-width:39rem}.community-banner p:not(.eyebrow){max-width:31rem;color:#c7cebf}.community-symbol{position:absolute;right:-2rem;bottom:-7rem;opacity:.12;color:var(--lime);font-size:24rem;line-height:1;font-family:Arial,sans-serif;transform:rotate(12deg)}.site-footer{padding-block:2rem;border-top:1px solid var(--line)}.footer-top{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;padding-bottom:2rem}.footer-top p{font-size:.88rem;color:var(--muted);margin:0}.footer-top nav{margin-left:auto}.footer-top ul{list-style:none;display:flex;gap:1rem;flex-wrap:wrap;padding:0;margin:0}.footer-bottom{border-top:1px solid var(--line);padding-top:1.25rem;display:flex;flex-wrap:wrap;gap:.5rem 2rem;color:var(--muted);font-size:.8rem}.footer-bottom span:nth-child(2){margin-left:auto}.page-main,.archive-main{min-height:65vh;padding-block:3rem 5rem}.page-heading{margin-bottom:2.5rem}.page-heading h1{font-size:clamp(2.5rem,6vw,4.5rem);overflow-wrap:anywhere}.standfirst{max-width:45rem;font-size:1.2rem;color:var(--muted)}.library-filter{display:flex;flex-direction:column;gap:1rem;padding:1.4rem;margin-bottom:2rem;background:var(--surface);border:1px solid var(--line);border-radius:10px}label{display:block;font-weight:600;font-size:.9rem}input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea{max-width:100%;width:100%;padding:.8rem;border:1px solid #59634f;border-radius:6px;background:#121610;color:var(--white);min-height:48px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 6 5 5 5-5' fill='none' stroke='%23c1f65b' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .8rem center;padding-right:2.5rem}input[type=submit]{padding:.8rem 1.2rem;background:var(--lime);color:var(--ink);border:0;border-radius:6px;cursor:pointer;font-weight:700;min-height:48px}.library-filter input,.library-filter select{margin-top:.4rem}.search-form{display:flex;flex-wrap:wrap;gap:.7rem;margin-block:1.5rem}.search-form label{flex:1;min-width:180px}.detail-grid{display:grid;gap:2rem}.detail-image{border-radius:12px;width:100%;margin-bottom:2rem}.game-facts{align-self:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.75rem}.game-facts h2{font-size:1.5rem}.game-facts dl{margin-bottom:2rem}.game-facts dt{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-top:1.2rem}.game-facts dd{margin:0;font-weight:650}.game-facts p{color:var(--muted)}.game-facts .button{width:100%}.prose{font-size:1.05rem;overflow-wrap:anywhere}.prose>p,.prose>ul,.prose>ol{max-width:72ch}.prose h2{font-size:2rem;margin-top:2rem}.prose h3{margin-top:1.75rem}.prose a{color:var(--lime)}.prose iframe{max-width:100%}.prose figure{max-width:100%;margin-inline:0}.prose table{border-collapse:collapse;display:block;max-width:100%;overflow:auto}.prose th,.prose td{border:1px solid var(--line);padding:.7rem}.prose blockquote{border-left:3px solid var(--lime);padding-left:1.5rem;margin-left:0;color:var(--muted)}.alignwide{width:100%}.aligncenter{margin-inline:auto}.wp-caption-text,figcaption{color:var(--muted);font-size:.85rem}.pagination{margin-top:2rem}.nav-links{display:flex;gap:.5rem;flex-wrap:wrap}.page-numbers{padding:.5rem 1rem;border:1px solid var(--line);border-radius:6px;text-decoration:none}.page-numbers.current{background:var(--lime);color:var(--ink)}.comments-area{margin-top:3rem;border-top:1px solid var(--line);padding-top:2rem;max-width:850px}.comment-list{padding:0;list-style:none}.comment-body{padding:1.5rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:1rem}.comment-author .avatar{float:left;margin-right:.75rem;border-radius:50%}.comment-metadata{font-size:.8rem;color:var(--muted)}.comment-form p{margin-bottom:1rem}.comment-form label{margin-bottom:.4rem}.screen-reader-text,.skip-link:not(:focus){position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip-link:focus{position:fixed;top:1rem;left:1rem;z-index:999999;background:var(--lime);color:var(--ink);padding:1rem}.buddypress-wrap,#buddypress,#bbpress-forums{color:var(--white);font-size:1rem;max-width:100%;overflow-wrap:anywhere}.buddypress-wrap a,#buddypress a,#bbpress-forums a{color:var(--lime)}.buddypress-wrap .bp-navs,.buddypress-wrap .bp-subnavs,.buddypress-wrap .bp-feedback,.buddypress-wrap .item-body,.buddypress-wrap .activity-list .activity-item,.buddypress-wrap .members-list>li,.buddypress-wrap .groups-list>li,#buddypress div.item-list-tabs,#buddypress .activity-list li,#bbpress-forums li.bbp-header,#bbpress-forums li.bbp-footer,#bbpress-forums div.bbp-forum-header,#bbpress-forums div.bbp-topic-header,#bbpress-forums div.bbp-reply-header{background:var(--surface);color:var(--white);border-color:var(--line)}.buddypress-wrap .bp-navs li.selected a,.buddypress-wrap .bp-navs li.current a,#buddypress div.item-list-tabs ul li.selected a{background:var(--lime);color:var(--ink)}.buddypress-wrap .bp-list>li,.buddypress-wrap .activity-list,.buddypress-wrap .activity-comments,#bbpress-forums ul.bbp-forums,#bbpress-forums ul.bbp-topics,#bbpress-forums ul.bbp-replies,#bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{border-color:var(--line)}#bbpress-forums div.odd,#bbpress-forums ul.odd,#bbpress-forums div.even,#bbpress-forums ul.even,#bbpress-forums fieldset.bbp-form{background:var(--surface);color:var(--white);border-color:var(--line)}#bbpress-forums .bbp-template-notice,.buddypress-wrap .bp-feedback{background:#29371f;border-color:#617c42;color:var(--white)}#bbpress-forums .bbp-template-notice p{color:var(--white)}.buddypress-wrap button,.buddypress-wrap input[type=submit],#buddypress input[type=submit],#bbpress-forums button[type=submit]{background:var(--lime);color:var(--ink);border:0;border-radius:6px;padding:.7rem 1rem;min-height:44px}.buddypress-wrap .activity-meta a,.buddypress-wrap .generic-button a{background:var(--raised);color:var(--lime);border:1px solid var(--line);padding:.5rem .75rem;display:inline-block}.buddypress-wrap .activity-update-form,#buddypress form#whats-new-form textarea{background:var(--surface);color:var(--white)}#bbpress-forums .bbp-author-avatar img,.buddypress-wrap .avatar{border-radius:50%}.buddypress-wrap .item-meta,.buddypress-wrap .activity-header,.buddypress-wrap .activity-time-since,#bbpress-forums .bbp-topic-meta,#bbpress-forums .bbp-reply-post-date{color:var(--muted)}#bbpress-forums .bbp-breadcrumb{float:none;font-size:.9rem;margin-bottom:1rem}.buddypress-wrap .bp-feedback .bp-icon{background:#344b25}.buddypress-wrap .bp-navs ul li a .count{background:var(--raised);color:var(--white)}
@media(min-width:600px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-card{min-height:480px}.header-join{display:inline-flex!important}.menu-toggle{margin-left:auto}.section-heading{flex-direction:row;align-items:flex-end;justify-content:space-between}.library-filter{flex-direction:row;flex-wrap:wrap;align-items:flex-end}.library-filter label:first-child{flex:2}.library-filter label{flex:1;min-width:160px}.community-banner{padding:3rem}.hero{padding-top:2rem}.wordmark{font-size:2rem}}
@media(min-width:800px){.menu-toggle{display:none}#primary-nav,.menu-toggle:not([hidden])~#primary-nav{display:block;width:auto;margin-left:auto}.header-inner{flex-wrap:nowrap;gap:2rem}.hero{grid-template-columns:1.05fr 1fr;align-items:start;min-height:0;padding-block:2rem}.hero-art{width:115%;margin-left:-6%}.hero h1{font-size:clamp(3.7rem,6.8vw,6rem)}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-card{min-height:440px}.world-card img{width:58%;margin-top:-3rem}.section{padding-block:4.5rem}.detail-grid:has(.game-facts){grid-template-columns:minmax(0,1fr) 310px}.community-symbol{opacity:.65;font-size:28rem;right:2rem;bottom:-6rem}.community-banner>div:first-child{max-width:65%}#primary-nav .menu>li{position:relative}#primary-nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:10;background:var(--surface);border:1px solid var(--line);padding:.75rem;min-width:200px}#primary-nav li:hover>.sub-menu,#primary-nav li:focus-within>.sub-menu{display:block}}
@media(min-width:1050px){.game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-copy{padding:2.25rem}.world-card h3{font-size:2.8rem}.world-card img{margin-top:-5rem}.hero-intro{font-size:1.15rem}.header-inner{min-height:76px}}
@media(max-width:480px){.manifesto .wrap{gap:.4rem .8rem}.manifesto span:last-of-type{display:none}.manifesto .wrap{font-size:.8rem}.hero .button-row{flex-direction:column;align-items:stretch}.hero-art{margin-top:1rem}.art-label{font-size:.65rem}.footer-bottom span:nth-child(2){margin-left:0}#bbpress-forums .bbp-reply-author{float:none;width:auto;text-align:left}#bbpress-forums .bbp-reply-content{margin-left:0}.buddypress-wrap .item-list .list-wrap{padding:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Amazon UK affiliate shop */
.hambo-shop-intro{max-width:720px}.hambo-shop-intro h2{margin-top:0}.hambo-shop-intro>p:not(.eyebrow){color:var(--muted)}.hambo-disclosure{padding:1rem 1.2rem;border-left:3px solid var(--lime);background:var(--surface);font-size:.875rem;color:var(--muted);margin-block:1.5rem}.hambo-shop-results{color:var(--muted);font-size:.9rem}.hambo-buy{margin-top:1.25rem}.hambo-affiliate-label{display:block;margin-top:.5rem;font-size:.875rem;color:var(--muted)}.hambo-footer-disclosure{font-size:.875rem;color:var(--muted);margin-bottom:1.5rem}.hambo-shop .card-copy h3{margin-top:0}.hambo-shop .card-copy h3 a{color:var(--white);text-decoration:none}.prose .hambo-shop .button{color:var(--ink)}.hambo-shop .card-copy>p{max-width:none}.hambo-shop-pagination{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:2rem}.prose .hambo-shop-pagination .page-numbers.current{color:var(--ink)}.game-facts .hambo-disclosure{padding:.75rem 0;border:0;font-size:.875rem}.hambo-shop .library-filter label{flex:none;width:100%}.hambo-shop .library-filter{align-items:stretch}@media(min-width:600px){.hambo-shop .library-filter{align-items:flex-end}.hambo-shop .library-filter label{flex:0 1 340px;width:auto}}

.hambo-registration { max-width: 42rem; margin-inline: auto; }
.hambo-registration .gform_wrapper { margin-block: 2rem; }

/* Keep the membership link available in the expanded mobile navigation too. */
#primary-nav .header-join { display: inline-flex !important; margin-block: .5rem; }
@media (min-width: 800px) {
 #primary-nav, .menu-toggle:not([hidden]) ~ #primary-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1rem; }
 #primary-nav .header-join { margin-block: 0; }
}


@media (min-width: 800px) and (max-width: 1049px) {
 .header-inner { gap: 1rem; }
 #primary-nav .menu { column-gap: 1rem; }
}

/* Original Hambo H globe, sized independently of the wordmark. */
.brand{display:inline-flex;align-items:center;gap:.65rem;flex-shrink:0}
.brand-globe{width:44px;height:44px;object-fit:contain;flex-shrink:0}
@media(max-width:479px){.brand-globe{width:36px;height:36px}.brand{gap:.45rem}}


/* Console archive cards */
.hambo-console-directory{margin-block:2rem;text-align:left}.hambo-console-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1.25rem;padding:0;margin:1.5rem 0;list-style:none}.hambo-console-card{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.hambo-console-image{display:block;background:#e9efe7}.hambo-console-image img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}.hambo-console-copy{padding:1.25rem}.hambo-console-copy h3{font-size:1.15rem;margin:0 0 1rem}.hambo-console-copy h3 a{color:var(--white);text-decoration:none}.hambo-console-links{display:flex;flex-wrap:wrap;gap:.75rem 1rem;list-style:none;margin:0;padding:0}.hambo-console-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--lime);text-underline-offset:4px}.hambo-console-card a:focus-visible{outline:3px solid var(--lime);outline-offset:-3px}

.hambo-console-image{background:#fff}.hambo-console-image img{padding:1rem;box-sizing:border-box}
