/**
 * Hidden Object Game - styles
 * @copyright (c) 2026, Kevicar
 * @license GNU General Public License, version 2 (GPL-2.0)
 */
.hog-app, .hog-game, .hog-share, .hog-ix {
	--hog-bg: #14111d;
	--hog-bg2: #1d1828;
	--hog-card: #241e33;
	--hog-line: rgba(255, 255, 255, .09);
	--hog-text: #ece6f5;
	--hog-muted: #a99fbd;
	--hog-gold: #f2c55c;
	--hog-gold2: #ffdf8a;
	--hog-accent: #8f6bff;
	--hog-ok: #5fd39a;
	--hog-bad: #ff6b6b;
	--hog-radius: 14px;
	font-size: var(--hog-fs, 13px);
	line-height: 1.45;
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
	color: var(--hog-text);
	box-sizing: border-box;
}
.hog-app *, .hog-game *, .hog-share *, .hog-ix * { box-sizing: border-box; }
.hog-app a, .hog-game a { color: var(--hog-gold2); }
.hog-app a:hover { color: #fff; text-decoration: none; }
.hog-app a.username-coloured, .hog-game a.username-coloured { filter: brightness(1.6); }
.hog-app a.username { color: var(--hog-text); font-weight: 600; }

.hog-app {
	background: radial-gradient(1200px 500px at 20% -10%, #3a2a5e 0%, transparent 60%), radial-gradient(900px 400px at 110% 10%, #4a2a2a 0%, transparent 55%), var(--hog-bg);
	border-radius: var(--hog-radius);
	padding: 18px;
	margin: 10px 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.hog-app h2, .hog-app h3, .hog-app h4, .hog-game h2 { color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: normal; letter-spacing: .3px; margin: 0 0 6px; border: 0; text-transform: none; }
.hog-app h2 { font-size: 1.9em; }
.hog-app h3 { font-size: 1.35em; }
.hog-muted { color: var(--hog-muted); }

/* Sub navigation */
.hog-subnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--hog-line); }
.hog-brand { display: flex; align-items: center; gap: 8px; font-family: Georgia, serif; font-size: 1.35em; color: var(--hog-gold) !important; text-decoration: none !important; }
.hog-brand-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--hog-gold), #b9792c); box-shadow: 0 0 18px rgba(242, 197, 92, .45); font-size: 18px; }
.hog-subnav ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hog-subnav li a { display: block; padding: 7px 14px; border-radius: 30px; color: var(--hog-muted); text-decoration: none; transition: .2s; font-weight: 600; }
.hog-subnav li a:hover, .hog-subnav li a.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.hog-subnav li a.is-active { box-shadow: inset 0 0 0 1px rgba(242, 197, 92, .5); }

