/**
 * Mobilversjon – m.spillsidene.no
 * Maksimerer spillflate, minimerer meny og chrome
 */

/* === ALLTID HAMBURGERMENY (skjul desktop-nav) === */
body.mobile-site .headerNav {
	display: none !important;
}
body.mobile-site .logo-mobile,
body.mobile-site .barsBtn {
	display: flex !important;
}

/* === KOMPAKT HEADER === */
body.mobile-site .header {
	margin-bottom: 0;
}
body.mobile-site .headerInner {
	min-height: 44px !important;
	padding: 6px 10px !important;
}
body.mobile-site .logo-main {
	width: 100px !important;
	max-height: 32px;
}
body.mobile-site .barsBtn {
	padding: 8px;
	font-size: 18px;
}

/* === SKJUL SØKEBAR OG TEMAVELGER PÅ FORSIDEN === */
body.mobile-site .homeSearchBar {
	display: none;
}

/* === FLERE SPILL I GRID, TETTERE LAYOUT === */
body.mobile-site .game-block-outer {
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 4px;
	grid-auto-rows: minmax(72px, auto);
	padding: 6px 0;
}
body.mobile-site .gameBox-single {
	border-radius: 12px;
	border-width: 2px;
}
body.mobile-site .game-single-thumb {
	border-radius: 10px;
}
body.mobile-site .game-big-box {
	grid-column-end: span 2;
	grid-row-end: span 2;
}
body.mobile-site .game-name {
	font-size: 10px;
}

/* === KOMPAKTE SEKSJONSOVERSKRIFTER === */
body.mobile-site .heading-block {
	padding: 8px 14px;
	margin-bottom: 4px;
}
body.mobile-site .heading-block h2 {
	font-size: 16px;
}

/* === "SE DETTE!"-LISTE – KOMPAKT === */
body.mobile-site .game-block-outer2 {
	grid-template-columns: 1fr;
	gap: 6px;
}
body.mobile-site .gameBox-single1 {
	width: 100%;
	max-width: none;
	flex-direction: row;
}
body.mobile-site .gamesingle1Thumb {
	width: 56px;
	height: 56px;
	margin-right: 10px;
}
body.mobile-site .gameBox-single1 .name {
	font-size: 13px;
}
body.mobile-site .gameBox-single1 .cat {
	font-size: 11px;
	padding: 2px 6px;
}

/* === SKJUL BLOGG-SEKSJON ELLER GJØR DEN MINIMAL === */
body.mobile-site .blogcont {
	padding: 12px 0;
}
body.mobile-site .blogcont .heading-block {
	margin-bottom: 8px;
}
body.mobile-site .blogSlider .blog-slide {
	padding: 0 4px;
}

/* === MINIMAL FOOTER-SEKSJON (OM OSS-BOKSER) === */
body.mobile-site .aboutCont,
body.mobile-site .specSec1 {
	display: none;
}

