/* Search-first landing page. Shared dialogs keep their existing styles. */
html{scrollbar-gutter:stable}
#recent-products{box-sizing:border-box;margin:0}
#recent-selection-title{margin:0;padding:8px 6px;font-size:12px;font-weight:500;color:#80868b}
.recent-selections{display:flex;flex-direction:column;gap:2px}
.recent-selection{border:0;background:transparent}
.recent-selection .suggestion-name{white-space:normal;overflow-wrap:anywhere}
.recent-selection:focus-visible{outline:2px solid #6366f1;outline-offset:2px}
.gaming-shell{background:#fff;color:#202124;background-image:none;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.search-top{background:transparent;border:0}
.search-top .country-select{background:#fff;color:#5f6368;border:1px solid #e5e7eb}
.search-hero{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:42svh;padding:calc(clamp(56px,12svh,120px) - 50px) 0 28px}
.search-hero h1{max-width:100%;margin:0 0 30px}
.search-hero .site-brand{justify-content:center;color:#202124;font-size:clamp(28px,7vw,46px);font-weight:750;letter-spacing:-1.5px;gap:12px;line-height:1.3}
.search-hero .brand-text{color:#202124;background:none;white-space:normal;overflow-wrap:anywhere;text-align:center}
.search-hero .brand-image{width:auto;max-width:60%;height:auto;max-height:72px}
.landing-search-form{position:relative;width:100%;max-width:620px}
#search-conversation{max-width:620px;margin-left:auto;margin-right:auto}
.landing-search-form[aria-busy=true] .landing-search-box{border-color:#a5b4fc;box-shadow:0 0 0 3px #eef2ff;animation:ai-search-glow 1.8s ease-in-out infinite}
.landing-search-form[aria-busy=true] button[type=submit]{display:inline-flex;align-items:center;gap:8px;opacity:1;color:#4338ca}
.landing-search-form[aria-busy=true] button[type=submit]::before{content:'';width:16px;height:16px;flex-shrink:0;border:2px solid #c7d2fe;border-top-color:#4f46e5;border-radius:50%;animation:ai-search-spin .8s linear infinite}
.ai-thinking{display:flex;align-items:center;gap:12px;color:#4338ca;background:#eef2ff;border-color:#c7d2fe;font-weight:600}
.ai-thinking-dots{display:inline-flex;gap:4px;flex-shrink:0}
.ai-thinking-dots i{width:6px;height:6px;border-radius:50%;background:#6366f1;animation:ai-search-dot 1.2s ease-in-out infinite}
.ai-thinking-dots i:nth-child(2){animation-delay:.15s}.ai-thinking-dots i:nth-child(3){animation-delay:.3s}
@keyframes ai-search-spin{to{transform:rotate(360deg)}}
@keyframes ai-search-dot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
@keyframes ai-search-glow{50%{box-shadow:0 0 0 5px #eef2ff}}
@media(prefers-reduced-motion:reduce){.landing-search-form[aria-busy=true] .landing-search-box,.landing-search-form[aria-busy=true] button[type=submit]::before,.ai-thinking-dots i{animation:none}}
.game-suggestions{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:5;max-height:300px;overflow-y:auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 10px 30px #20212418;padding:6px}
.game-suggestion{display:flex;align-items:center;gap:6px;width:100%;min-height:44px;padding:4px 6px;text-align:left;border-radius:8px;color:#202124}
.game-suggestion:hover,.game-suggestion[aria-selected=true]{background:#f1f3f4}
.suggestion-icon{width:26px;height:26px;border-radius:6px;object-fit:cover;flex-shrink:0}
.suggestion-copy{display:flex;flex-direction:column;gap:0;min-width:0;flex:1}
.suggestion-name{display:block;font-size:14px;line-height:18px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-keyword{display:block;font-size:11px;line-height:14px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-empty{padding:14px;font-size:13px;color:#6b7280}
#game-dialog{background:#f8fafc;border:0;max-width:48rem}
#game-dialog .conversation-body{padding:24px 20px 32px}
.game-conversation{display:flex;flex-direction:column;gap:20px;margin-bottom:24px}
.conversation-turn{display:flex;align-items:flex-start;gap:10px}
.conversation-user{justify-content:flex-end}
.conversation-assistant{flex-direction:column;gap:6px}
.conversation-assistant .conversation-avatar{width:28px;height:28px;border:1px solid #e5e7eb;border-radius:50%;background:#fff;font-size:18px}
.conversation-assistant .conversation-bubble{width:100%;max-width:100%}
.conversation-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#fff;border:1px solid #e5e7eb;font-size:22px}
.conversation-bubble{max-width:calc(100% - 46px);padding:14px 18px;border-radius:4px 18px 18px;background:#fff;border:1px solid #e5e7eb;color:#253047;line-height:1.7;overflow-wrap:anywhere;font-size:14px}
.conversation-user .conversation-bubble{background:#eef2ff;border-color:#e0e7ff;border-radius:18px 4px 18px 18px;font-weight:600;color:#4338ca}
.conversation-reply{font-weight:600}
.conversation-prompt{margin-top:8px;color:#64748b}
#game-group-tabs{padding-left:0;gap:10px;margin-bottom:12px}
#game-group-tabs .group-tab{white-space:normal;text-align:left;min-height:44px;border-radius:12px;line-height:1.4}
.groups-more{margin:0 0 24px;padding:8px 0;font-size:13px;font-weight:600;color:#4f46e5;text-decoration:underline;text-underline-offset:4px}
@media(max-width:400px){#game-dialog .conversation-body{padding:20px 14px}.conversation-bubble{padding:12px 14px}}
.search-identity{width:100%;max-width:620px;margin:18px 0 0;padding:0 12px;text-align:center;font-size:15px;font-weight:600;line-height:1.65;color:#374151;overflow-wrap:anywhere;white-space:pre-line}
@media(max-width:767px){.search-identity{font-size:14px;font-weight:500;line-height:1.6;margin:16px 0 0;padding:0 8px;word-break:normal;overflow-wrap:anywhere;text-wrap:balance}}
.landing-search-box{display:flex;align-items:center;gap:10px;border:1px solid #dadce0;border-radius:28px;background:#fff;padding:6px 6px 6px 18px;min-height:56px}
.landing-search-box:focus-within{border-color:#b8b9c0;box-shadow:0 2px 12px #20212412}
.landing-search-box>svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:#9aa0a6;stroke-width:1.8}
.landing-search-box input{min-width:0;flex:1;width:100%;border:0;outline:none;background:transparent;font-size:15px;color:#202124;padding:8px 0}
.landing-search-box input::placeholder{color:#8b9097}
.landing-search-box button{flex-shrink:0;max-width:42%;border-radius:22px;padding:11px 18px;background:#f1f3f4;color:#3c4043;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.landing-search-box button:hover{background:#e8eaed}
.landing-main>#landing-notice,.landing-main>#landing-banner{max-width:720px;margin:20px auto 0}
.landing-main>#popular-games{max-width:720px;margin:28px auto 0}
#games-empty{color:#6b7280;border-color:#d1d5db}
.bottom-menu{position:fixed;inset:auto 0 0;z-index:10;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e8eaed;background:#fffffff5;backdrop-filter:blur(12px);padding:8px max(12px,calc((100vw - 600px)/2)) calc(8px + env(safe-area-inset-bottom));}
.bottom-menu button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:56px;padding:4px 6px;color:#5f6368;font-size:12px;background:none;border:0;border-radius:12px;overflow-wrap:anywhere;line-height:1.4}
.bottom-menu button:hover{background:#f5f6f7;color:#202124}
.bottom-menu button:disabled{opacity:.35;cursor:default}
.bottom-menu svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.bottom-menu span{max-width:100%;text-align:center}
@media(max-width:400px){.landing-search-box{gap:8px;padding-left:13px}.landing-search-box button{padding:11px 13px}.landing-search-box input{font-size:14px}}
@media(min-width:768px){.search-hero{min-height:46svh}}
body[data-screen=game],body[data-screen=price]{background:#f8fafc}
#game-dialog,#price-dialog,#request-dialog{position:static;inset:auto;width:100%;max-width:48rem;height:auto;min-height:0;max-height:none;margin:0 auto;border:0;border-radius:0;overflow:visible;background:transparent}
.conversation-heading{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:2;min-height:72px;padding:16px 20px;background:#f8fafcf5;border-bottom:1px solid #e5e7eb;backdrop-filter:blur(12px)}
.conversation-heading>img{width:44px;height:44px;object-fit:cover;border-radius:10px;flex-shrink:0}
.conversation-heading h2{font-size:17px;font-weight:700;overflow-wrap:anywhere;line-height:1.4}
#game-step2{scroll-margin-top:90px;padding-top:12px}
.product-count{font-size:12px;color:#64748b;margin:0 0 12px}
#game-products{padding-bottom:20px}
#game-products .product-card[aria-pressed=true]{border-color:#7c3aed;box-shadow:0 0 0 2px #7c3aed;background:#f5f3ff}
#game-products .product-card[aria-pressed=true] .card-name{color:#6d28d9}
#price-dialog>div:first-child{background:#f8fafc;border-radius:0}
#request-dialog>div:first-child{height:auto;min-height:72px;padding:16px 20px;border:0;background:transparent}
body[data-screen=request]{padding-bottom:0}
body[data-screen=request] .landing-main{padding-bottom:0}
#request-dialog{display:flex;flex-direction:column;height:calc(100dvh - 81px - env(safe-area-inset-bottom))}
#request-dialog>div:first-child{flex-shrink:0}
#request-frame{flex:1;min-height:0;height:0;background:#fff}
@media(max-width:400px){.conversation-heading{padding:14px}}
#price-dialog .conversation-body{padding:0}
#price-conversation{scroll-margin-top:90px}
.price-product-name{margin:0 0 14px;font-size:18px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
#price-dialog{min-height:calc(100dvh - 90px)}
.price-more{display:block;width:100%;margin-top:16px;padding:13px 16px;border:1px solid #dbe0ea;border-radius:12px;background:#fff;color:#4f46e5;font-size:14px;font-weight:600;min-height:44px}
.price-more:hover{background:#eef2ff}
.flash-conditions-alert{margin-top:12px;padding:12px 14px;border:1px solid #fecaca;border-left:4px solid #ef4444;border-radius:10px;background:#fef2f2;color:#991b1b;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.flash-conditions-title{margin-bottom:4px;font-weight:700}
.flash-conditions-text{white-space:pre-line}


.daily-savings{width:100%;max-width:620px;margin:10px 0 0;padding:0 12px;text-align:center;font-size:14px;font-weight:600;line-height:1.6;color:#047857;white-space:pre-line;overflow-wrap:anywhere}

.search-hero .search-identity{width:fit-content;max-width:min(620px,100%);padding:7px 14px;border:1px solid #a7f3d0;border-radius:999px;background:#ecfdf5;color:#047857;box-sizing:border-box}