/* Hero */
.hog-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--hog-radius); background: linear-gradient(120deg, rgba(143, 107, 255, .22), rgba(242, 197, 92, .12)); border: 1px solid var(--hog-line); margin-bottom: 18px; }
.hog-hero p { margin: 0; color: var(--hog-muted); font-size: 1.08em; max-width: 560px; }
.hog-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hog-chip { background: rgba(0, 0, 0, .3); border: 1px solid var(--hog-line); border-radius: 12px; padding: 8px 14px; min-width: 92px; text-align: center; }
.hog-chip span { display: block; font-size: .78em; color: var(--hog-muted); text-transform: uppercase; letter-spacing: .6px; }
.hog-chip b { font-size: 1.35em; color: #fff; }
.hog-chip.is-gold b { color: var(--hog-gold); }
.hog-guest { color: var(--hog-muted); }

/* Layout */
.hog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.hog-section { margin-bottom: 18px; }
.hog-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.hog-subtitle { margin-top: 24px !important; }
.hog-panel { background: var(--hog-bg2); border: 1px solid var(--hog-line); border-radius: var(--hog-radius); padding: 14px 16px; margin-bottom: 14px; }
.hog-panel h3 { font-size: 1.15em; margin-bottom: 10px; }
.hog-empty { padding: 30px; text-align: center; color: var(--hog-muted); background: rgba(255, 255, 255, .03); border-radius: var(--hog-radius); border: 1px dashed var(--hog-line); }
.hog-link { font-weight: 600; font-size: .92em; }
.hog-link-small { font-size: .8em; opacity: .7; }

/* Tags, difficulty, stars */
.hog-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; background: rgba(242, 197, 92, .16); color: var(--hog-gold2); font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.hog-diff { margin: 4px 0; display: flex; align-items: center; gap: 3px; }
.hog-diff i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.hog-diff i.on { background: linear-gradient(135deg, #ff9d5c, #ff4f6b); box-shadow: 0 0 6px rgba(255, 90, 90, .6); }
.hog-diff small { margin-left: 6px; color: var(--hog-muted); }
.hog-stars i { font-style: normal; color: rgba(255, 255, 255, .18); font-size: 1.15em; }
.hog-stars i.on { color: var(--hog-gold); text-shadow: 0 0 8px rgba(242, 197, 92, .7); }
.hog-stars.small i { font-size: .95em; }

/* Buttons */
.hog-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 30px; border: 1px solid var(--hog-line); background: rgba(255, 255, 255, .07); color: #fff !important; font-weight: 700; font-size: .95em; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s; font-family: inherit; }
.hog-btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.hog-btn.is-primary { background: linear-gradient(135deg, var(--hog-gold), #d58b2d); color: #2a1a05 !important; border: 0; box-shadow: 0 6px 20px rgba(242, 167, 60, .35); }
.hog-btn.is-primary:hover { box-shadow: 0 8px 26px rgba(242, 167, 60, .55); }
.hog-btn.is-danger { background: linear-gradient(135deg, #ff6b6b, #c53d5a); border: 0; }
.hog-btn.is-big { padding: 13px 30px; font-size: 1.12em; }
.hog-btn.is-disabled { opacity: .6; cursor: default; }
.hog-btn.is-pulse { animation: hog-pulse 2.2s infinite; }
.hog-btn.is-hidden { display: none; }
@keyframes hog-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 197, 92, .55); } 50% { box-shadow: 0 0 0 12px rgba(242, 197, 92, 0); } }

/* Daily challenge */
.hog-daily { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 16px; padding: 14px; border-radius: var(--hog-radius); background: linear-gradient(135deg, #2c2140, #1d1828); border: 1px solid rgba(242, 197, 92, .35); box-shadow: 0 0 30px rgba(242, 197, 92, .08) inset; margin-bottom: 18px; align-items: center; }
.hog-daily-img { height: 170px; border-radius: 10px; background-size: cover; background-position: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.hog-daily-body h3 { margin: 6px 0 2px; font-size: 1.5em; }
.hog-daily-body p { margin: 4px 0 8px; color: var(--hog-muted); }
.hog-countdown-text b { color: var(--hog-gold2); font-variant-numeric: tabular-nums; }

/* Mini ranking */
.hog-mini-rank { list-style: none; margin: 0 0 8px; padding: 0; }
.hog-mini-rank li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hog-line); }
.hog-mini-rank li b { margin-left: auto; color: var(--hog-gold2); font-variant-numeric: tabular-nums; }
.hog-rank { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .85em; color: var(--hog-muted); }
.hog-rank.r1 { background: linear-gradient(135deg, #ffe08a, #d7a12b); color: #3a2600; }
.hog-rank.r2 { background: linear-gradient(135deg, #f1f1f1, #a9b0bb); color: #2b2f35; }
.hog-rank.r3 { background: linear-gradient(135deg, #f0b27a, #a4602d); color: #2d1606; }

/* Filters, tabs */
.hog-filters, .hog-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hog-filters button, .hog-tabs a { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--hog-line); background: transparent; color: var(--hog-muted); cursor: pointer; font-weight: 600; font-size: .9em; text-decoration: none; font-family: inherit; }
.hog-filters button.is-active, .hog-tabs a.is-active, .hog-filters button:hover, .hog-tabs a:hover { background: rgba(242, 197, 92, .15); color: #fff; border-color: rgba(242, 197, 92, .4); }

/* Scene cards */
.hog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hog-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hog-card { background: var(--hog-card); border-radius: var(--hog-radius); overflow: hidden; border: 1px solid var(--hog-line); transition: transform .25s, box-shadow .25s; }
.hog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(242, 197, 92, .35); }
.hog-card-img { position: relative; display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; text-decoration: none !important; }
.hog-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .55)); }
.hog-card-img .hog-tag { position: absolute; left: 10px; top: 10px; z-index: 1; background: rgba(0, 0, 0, .55); }
.hog-card-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 197, 92, .92); color: #2a1a05; font-size: 20px; opacity: 0; transform: scale(.7); transition: .25s; }
.hog-card:hover .hog-card-play { opacity: 1; transform: scale(1); }
.hog-card-body { padding: 10px 14px 12px; }
.hog-card-body h4 { font-size: 1.12em; margin: 0 0 2px; }
.hog-card-body h4 a { color: #fff !important; }
.hog-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; margin: 6px 0; color: var(--hog-muted); font-size: .86em; }
.hog-card-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hog-line); padding-top: 8px; margin-top: 6px; font-size: .9em; }
.hog-card-foot .hog-link { margin-left: auto; }
.hog-best { color: var(--hog-muted); }
.hog-best b { color: var(--hog-gold2); }

/* Tournaments */
.hog-tourney { display: block; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--hog-accent); text-decoration: none !important; color: var(--hog-text) !important; }
.hog-tourney.is-open { border-left-color: var(--hog-ok); }
.hog-tourney b { display: block; color: #fff; }
.hog-tourney small { display: block; color: var(--hog-muted); }
.hog-prize { color: var(--hog-gold2) !important; }
.hog-state { display: inline-block; font-size: .72em; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; padding: 2px 8px; border-radius: 12px; background: rgba(143, 107, 255, .25); color: #cbb8ff; }
.is-open .hog-state, .hog-state.is-open { background: rgba(95, 211, 154, .2); color: var(--hog-ok); }
.is-ended .hog-state { background: rgba(255, 255, 255, .1); color: var(--hog-muted); }
.hog-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hog-tcard { display: block; padding: 16px; border-radius: var(--hog-radius); background: var(--hog-card); border: 1px solid var(--hog-line); color: var(--hog-text) !important; text-decoration: none !important; transition: .25s; }
.hog-tcard:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.hog-tcard.is-open { border-color: rgba(95, 211, 154, .4); }
.hog-tcard h3 { margin-top: 8px; }
.hog-prizes { color: var(--hog-gold2); font-weight: 700; margin: 6px 0 0; }
.hog-tinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.hog-tinfo > div, .hog-statgrid > div { background: rgba(255, 255, 255, .05); border: 1px solid var(--hog-line); border-radius: 12px; padding: 10px 14px; }
.hog-tinfo span, .hog-statgrid span { display: block; color: var(--hog-muted); font-size: .8em; text-transform: uppercase; letter-spacing: .5px; }
.hog-tinfo b, .hog-statgrid b { font-size: 1.2em; color: #fff; }
.hog-tinfo .is-gold b, .hog-statgrid .is-gold b { color: var(--hog-gold); }
.hog-join { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hog-badge-ok { padding: 8px 16px; border-radius: 30px; background: rgba(95, 211, 154, .16); color: var(--hog-ok); font-weight: 700; }
.hog-notice { padding: 10px 14px; border-radius: 10px; background: rgba(242, 197, 92, .14); border: 1px solid rgba(242, 197, 92, .35); margin-bottom: 10px; }
.hog-desc { color: var(--hog-text); line-height: 1.5; margin: 8px 0; }

/* Season */
.hog-season { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px; border-radius: var(--hog-radius); background: linear-gradient(135deg, rgba(143, 107, 255, .22), rgba(0, 0, 0, .2)); border: 1px solid var(--hog-line); margin-bottom: 16px; }
.hog-prizes-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 12px; background: rgba(0, 0, 0, .3); text-align: center; }
.hog-prizes-box span { color: var(--hog-muted); text-transform: uppercase; font-size: .78em; }
.hog-prizes-box b { color: var(--hog-gold2); font-size: 1.1em; }

/* Tables */
.hog-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.hog-table th { text-align: left; color: var(--hog-muted); font-size: .8em; text-transform: uppercase; letter-spacing: .6px; padding: 4px 12px; font-weight: 700; }
.hog-table td { background: rgba(255, 255, 255, .045); padding: 10px 12px; color: var(--hog-text); }
.hog-table td:first-child { border-radius: 10px 0 0 10px; width: 46px; }
.hog-table td:last-child { border-radius: 0 10px 10px 0; }
.hog-table tr.is-me td { background: rgba(242, 197, 92, .14); }
.hog-table tr.is-failed td { opacity: .6; }
.hog-table-games td:first-child { width: auto; min-width: 160px; }
.hog-table b { color: #fff; }
.hog-result { padding: 2px 8px; border-radius: 10px; background: rgba(255, 107, 107, .15); color: var(--hog-bad); font-size: .85em; font-weight: 700; }
.hog-result.is-won { background: rgba(95, 211, 154, .15); color: var(--hog-ok); }
.hog-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hog-inline-form select { background: var(--hog-card); color: #fff; border: 1px solid var(--hog-line); border-radius: 8px; padding: 6px 10px; }
.hog-app .pagination { float: none; text-align: right; }

/* Podium */
.hog-podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 16px 0 20px; }
.hog-podium-step { width: 170px; text-align: center; padding: 12px 8px; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); border: 1px solid var(--hog-line); }
.hog-podium-step.p1 { order: 2; min-height: 150px; border-color: rgba(242, 197, 92, .55); box-shadow: 0 0 30px rgba(242, 197, 92, .2); }
.hog-podium-step.p2 { order: 1; min-height: 120px; }
.hog-podium-step.p3 { order: 3; min-height: 100px; }
.hog-medal { font-size: 2.2em; display: block; animation: hog-float 3s ease-in-out infinite; }
.hog-podium-name { margin: 4px 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hog-podium-step b { color: var(--hog-gold2); font-size: 1.2em; }
@keyframes hog-float { 50% { transform: translateY(-5px); } }

/* Profile */
.hog-profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.hog-avatar img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hog-gold); }
.hog-trophies { font-size: 1.2em; margin: 4px 0 0; }
.hog-statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hog-statgrid small { color: var(--hog-muted); font-size: .7em; }
.hog-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hog-badge { padding: 12px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--hog-line); filter: grayscale(1); opacity: .55; }
.hog-badge.is-earned { filter: none; opacity: 1; border-color: rgba(242, 197, 92, .45); background: linear-gradient(160deg, rgba(242, 197, 92, .16), rgba(255, 255, 255, .03)); }
.hog-badge-icon { display: block; font-size: 2em; }
.hog-badge b { display: block; color: #fff; }
.hog-badge small { color: var(--hog-muted); font-size: .8em; }
.hog-badge-bar { display: block; height: 4px; background: rgba(255, 255, 255, .1); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.hog-badge-bar span { display: block; height: 100%; background: var(--hog-gold); }
.hog-scene-progress { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.hog-sp { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--hog-text) !important; text-decoration: none !important; }
.hog-sp-img { aspect-ratio: 16 / 10; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 4px; }
.hog-sp small { color: var(--hog-gold2); }
.hog-howto ul { margin: 0; padding-left: 18px; color: var(--hog-muted); line-height: 1.6; }

/* ================================================================== */
/* GAME                                                                */
/* ================================================================== */
.hog-game {
	position: relative;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 140px);
	min-height: 560px;
	background: #0b0910;
	border-radius: var(--hog-radius);
	overflow: hidden;
	margin: 10px 0;
	box-shadow: 0 12px 50px rgba(0, 0, 0, .5);
	user-select: none;
	-webkit-user-select: none;
}
.hog-game.is-fullscreen, .hog-game:fullscreen { height: 100vh; border-radius: 0; margin: 0; }
.hog-topbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: linear-gradient(180deg, #221b30, #17121f); border-bottom: 1px solid var(--hog-line); z-index: 5; flex-wrap: wrap; }
.hog-title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 160px; }
.hog-title b { font-family: Georgia, serif; font-size: 1.15em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hog-title small { color: var(--hog-muted); }
.hog-icon-btn { position: relative; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--hog-line); background: rgba(255, 255, 255, .06); color: #fff !important; font-size: 17px; cursor: pointer; text-decoration: none !important; transition: .15s; font-family: inherit; }
.hog-icon-btn:hover { background: rgba(255, 255, 255, .14); }
.hog-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.hog-icon-btn.is-off { opacity: .45; text-decoration: line-through !important; }
.hog-hint-count { position: absolute; right: -6px; top: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--hog-gold); color: #2a1a05; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.hog-tools { display: flex; gap: 6px; align-items: center; }
.hog-volume { width: 80px; accent-color: var(--hog-gold); }
.hog-timer, .hog-score, .hog-progress { display: flex; flex-direction: column; align-items: center; padding: 2px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); min-width: 84px; position: relative; }
.hog-score span, .hog-progress span { font-size: .68em; text-transform: uppercase; letter-spacing: .6px; color: var(--hog-muted); }
.hog-score b, .hog-progress b, .hog-timer b { font-size: 1.3em; color: #fff; font-variant-numeric: tabular-nums; }
.hog-score.is-bump b { animation: hog-bump .4s; }
@keyframes hog-bump { 40% { transform: scale(1.25); color: var(--hog-gold2); } }
.hog-timer { flex-direction: row; gap: 6px; padding: 8px 12px 10px; }
.hog-timer-bar { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; }
.hog-timer-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--hog-ok), var(--hog-gold)); transition: width .3s linear; }
.hog-timer.is-low b { color: var(--hog-bad); animation: hog-blink 1s infinite; }
.hog-timer.is-low .hog-timer-bar span { background: var(--hog-bad); }
@keyframes hog-blink { 50% { opacity: .45; } }

.hog-stage { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hog-viewport { position: relative; flex: 1; overflow: hidden; background: #000; cursor: crosshair; touch-action: none; min-height: 0; }
.hog-game.is-panning .hog-viewport { cursor: grabbing; }
.hog-game.is-locked .hog-viewport { cursor: not-allowed; }
.hog-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hog-scene { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; image-rendering: auto; }
.hog-markers { position: absolute; inset: 0; pointer-events: none; }
.hog-fx, .hog-ambient { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hog-viewport.is-shake { animation: hog-shake .35s; }
@keyframes hog-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.hog-marker { position: absolute; border-radius: 50%; border: calc(3px * var(--hog-inv, 1)) solid var(--hog-ok); box-shadow: 0 0 calc(12px * var(--hog-inv, 1)) rgba(95, 211, 154, .8), inset 0 0 calc(12px * var(--hog-inv, 1)) rgba(95, 211, 154, .5); }
.hog-marker.is-new { animation: hog-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.hog-marker.is-missed { border-color: var(--hog-bad); border-style: dashed; box-shadow: 0 0 calc(14px * var(--hog-inv, 1)) rgba(255, 90, 90, .9); animation: hog-pop .6s; }
.hog-marker span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%) scale(var(--hog-inv, 1)); transform-origin: top center; margin-top: 4px; white-space: nowrap; background: rgba(160, 30, 40, .9); color: #fff; padding: 2px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; }
@keyframes hog-pop { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.hog-hint-circle { position: absolute; border-radius: 50%; border: calc(3px * var(--hog-inv, 1)) solid rgba(143, 211, 255, .95); background: radial-gradient(circle, rgba(143, 211, 255, .12), rgba(143, 211, 255, .03) 70%); box-shadow: 0 0 calc(24px * var(--hog-inv, 1)) rgba(143, 211, 255, .7); animation: hog-hint 1.4s ease-in-out infinite; transition: opacity 1s; }
.hog-hint-circle.is-fading { opacity: 0; }
@keyframes hog-hint { 50% { transform: scale(1.08); box-shadow: 0 0 calc(40px * var(--hog-inv, 1)) rgba(143, 211, 255, .9); } }

.hog-floater { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 22px; pointer-events: none; animation: hog-floatup 1.4s ease-out forwards; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); white-space: nowrap; z-index: 4; }
.hog-floater.is-gain { color: var(--hog-gold2); }
.hog-floater.is-loss { color: var(--hog-bad); font-size: 18px; }
.hog-floater.is-info { color: #cfe6ff; font-size: 15px; }
@keyframes hog-floatup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.hog-fly { position: fixed; z-index: 99999; transform: translate(0, 0); margin: -14px 0 0 -40px; padding: 4px 12px; border-radius: 20px; background: var(--hog-gold); color: #2a1a05; font-weight: 800; pointer-events: none; transition: transform .6s cubic-bezier(.5, -0.3, .5, 1.2), opacity .6s; font-family: "Segoe UI", system-ui, sans-serif; box-shadow: 0 0 20px rgba(242, 197, 92, .8); }

.hog-combo { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); pointer-events: none; z-index: 4; opacity: 0; }
.hog-combo b { display: block; font-family: Georgia, serif; font-size: 44px; color: var(--hog-gold2); text-shadow: 0 0 20px rgba(242, 167, 60, .9), 0 3px 0 #7a4b10; letter-spacing: 1px; }
.hog-combo.is-visible { animation: hog-combo 1.3s ease-out; }
@keyframes hog-combo { 0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-8deg); } 20% { opacity: 1; transform: translateX(-50%) scale(1.15) rotate(2deg); } 70% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-30px); } }

.hog-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.hog-zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 8, 16, .7); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(4px); }
.hog-zoom button:hover { background: rgba(242, 197, 92, .35); }
.hog-minimap { position: absolute; left: 12px; bottom: 12px; width: 150px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .35); background-size: cover; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; box-shadow: 0 4px 16px rgba(0, 0, 0, .6); }
.hog-game.is-zoomed .hog-minimap { opacity: .9; }
.hog-minimap-view { position: absolute; border: 2px solid var(--hog-gold); box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

.hog-objects { background: linear-gradient(0deg, #1a1424, #211a2e); border-top: 1px solid var(--hog-line); padding: 8px 10px; z-index: 5; }
.hog-objects-list { list-style: none; display: flex; gap: 8px; margin: 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.hog-obj { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 96px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--hog-line); text-align: center; transition: .3s; position: relative; }
.hog-obj img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.hog-obj-name { font-weight: 700; color: #fff; font-size: .95em; white-space: nowrap; }
.hog-obj.is-found { background: rgba(95, 211, 154, .1); border-color: rgba(95, 211, 154, .35); }
.hog-obj.is-found .hog-obj-name { color: var(--hog-muted); text-decoration: line-through; text-decoration-color: var(--hog-ok); text-decoration-thickness: 2px; }
.hog-obj.is-found img { opacity: .35; }
.hog-obj.is-found::after { content: "✔"; position: absolute; right: 5px; top: 3px; color: var(--hog-ok); font-weight: 900; }
.hog-obj.is-just-found { animation: hog-found .7s; }
@keyframes hog-found { 30% { transform: scale(1.18); box-shadow: 0 0 24px rgba(95, 211, 154, .8); } }

/* Overlays */
.hog-intro, .hog-end, .hog-confirm { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(40, 28, 64, .92), rgba(5, 4, 8, .96)); transition: opacity .4s; overflow: auto; }
.hog-intro.is-hidden { opacity: 0; pointer-events: none; }
.hog-end, .hog-confirm { opacity: 0; pointer-events: none; background: rgba(5, 4, 8, .78); backdrop-filter: blur(3px); }
.hog-end.is-visible, .hog-confirm.is-visible { opacity: 1; pointer-events: auto; }
.hog-intro-card, .hog-end-card, .hog-confirm-card { width: min(520px, 100%); padding: 26px 28px; border-radius: 20px; background: linear-gradient(160deg, #2e2342, #1a1424); border: 1px solid rgba(242, 197, 92, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 60px rgba(143, 107, 255, .15); text-align: center; }
.hog-intro-card h2 { font-size: 2em; margin: 10px 0 4px; }
.hog-intro-desc { color: var(--hog-muted); }
.hog-intro-card .hog-diff { justify-content: center; }
.hog-intro-rules { text-align: left; color: var(--hog-text); padding-left: 20px; line-height: 1.6; margin: 14px 0; }
.hog-intro-best b { color: var(--hog-gold2); }
.hog-intro-msg.is-error { color: var(--hog-bad); font-weight: 700; padding: 10px; border-radius: 10px; background: rgba(255, 107, 107, .12); }
.hog-intro-card .hog-link { display: block; margin-top: 12px; }
.hog-intro-card { animation: hog-rise .6s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes hog-rise { from { transform: translateY(30px) scale(.96); opacity: 0; } }

.hog-countdown { position: absolute; inset: 0; display: grid; place-items: center; z-index: 15; pointer-events: none; opacity: 0; background: rgba(0, 0, 0, .45); transition: opacity .4s; }
.hog-countdown.is-visible { opacity: 1; }
.hog-countdown b { font-family: Georgia, serif; font-size: 120px; color: #fff; text-shadow: 0 0 40px rgba(242, 197, 92, .9); animation: hog-count .9s ease-out; }
@keyframes hog-count { 0% { transform: scale(2.4); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.85); opacity: .2; } }
.hog-loader { position: absolute; inset: 0; z-index: 25; display: none; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(5, 4, 8, .85); color: var(--hog-muted); }
.hog-loader.is-visible { display: flex; }
.hog-loader span { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--hog-gold); animation: hog-spin .9s linear infinite; }
@keyframes hog-spin { to { transform: rotate(360deg); } }
.hog-lock { position: absolute; inset: 0; z-index: 12; display: none; place-items: center; background: rgba(120, 10, 20, .35); pointer-events: none; }
.hog-game.is-locked .hog-lock { display: grid; }
.hog-lock div { padding: 14px 24px; border-radius: 14px; background: rgba(20, 5, 8, .85); border: 1px solid var(--hog-bad); text-align: center; }
.hog-lock b { display: block; color: #fff; }
.hog-lock-time { font-size: 40px; font-weight: 900; color: var(--hog-bad); }

.hog-end-title { font-size: 2.2em !important; margin-bottom: 4px !important; }
.hog-end.is-won .hog-end-title { color: var(--hog-gold2) !important; text-shadow: 0 0 22px rgba(242, 197, 92, .6); }
.hog-end-stars { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.hog-star { font-style: normal; font-size: 54px; color: rgba(255, 255, 255, .12); transition: .3s; }
.hog-star.is-on { color: var(--hog-gold); text-shadow: 0 0 24px rgba(242, 197, 92, .9); animation: hog-star .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes hog-star { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
.hog-end-score { font-size: 3em; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.hog-end-record { display: none; margin: 4px auto; padding: 4px 14px; border-radius: 20px; background: linear-gradient(135deg, #ff6b8b, #8f6bff); color: #fff; font-weight: 800; width: max-content; animation: hog-pulse 1.6s infinite; }
.hog-end-record.is-visible { display: block; }
.hog-end-points { color: var(--hog-gold2); font-weight: 800; font-size: 1.15em; min-height: 1.2em; margin: 6px 0; }
.hog-end-rows { margin: 10px 0 16px; text-align: left; }
.hog-end-row { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid var(--hog-line); }
.hog-end-row span { color: var(--hog-muted); }
.hog-end-row.is-plus b { color: var(--hog-ok); }
.hog-end-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hog-confirm-card p { font-size: 1.15em; margin: 0 0 16px; }
.hog-review-back { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; display: none; }
.hog-game.is-reviewing .hog-review-back { display: inline-flex; }
.hog-toast { position: absolute; left: 50%; top: 70px; transform: translate(-50%, -20px); z-index: 30; padding: 10px 18px; border-radius: 12px; background: rgba(20, 16, 30, .95); border: 1px solid var(--hog-line); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: .3s; max-width: 90%; text-align: center; }
.hog-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.hog-toast.is-error { border-color: var(--hog-bad); color: #ffd0d0; }
.hog-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100000; }

/* Responsive */
@media (max-width: 1000px) {
	.hog-layout { grid-template-columns: 1fr; }
	.hog-daily { grid-template-columns: 200px minmax(0, 1fr); }
	.hog-daily .hog-mini-rank { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.hog-app { padding: 12px; border-radius: 0; }
	.hog-daily { grid-template-columns: 1fr; }
	.hog-daily-img { height: 150px; }
	.hog-hide-sm { display: none; }
	.hog-podium-step { width: 31%; }
	.hog-game { height: calc(100vh - 80px); min-height: 460px; border-radius: 0; }
	.hog-topbar { gap: 6px; padding: 6px; }
	.hog-title { flex-basis: 100%; order: -1; }
	.hog-volume, .hog-progress span, .hog-score span { display: none; }
	.hog-timer, .hog-score, .hog-progress { min-width: 0; padding: 6px 8px 8px; }
	.hog-score b, .hog-progress b, .hog-timer b { font-size: 1.05em; }
	.hog-icon-btn { min-width: 34px; height: 34px; font-size: 15px; }
	.hog-obj { min-width: 80px; padding: 6px 8px; }
	.hog-obj img { width: 40px; height: 40px; }
	.hog-combo b { font-size: 32px; }
	.hog-minimap { width: 100px; }
	.hog-intro-card, .hog-end-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.hog-app *, .hog-game * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ */
/* 1.1: share block                                                   */
/* ------------------------------------------------------------------ */
.hog-share { position: relative; margin: 16px 0 6px; padding: 18px 20px; border-radius: var(--hog-radius); background: linear-gradient(135deg, #2a2140 0%, #1b1626 60%, #2b1d22 100%); border: 1px solid var(--hog-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); color: var(--hog-text); transition: box-shadow .4s, border-color .4s; }
.hog-app .hog-share { margin-top: 18px; }
.hog-share.is-highlight { border-color: rgba(242, 197, 92, .45); }
.hog-share.is-pulse { animation: hog-pulse 1.4s 1; }
.hog-share-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hog-share-icon { font-size: 2em; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 197, 92, .14); flex: 0 0 auto; animation: hog-float 3s ease-in-out infinite; }
.hog-share h3 { margin: 0 0 2px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 1.3em; border: 0; text-transform: none; }
.hog-share-msg { margin: 0; color: var(--hog-muted); font-size: .95em; }
.hog-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hog-share-btn { --c: #555; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 30px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; font: 600 .9em/1 inherit; font-family: inherit; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.hog-share-btn:hover, .hog-share-btn:focus-visible { transform: translateY(-2px); background: var(--c); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); outline: none; }
.hog-share-glyph { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 16px; }
.hog-share-glyph .icon { font-size: 17px; color: #fff; }
.hog-share-glyph b { font-size: 15px; line-height: 1; }
.hog-share-btn.is-whatsapp { --c: #25d366; }
.hog-share-btn.is-facebook { --c: #1877f2; }
.hog-share-btn.is-x { --c: #000; }
.hog-share-btn.is-x .hog-share-glyph { border: 1px solid rgba(255, 255, 255, .25); }
.hog-share-btn.is-telegram { --c: #229ed9; }
.hog-share-btn.is-messenger { --c: #a334fa; }
.hog-share-btn.is-reddit { --c: #ff4500; }
.hog-share-btn.is-linkedin { --c: #0a66c2; }
.hog-share-btn.is-pinterest { --c: #e60023; }
.hog-share-btn.is-bluesky { --c: #1185fe; }
.hog-share-btn.is-sms { --c: #34c759; }
.hog-share-btn.is-email { --c: #8f6bff; }
.hog-share-btn.is-copy { --c: #6b7280; }
.hog-share-btn.is-native { --c: #c08a2a; }
.hog-share-copied { position: absolute; right: 18px; top: 16px; padding: 5px 12px; border-radius: 20px; background: var(--hog-ok); color: #0d2a1c; font-weight: 800; font-size: .85em; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.hog-share-copied.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* 1.1: guest trial                                                   */
/* ------------------------------------------------------------------ */
.hog-guest-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 360px; }
.hog-guest-cta p { margin: 0; color: var(--hog-text); }
.hog-card-trial { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 20px; background: rgba(95, 211, 154, .9); color: #0d2a1c; font-weight: 800; font-size: .72em; letter-spacing: .4px; text-transform: uppercase; }
.hog-card-img { position: relative; }
.hog-trial-note { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: rgba(95, 211, 154, .12); border: 1px solid rgba(95, 211, 154, .35); color: var(--hog-text); font-size: .92em; }
.hog-trial-note b { color: var(--hog-ok); }
.hog-end-trial { margin: 12px 0 6px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(143, 107, 255, .25), rgba(242, 197, 92, .18)); border: 1px solid rgba(242, 197, 92, .35); }
.hog-end-trial b { display: block; color: #fff; font-size: 1.1em; }
.hog-end-trial p { margin: 4px 0 10px; color: var(--hog-text); font-size: .92em; }
.hog-end-trial .hog-link { display: block; margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* 1.1: badges                                                        */
/* ------------------------------------------------------------------ */
.hog-badge-group { margin-bottom: 18px; }
.hog-badge-group h4 { color: var(--hog-gold2); font-size: 1.05em; margin: 0 0 8px; }
.hog-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hog-badge-icon { width: 58px; height: 58px; display: grid !important; place-items: center; border-radius: 50%; margin: 4px auto 6px; font-size: 1.8em !important; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 3px var(--tier, #8a6a4a); }
.hog-badge.tier-1, .hog-badge-pop.tier-1, .hog-goal-icon.tier-1 { --tier: #c88a4b; }
.hog-badge.tier-2, .hog-badge-pop.tier-2, .hog-goal-icon.tier-2 { --tier: #c8d0dc; }
.hog-badge.tier-3, .hog-badge-pop.tier-3, .hog-goal-icon.tier-3 { --tier: #f2c55c; }
.hog-badge.tier-4, .hog-badge-pop.tier-4, .hog-goal-icon.tier-4 { --tier: #b58cff; }
.hog-badge.is-earned .hog-badge-icon { box-shadow: inset 0 0 0 3px var(--tier), 0 0 18px color-mix(in srgb, var(--tier) 55%, transparent); }
.hog-badge.is-earned.tier-4 .hog-badge-icon { animation: hog-glow 2.4s ease-in-out infinite; }
@keyframes hog-glow { 50% { box-shadow: inset 0 0 0 3px var(--tier), 0 0 28px var(--tier); } }
.hog-badge-tier { position: absolute; top: 6px; right: 8px; font-size: .62em; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--tier); }
.hog-badge-date, .hog-badge-progress { font-size: .74em; color: var(--hog-muted); margin-top: 4px; }
.hog-badge.is-earned .hog-badge-date { color: var(--hog-ok); }
.hog-badge-reward { font-size: .72em; color: var(--hog-gold); font-weight: 700; }
.hog-badge-bar { width: 100%; }
.hog-count { font-family: "Segoe UI", system-ui, sans-serif; font-size: .55em; color: var(--hog-muted); vertical-align: middle; padding: 2px 8px; border-radius: 12px; background: rgba(255, 255, 255, .07); }

.hog-goal { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hog-line); }
.hog-goal:last-of-type { border-bottom: 0; }
.hog-goal-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 1.3em; box-shadow: inset 0 0 0 2px var(--tier); background: rgba(255, 255, 255, .05); }
.hog-goal-body { flex: 1; min-width: 0; }
.hog-goal-body b { display: block; color: #fff; font-size: .92em; }
.hog-goal-body small { display: block; color: var(--hog-muted); font-size: .78em; }
.hog-bar { display: block; height: 6px; margin: 5px 0 2px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hog-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--hog-gold), #ff9b6b); }
.hog-goal-left { text-align: right; }

.hog-end-badges:empty { display: none; }
.hog-end-badges { margin: 10px 0 4px; display: grid; gap: 6px; }
.hog-end-badges-title { font-weight: 800; color: var(--hog-gold2); text-transform: uppercase; letter-spacing: .8px; font-size: .8em; }
.hog-badge-pop { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--tier) 60%, transparent); animation: hog-badge-in .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.hog-badge-pop-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 1.5em; box-shadow: inset 0 0 0 3px var(--tier), 0 0 16px color-mix(in srgb, var(--tier) 60%, transparent); }
.hog-badge-pop-text b { display: block; color: #fff; }
.hog-badge-pop-text small { color: var(--hog-muted); font-size: .82em; }
@keyframes hog-badge-in { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
.hog-badge-modal { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(10, 8, 16, .7); backdrop-filter: blur(3px); padding: 16px; }
.hog-badge-modal.is-visible { display: grid; }
.hog-badge-modal-card { width: min(440px, 100%); padding: 22px; border-radius: 18px; background: var(--hog-bg2); border: 1px solid rgba(242, 197, 92, .4); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); display: grid; gap: 10px; text-align: center; animation: hog-rise .5s both; }
.hog-badge-modal-card .hog-btn { justify-self: center; margin-top: 6px; }

/* ------------------------------------------------------------------ */
/* 1.1: large scene catalogues                                        */
/* ------------------------------------------------------------------ */
.hog-search { flex: 1 1 180px; max-width: 260px; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--hog-line); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.hog-search::placeholder { color: var(--hog-muted); }
.hog-search:focus { outline: none; border-color: rgba(242, 197, 92, .5); }
.hog-more-wrap { text-align: center; margin-top: 14px; }
.hog-card-img, .hog-sp-img { background-color: #2a2338; }
.hog-app [hidden], .hog-share [hidden], .hog-card[hidden] { display: none !important; }

@media (max-width: 700px) {
	.hog-share { padding: 14px; }
	.hog-share-label { display: none; }
	.hog-share-btn { padding: 6px; }
	.hog-share-glyph { width: 40px; height: 40px; }
	.hog-search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hog-share-icon, .hog-badge.is-earned.tier-4 .hog-badge-icon, .hog-badge-pop { animation: none; }
}

/* Lobby zones (block placement chosen in the ACP) */
.hog-layout.is-wide { grid-template-columns: minmax(0, 1fr); }
.hog-zone-top > section, .hog-zone-bottom > section { margin-bottom: 18px; }
.hog-zone-bottom > .hog-share { margin-top: 0; }
.hog-side .hog-daily { grid-template-columns: 1fr; gap: 10px; }
.hog-side .hog-daily-img { height: 140px; }
.hog-side .hog-share-label { display: none; }
.hog-side .hog-share-btn { padding: 4px; }
.hog-zone-top .hog-panel, .hog-zone-bottom .hog-panel, .hog-main .hog-panel { margin-bottom: 18px; }

/* 1.3: pages of thumbnails and random game */
.hog-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.hog-pager button { min-width: 2.6em; height: 2.6em; padding: 0 .7em; border-radius: 1.3em; border: 1px solid var(--hog-line); background: rgba(255, 255, 255, .06); color: var(--hog-text); font: inherit; font-weight: 700; cursor: pointer; transition: .15s; }
.hog-pager button:hover:not(:disabled) { border-color: rgba(242, 197, 92, .6); color: #fff; }
.hog-pager button.is-current { background: linear-gradient(135deg, var(--hog-gold), #d99a3a); border-color: transparent; color: #2a1a05; }
.hog-pager button:disabled { opacity: .35; cursor: default; }
.hog-pager button.is-arrow { font-size: 1.2em; min-width: 2.2em; height: 2.2em; }
.hog-pager-gap { color: var(--hog-muted); padding: 0 2px; }
.hog-btn.is-random { flex: 0 0 auto; }
.hog-btn.is-random.is-rolling { animation: hog-roll .45s ease-in-out; }
@keyframes hog-roll { 0% { transform: rotate(0); } 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(8deg) scale(1.06); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .hog-btn.is-random.is-rolling { animation: none; } }
.hog-section-tools { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; justify-content: flex-end; flex-wrap: wrap; }
.hog-section-tools .hog-search { max-width: 280px; }
@media (max-width: 700px) { .hog-section-tools { justify-content: stretch; } .hog-section-tools .hog-search { max-width: none; } }

/* ---------------------------------------------------------------- 1.4.0 */
/* Silhouettes */
.hog-obj img.is-silhouette { filter: brightness(0) drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 0 5px rgba(242, 197, 92, .35)); }
.hog-obj.is-sil .hog-obj-name { display: none; }
.hog-obj.is-sil.is-found .hog-obj-name { display: block; }
.hog-obj.is-sil.is-found img.is-silhouette { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); opacity: .5; }

/* End screen: duel, run, rating */
.hog-end-extra:empty { display: none; }
.hog-end-extra { margin: -6px 0 14px; display: grid; gap: 8px; }
.hog-end-duel, .hog-end-run { padding: 8px 12px; border-radius: 10px; background: rgba(143, 107, 255, .16); border: 1px solid rgba(143, 107, 255, .35); font-weight: 700; }
.hog-end-duel.is-won, .hog-end-run.is-done { background: rgba(95, 211, 154, .14); border-color: rgba(95, 211, 154, .4); }
.hog-end-duel.is-lost { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); }
.hog-end-vote { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--hog-muted); }
.hog-rate button { background: none; border: 0; padding: 0 2px; font-size: 1.7em; line-height: 1; color: rgba(255, 255, 255, .22); cursor: pointer; transition: transform .15s, color .15s; }
.hog-rate button:hover, .hog-rate button:hover ~ button { transform: scale(1.12); }
.hog-rate button.is-on { color: var(--hog-gold); text-shadow: 0 0 8px rgba(242, 197, 92, .6); }
.hog-fav { border: 1px solid var(--hog-line); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 20px; padding: 5px 12px; cursor: pointer; font-weight: 700; font-family: inherit; }
.hog-fav.is-on { color: #ff7a9a; border-color: rgba(255, 122, 154, .5); background: rgba(255, 122, 154, .12); }

/* Lobby cards: new, event, favourite, rating */
.hog-card { position: relative; }
.hog-card-new { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 9px; border-radius: 20px; background: linear-gradient(135deg, #5fd39a, #2fa36e); color: #062a17; font-size: .72em; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; box-shadow: 0 2px 10px rgba(47, 163, 110, .5); }
.hog-card-event { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-size: 1.5em; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.hog-card-fav { position: absolute; right: 10px; top: 0; transform: translateY(calc(16 / 10 * 0px)); z-index: 2; margin-top: 38px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.1em; line-height: 32px; cursor: pointer; transition: transform .15s, background .2s; }
.hog-card-fav:hover { transform: scale(1.12); }
.hog-card-fav.is-on { color: #ff7a9a; background: rgba(40, 0, 15, .7); }
.hog-meta .hog-rating { color: var(--hog-gold2); font-weight: 700; }
.hog-filters button.is-fav.is-active { background: rgba(255, 122, 154, .18); border-color: rgba(255, 122, 154, .5); }
.hog-filters button.is-new.is-active { background: rgba(95, 211, 154, .16); border-color: rgba(95, 211, 154, .5); }

/* Seasonal event banner */
.hog-event-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--hog-radius); background: linear-gradient(120deg, #3a2350, #241e33); border: 1px solid rgba(242, 197, 92, .35); }
.hog-event-banner.is-christmas { background: linear-gradient(120deg, #4a1420, #1b3a28); border-color: rgba(255, 215, 120, .45); }
.hog-event-banner.is-easter { background: linear-gradient(120deg, #3d3a6e, #2a5a4a); border-color: rgba(190, 240, 170, .45); }
.hog-event-banner.is-halloween { background: linear-gradient(120deg, #4a2408, #1c1225); border-color: rgba(255, 150, 50, .5); }
.hog-event-icon { font-size: 2.4em; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.hog-event-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hog-event-text > b { font-size: 1.25em; color: #fff; }
.hog-event-text span { color: var(--hog-muted); }

/* Nav counter */
.hog-dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--hog-bad); color: #fff; font-size: .75em; font-weight: 800; text-align: center; line-height: 18px; }

/* Duels */
.hog-duel-form { padding: 14px; border-radius: var(--hog-radius); background: var(--hog-card); border: 1px solid var(--hog-line); margin-bottom: 18px; }
.hog-duel-form .hog-subtitle { margin-top: 0; }
.hog-duel-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.hog-duel-fields label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; }
.hog-duel-fields label.is-wide { grid-column: 1 / -1; }
.hog-duel-fields input, .hog-duel-fields select { width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--hog-line); background: var(--hog-bg2); color: var(--hog-text); font-family: inherit; font-size: 1em; }
.hog-duel-user { display: flex; flex-direction: column; gap: 3px; }
.hog-duel-user a { font-weight: 400; font-size: .9em; }
.hog-duel-fields small { font-weight: 400; }
.hog-duel-list { display: grid; gap: 10px; }
.hog-duel { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: var(--hog-card); border: 1px solid var(--hog-line); }
.hog-duel.is-won { border-color: rgba(95, 211, 154, .45); }
.hog-duel.is-lost { border-color: rgba(255, 107, 107, .35); }
.hog-duel-img { height: 72px; border-radius: 8px; background-size: cover; background-position: center; }
.hog-duel-body p { margin: 2px 0; }
.hog-duel-msg { font-style: italic; color: var(--hog-muted); }
.hog-duel-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.hog-duel-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.hog-notice.is-error { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .4); }

/* Against the clock */
.hog-rush-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; border-radius: var(--hog-radius); background: linear-gradient(135deg, #2c2140, #1d1828); border: 1px solid rgba(242, 197, 92, .35); margin-bottom: 16px; }
.hog-rush-hero p { margin: 0 0 8px; }
.hog-rush-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; }

/* Board index block */
.hog-ix { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, #2c2140, #1d1828); border: 1px solid rgba(242, 197, 92, .35); color: var(--hog-text); --hog-bg: #14111d; --hog-bg2: #1d1828; --hog-card: #241e33; --hog-line: rgba(255, 255, 255, .09); --hog-text: #ece6f5; --hog-muted: #a99fbd; --hog-gold: #f2c55c; --hog-gold2: #ffdf8a; --hog-accent: #8f6bff; --hog-ok: #5fd39a; --hog-bad: #ff6b6b; --hog-radius: 14px; }
.hog-ix-img { display: block; height: 84px; border-radius: 8px; background-size: cover; background-position: center; }
.hog-ix-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hog-ix-tag { font-size: .75em; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--hog-gold2); }
.hog-ix-title { font-size: 1.3em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hog-ix-meta { color: var(--hog-muted); font-size: .9em; }
.hog-ix-top { list-style: none; margin: 0; padding: 0; font-size: .9em; }
.hog-ix-top li { display: flex; gap: 6px; align-items: center; padding: 2px 0; }
.hog-ix-top li b { margin-left: auto; padding-left: 8px; color: var(--hog-gold2); }
.hog-ix a.username { color: var(--hog-text); }
.hog-ix .hog-rank { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: .75em; font-weight: 800; background: rgba(255, 255, 255, .12); }
.hog-ix .hog-rank.r1 { background: var(--hog-gold); color: #2a1a05; }

@media (max-width: 700px) {
	.hog-duel { grid-template-columns: 80px minmax(0, 1fr); }
	.hog-duel-actions { grid-column: 1 / -1; justify-content: stretch; }
	.hog-rush-hero { grid-template-columns: 1fr; }
	.hog-ix { grid-template-columns: 90px minmax(0, 1fr); }
	.hog-ix-top { display: none; }
	.hog-ix-action { grid-column: 1 / -1; }
	.hog-ix-action .hog-btn { width: 100%; }
	.hog-event-banner { flex-wrap: wrap; }
}