/* === KOMPAKT FOOTER === */
body.mobile-site .footer {
	padding: 12px 0;
}
body.mobile-site .footer .inner .row {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}
body.mobile-site .footlinksflex {
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
body.mobile-site .footer p {
	font-size: 12px;
}

/* === SPILLSIDE – KUN SPILL + FULLSKJERM PÅ FØRSTE SKJERM === */
body.mobile-site .playPage .container {
	max-width: 100%;
	padding-left: 6px;
	padding-right: 6px;
}
body.mobile-site .playPage .row {
	flex-direction: column;
}
body.mobile-site .playPage .col-lg-10,
body.mobile-site .playPage .col-lg-2 {
	max-width: 100%;
	flex: 0 0 100%;
}
body.mobile-site .playPage .game-col-3 {
	order: 2;
}
/* Viktig: på mobil SKRUR VI AV flex på spillpanelet (custom_styles setter flex for desktop).
   Uten dette deler spillet plass med beskrivelse osv. og blir bare ~20 % av skjermen. */
body.mobile-site .playPage .row > div:first-child .midGmaePanel:first-of-type {
	display: block;
	max-height: none;
}
/* Spillområdet får fast maks-høyde – da fyller spill + fullskjerm-bar viewport, resten under (scroll) */
body.mobile-site .playPage .row > div:first-child .midGmaePanel:first-of-type .gameframeouter {
	max-height: calc(100vh - 160px);
}
body.mobile-site .playPage .game-frame {
	height: 100% !important;
	min-height: 120px !important;
	max-height: calc(100vh - 160px);
}
body.mobile-site .gameControlBar {
	padding: 8px 12px;
	margin: 6px 0;
	flex-wrap: wrap;
}
/* Fullskjerm-knapp før tittelen på mobil */
body.mobile-site .gameControlBar .row {
	display: flex;
	flex-direction: column;
}
body.mobile-site .gameControlBar .row .col-lg-2 {
	order: -1;
}
body.mobile-site .gameControlBar .row .col-lg-10 {
	order: 0;
}
body.mobile-site .single-game-name {
	font-size: 16px;
}
/* Fullskjerm som tydelig knapp med teksten "Fullskjerm" – ikke sirkel */
body.mobile-site .gameControlBar .fullscreenBtn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-width: 0;
	min-height: 44px;
	padding: 12px 20px;
	font-size: 16px !important;
	font-weight: 600;
	color: #fff !important;
	background: var(--first) !important;
	border: 2px solid var(--first) !important;
	border-radius: 10px !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	user-select: none;
	box-sizing: border-box;
}
body.mobile-site .gameControlBar .fullscreenBtn:hover {
	background: rgba(142, 145, 205, 0.9) !important;
	border-color: var(--first) !important;
	color: #fff !important;
}

/* === KOLLAPSERBAR BESKRIVELSE PÅ SPILLSIDE === */
body.mobile-site .gameDescCont {
	max-height: 120px;
	overflow: hidden;
	position: relative;
}
body.mobile-site .gameDescCont.expanded {
	max-height: none;
}
body.mobile-site .gameDescCont .head {
	font-size: 14px;
}
body.mobile-site .gameDescCont p {
	font-size: 12px;
	line-height: 1.4;
}
body.mobile-site .gameDescToggle {
	display: block !important;
	background: var(--first);
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	cursor: pointer;
	margin-top: 8px;
	width: 100%;
}

/* === KOMPAKT REKLAME-OMRÅDER === */
body.mobile-site .midGmaePanel {
	padding: 8px;
	margin: 6px 0;
}
body.mobile-site .playPage .game-col-3 .game-block-outer {
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 4px;
}
/* Skjul lang "Om spillsidene"-tekst på spillside */
body.mobile-site .playPage .about-site-block {
	display: none;
}

/* === KATEGORISIDE === */
body.mobile-site .homeMainBody .container {
	padding-left: 8px;
	padding-right: 8px;
}

/* === MINDRE MARGINER GENERELT === */
body.mobile-site .homeMainBody {
	padding-top: 4px;
}
body.mobile-site .container {
	padding-left: 8px;
	padding-right: 8px;
}

/* === SØK I MOBILMENY === */
body.mobile-site .mobNavSearch {
	padding: 0 16px 12px;
}
body.mobile-site .mobNavSearch .searchTop {
	background: rgba(255,255,255,0.15);
	color: #fff;
}
body.mobile-site .mobNavSearch .searchTop::placeholder {
	color: rgba(255,255,255,0.6);
}

/* === TEMAVELGER I MOBILMENY === */
body.mobile-site .mobNavTheme {
	padding: 0 16px 12px;
}
body.mobile-site .mobNavThemeLabel {
	font-size: 12px;
	opacity: 0.85;
	margin: 0 0 8px 0;
	color: #fff;
}
body.mobile-site .mobNavTheme .themeColors {
	gap: 8px;
	flex-wrap: wrap;
}
body.mobile-site .mobNavTheme .themeColorBtn {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,0.3);
	background: transparent;
}
body.mobile-site .mobNavTheme .themeColorBtn span {
	display: block;
	width: 100%;
	height: 100%;
}
body.mobile-site .mobNavTheme .themeColorBtn.active {
	border-color: #fff;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}
