/* First to Find the Pups */
.pup-hunt-pup {
	all: unset;
	display: inline-block;
	width: 64px;
	height: 64px;
	cursor: pointer;
	line-height: 0;
	transition: transform .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.pup-hunt-pup img { width: 64px !important; height: 64px !important; max-width: none !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.pup-hunt-pup:hover, .pup-hunt-pup:focus-visible { transform: rotate(-8deg) scale(1.08); }
.pup-hunt-pup:focus-visible { outline: 3px solid #f2913d; outline-offset: 3px; border-radius: 50%; }
.pup-hunt--float { float: right; margin: 0 0 8px 14px; }
.pup-hunt--near-img { display: block; margin: 6px 0 12px auto; }
.pup-hunt--sidebar { display: block; margin: 0 auto 12px; }
.pup-hunt--end { display: block; margin: 12px 0 0 auto; }

.pup-hunt-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: inherit; }
.pup-hunt-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 35, .6); }
.pup-hunt-modal__box { position: relative; background: #fff; color: #1b2a3a; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 14px; padding: 28px 24px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.35); text-align: center; border-top: 6px solid #f2913d; }
.pup-hunt-modal__x { all: unset; position: absolute; top: 8px; right: 12px; font-size: 28px; line-height: 1; cursor: pointer; color: #5b6b7c; padding: 4px; }
.pup-hunt-modal__img { width: 96px; height: 96px; margin: 0 auto 6px; display: block; }
.pup-hunt-modal h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; color: #1b3350; }
.pup-hunt-modal__lead { margin: 0 0 16px; color: #4a5b6d; }
.pup-hunt-form { text-align: left; }
.pup-hunt-form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 12px; color: #1b3350; }
.pup-hunt-form input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; font-size: 16px; border: 1px solid #b9c6d4; border-radius: 8px; background: #fff; color: #1b2a3a; }
.pup-hunt-form input:focus { outline: 2px solid #f2913d; border-color: #f2913d; }
.pup-hunt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pup-hunt-modal__small { font-size: 13px; color: #5b6b7c; margin: 0 0 14px; }
.pup-hunt-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; background: #f2913d; color: #fff !important; border: 0; border-radius: 8px; padding: 12px 16px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.pup-hunt-btn:hover { background: #d97a28; }
.pup-hunt-btn[disabled] { opacity: .6; cursor: wait; }
.pup-hunt-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: #b23b1e; text-align: center; }
.pup-hunt-place { font-size: 17px; text-align: center; }

/* Results page */
.pup-results { --ph-blue: #1b3350; --ph-blue2: #24476d; --ph-orange: #f2913d; --ph-ink: #1b2a3a; --ph-muted: #5b6b7c; --ph-line: #dbe3ec; color: var(--ph-ink); }
.pup-results h2 { color: var(--ph-blue); margin: 34px 0 12px; }
.pup-results__hero { background: linear-gradient(135deg, var(--ph-blue), var(--ph-blue2)); color: #fff; border-radius: 14px; padding: 26px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-bottom: 6px solid var(--ph-orange); }
.pup-results__hero h2 { color: #fff; margin: 0 0 6px; }
.pup-results__hero p { margin: 0; color: #d6e1ee; }
.pup-results__hero-pups { display: flex; align-items: flex-end; margin-left: auto; }
.pup-results__hero-pups img { width: 92px; height: 92px; }
.pup-results__hero-pups img + img { width: 74px; height: 74px; margin-left: -10px; }
.pup-results__status { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #e8eef5; color: var(--ph-blue); }
.pup-results__status--live { background: var(--ph-orange); color: #fff; }
.pup-results__clue { border-left: 4px solid var(--ph-orange); background: #fff6ee; padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 14px 0; }
.pup-results__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 16px 0; }
.pup-results__tile { border: 1px solid var(--ph-line); border-radius: 10px; padding: 12px 14px; }
.pup-results__tile b { display: block; font-size: 28px; color: var(--ph-orange); line-height: 1.1; }
.pup-results__tile span { font-size: 13px; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .05em; }
.pup-results__titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pup-results__title { border: 1px solid var(--ph-line); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.pup-results__title img { width: 56px; height: 56px; flex: none; }
.pup-results__title-label { font-size: 13px; font-weight: 700; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .04em; }
.pup-results__title-name { font-size: 18px; font-weight: 700; color: var(--ph-blue); }
.pup-results__title-time { font-size: 13px; color: var(--ph-muted); }
.pup-results__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pup-results table { border-collapse: collapse; width: 100%; font-size: 15px; }
.pup-results th, .pup-results td { white-space: nowrap; padding: 8px 12px; border-bottom: 1px solid var(--ph-line); text-align: left; }
.pup-results th { background: var(--ph-blue); color: #fff; font-weight: 600; }
.pup-results td.num, .pup-results th.num { text-align: right; }
.pup-results__pups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pup-results__pup { border: 1px solid var(--ph-line); border-radius: 12px; padding: 16px; text-align: center; }
.pup-results__pup img { width: 160px; height: 160px; }
.pup-results__pup h3 { margin: 8px 0 4px; color: var(--ph-blue); }
.pup-results__rules li { margin-bottom: 6px; }
.pup-results__muted { color: var(--ph-muted); }
