/* Amigo chat: Daily Q. Built on the News card (news_box, post_title, reply_item) so it looks and feels the same.
   Colours are translucent grey plus .theme_btn, so every theme works. */
.dq_bar{display:flex;gap:8px;flex-wrap:wrap}
.dq_mhead{display:block}
.dq_link{cursor:pointer;display:inline-block}
.dq_tile{width:36px}
.dq_tile_in{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border-radius:50%;font-size:15px;min-width:0}
.dq_card.post_element{padding-bottom:10px}
.dq_q{padding:6px 0 4px}
.dq_title{font-size:18px;font-weight:bold;line-height:1.3;word-wrap:break-word}
.dq_body{margin-top:6px;line-height:1.45}
.dq_answer{padding:8px 0 2px}
.dq_section{margin:14px 0 2px;opacity:.8}
.dq_section i{margin-right:3px}
.dq_meta{padding:8px 0 0}
.dq_none{padding:8px 0}
.dq_total{margin:8px 0 0}
.dq_more{display:inline-block;margin:8px 0 0;cursor:pointer}
/* option buttons and results */
.dq_opts{display:block}
.dq_opt{position:relative;margin:8px 0;border:1px solid rgba(128,128,128,.28);border-radius:12px;background:rgba(128,128,128,.07);overflow:hidden;transition:border-color .15s,background .15s,transform .15s}
.dq_opt.dq_pick{cursor:pointer}
.dq_opt.dq_pick:hover{background:rgba(128,128,128,.16);border-color:rgba(128,128,128,.6);transform:translateY(-1px)}
.dq_opt_in{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px}
.dq_opt_t{font-size:14px;line-height:1.35;word-wrap:break-word;min-width:0}
.dq_pct{font-weight:bold;font-size:13px;flex:none}
.dq_fill{position:absolute;top:0;bottom:0;left:0;min-width:0;padding:0;margin:0;border-radius:0;opacity:.3;transition:width .5s ease}
.dq_opt.dq_mine .dq_fill{opacity:.55}
.dq_opt.dq_mine{border-color:rgba(128,128,128,.9)}
.dq_opt.dq_mine .dq_opt_t{font-weight:bold}
.dq_chk{margin-right:3px}
/* would you rather / this or that: two big choices with an OR between them */
.dq_o_wyr .dq_opt_in{padding:16px 14px;min-height:56px}
.dq_or{text-align:center;font-weight:bold;font-size:12px;opacity:.6;margin:-3px 0;position:relative;z-index:2}
.dq_or span{display:inline-block;padding:1px 10px;border-radius:10px;background:rgba(128,128,128,.25)}
.dq_o_tot{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:8px}
.dq_o_tot .dq_opt{margin:0}
.dq_o_tot .dq_opt_in{flex-direction:column;justify-content:center;text-align:center;padding:22px 10px;height:100%;box-sizing:border-box;gap:4px}
.dq_o_tot .dq_opt_t{font-size:16px;font-weight:bold}
.dq_o_tot .dq_or{align-self:center;margin:0}
/* pictures */
.dq_pics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dq_pic{border:1px solid rgba(128,128,128,.28);border-radius:12px;overflow:hidden;background:rgba(128,128,128,.07);transition:transform .15s,border-color .15s}
.dq_pic.dq_pick{cursor:pointer}
.dq_pic.dq_pick:hover{transform:translateY(-2px);border-color:rgba(128,128,128,.7)}
.dq_pic.dq_mine{border-color:rgba(128,128,128,.95)}
.dq_pic_img{position:relative;width:100%;padding-top:75%;background:rgba(128,128,128,.2);overflow:hidden}
.dq_pic_img img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block}
.dq_pic_pct{position:absolute;right:6px;bottom:6px;padding:2px 8px;border-radius:10px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;font-weight:bold}
.dq_pic_check{position:absolute;left:6px;top:6px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}
.dq_pic_cap{padding:7px 9px 4px;font-size:13px;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dq_pic_bar{margin:2px 9px 0;height:5px;border-radius:3px;background:rgba(128,128,128,.25);overflow:hidden}
.dq_pic_bar span{display:block;height:100%;padding:0;min-width:0;border-radius:3px;opacity:.7;transition:width .5s}
.dq_pic_cnt{padding:3px 9px 8px}
/* rating */
.dq_rate{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.dq_rate_b{aspect-ratio:1;border-radius:8px;border:1px solid rgba(128,128,128,.3);background:rgba(128,128,128,.1);color:inherit;font:inherit;font-size:13px;font-weight:bold;cursor:pointer;padding:0;transition:background .15s,transform .15s}
.dq_rate_b:hover{background:rgba(128,128,128,.28);transform:translateY(-1px)}
.dq_rate_b.dq_mine{border-color:rgba(128,128,128,.95);background:rgba(128,128,128,.32)}
.dq_rate_lab{display:flex;justify-content:space-between;margin-top:6px}
.dq_rating_res{text-align:center}
.dq_avg{padding:4px 0 8px}
.dq_avg_n{font-size:38px;font-weight:bold;line-height:1}
.dq_avg_of{font-size:14px;opacity:.6;margin-left:4px}
.dq_hist{display:flex;gap:4px;align-items:flex-end;height:96px}
.dq_hist_col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;height:100%}
.dq_hist_bar{flex:1;width:100%;display:flex;align-items:flex-end}
.dq_hist_bar span{display:block;width:100%;padding:0;min-width:0;border-radius:4px 4px 0 0;opacity:.45;transition:height .5s}
.dq_hist_col.dq_mine .dq_hist_bar span{opacity:.95}
.dq_hist_col.dq_mine .dq_hist_n{font-weight:bold;opacity:1}
.dq_hist_n{font-size:11px;opacity:.6;margin-top:3px}
/* open answers */
.dq_open_form{margin-bottom:4px}
.dq_textarea{min-height:76px}
.dq_form_row{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}
.dq_form_row .sub_text{margin-right:auto}
.dq_mine_row{padding:2px 0}
.dq_ans_list .reply_item,.dq_cbox .reply_item{margin-top:8px}
/* true or false reveal */
.dq_reveal{margin-top:10px;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.45;background:rgba(128,128,128,.12)}
.dq_reveal.dq_right{background:rgba(46,204,113,.16)}
.dq_reveal.dq_wrong{background:rgba(231,76,60,.16)}
/* previous questions and the manage list */
.dq_prev_head{margin-top:6px}
.dq_prev,.dq_mrow{display:table;table-layout:fixed;width:100%;padding:10px;cursor:pointer;box-sizing:border-box}
.dq_prev_icon{width:34px;font-size:16px;text-align:center}
.dq_prev_main{overflow:hidden;padding:0 8px}
.dq_prev_t{font-weight:bold;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dq_prev_go{width:20px;text-align:center;font-size:12px}
.dq_mact{width:62px;text-align:right;white-space:nowrap}
.dq_ic{cursor:pointer;padding:6px;opacity:.75;font-size:14px}
.dq_ic:hover{opacity:1}
.dq_st{display:inline-block;padding:1px 8px;border-radius:9px;font-weight:bold;background:rgba(128,128,128,.22)}
.dq_st_today{background:rgba(46,204,113,.25)}
.dq_st_next{background:rgba(52,152,219,.25)}
/* the staff form */
.dq_crow{display:flex;gap:6px;align-items:center;margin-bottom:6px}
.dq_crow .full_input{flex:1}
.dq_rm{cursor:pointer;padding:8px;opacity:.7}
.dq_rm:hover{opacity:1}
.dq_prow{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.dq_pthumb{flex:none;width:60px;height:60px;border-radius:10px;background:rgba(128,128,128,.2) center/cover no-repeat;display:flex;align-items:center;justify-content:center;opacity:.95}
.dq_pthumb[style*="url"] i{display:none}
.dq_pfields{flex:1;min-width:0}
.dq_pfields input[type=file]{display:block;width:100%;font-size:12px;margin-bottom:6px}
@media (max-width:520px){.dq_title{font-size:17px}.dq_pics{gap:8px}}
@media (prefers-reduced-motion:reduce){.dq_opt,.dq_pic,.dq_rate_b,.dq_fill,.dq_pic_bar span,.dq_hist_bar span{transition:none}}

/* Daily missions and login streak */
.mis_week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:6px 0 4px}
.mis_day{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px;border-radius:10px;border:1px solid rgba(128,128,128,.28);background:rgba(128,128,128,.08);font-size:11px;text-align:center;min-width:0}
.mis_day_n{font-size:10px;opacity:.6}
.mis_day_g{font-weight:bold;font-size:12px}
.mis_day_r{font-size:10px;opacity:.85}
.mis_day_on{background:rgba(var(--amg-rgb,3,173,216),.2);border-color:rgba(var(--amg-rgb,3,173,216),.6)}
.mis_day_now{box-shadow:0 0 0 2px rgba(var(--amg-rgb,3,173,216),.55)}
.mis_note{margin:6px 0 0}
.mis_list{padding-top:4px}
.mis_item{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:8px;border-radius:12px;border:1px solid rgba(128,128,128,.22);background:rgba(128,128,128,.07)}
.mis_ic{flex:none;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(128,128,128,.18);font-size:15px}
.mis_ready .mis_ic{background:rgba(var(--amg-rgb,3,173,216),.3)}
.mis_main{flex:1;min-width:0}
.mis_title{font-weight:bold;font-size:14px;margin-bottom:6px}
.mis_bar{height:6px;border-radius:3px;background:rgba(128,128,128,.25);overflow:hidden;margin-bottom:4px}
.mis_bar span{display:block;height:100%;padding:0;min-width:0;border-radius:3px;transition:width .4s}
.mis_act{flex:none}
.mis_ok{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:rgba(46,204,113,.25);color:#2ecc71}
.mis_lock{opacity:.4;padding:0 6px}
.mis_claimed{opacity:.65}
.mis_bonus{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;border:1px dashed rgba(128,128,128,.4);font-size:13px}
.mis_bonus .mis_ok{margin-left:auto}
.mis_bonus_got{opacity:.65}
.mis_done{text-align:center;padding:14px 0}

/* Slim, quiet scrollbars everywhere (the browser default is a chunky grey bar) */
*{scrollbar-width:thin;scrollbar-color:rgba(128,128,128,.38) transparent}
*:hover{scrollbar-color:rgba(128,128,128,.6) transparent}
@supports not (scrollbar-width:thin){
	*::-webkit-scrollbar{width:7px;height:7px}
	*::-webkit-scrollbar-track{background:transparent}
	*::-webkit-scrollbar-thumb{background:rgba(128,128,128,.38);border-radius:7px;border:1px solid transparent;background-clip:content-box}
	*::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.62);background-clip:content-box}
	*::-webkit-scrollbar-corner{background:transparent}
}

/* the radio / player button under the chat input is not used here */
.footer_item[data-menu="player_menu"]{display:none !important}

/* inside the Android app: behave like an app, not like a web page */
html.amg_app, html.amg_app body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
html.amg_app *{-webkit-tap-highlight-color:transparent}
html.amg_app button, html.amg_app a, html.amg_app .fmenu_item, html.amg_app .footer_item, html.amg_app .private_opt, html.amg_app .amg_btn{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html.amg_app input, html.amg_app textarea, html.amg_app select, html.amg_app [contenteditable]{font-size:16px}
html.amg_app img{-webkit-user-drag:none}

/* ===== Amigo Chat app: the phone layout is pure CSS (flex), no JavaScript height maths =====
   The site normally measures the window and writes pixel heights on every resize. In the app that is what made the
   keyboard feel stiff. Here the page is a column: top bar, chat area that takes what is left, bottom bar. */
@media screen and (max-width:800px){
	/* only the chat page is a fixed-height column; every other page (store, about, rules...) must scroll normally */
	html.amg_app:has(#global_chat), html.amg_app:has(#global_chat) body{height:100%;overflow:hidden}
	html.amg_app:has(#global_chat) body{display:flex;flex-direction:column}
	html.amg_app #chat_head{flex:none}
	html.amg_app #global_chat{display:block !important;flex:1 1 0;min-height:0;height:auto !important;position:relative;overflow:hidden}
	html.amg_app #wrap_footer{position:static;flex:none}
	html.amg_app.amg_kb #wrap_footer{display:none}

	html.amg_app #chat_center{display:flex !important;flex-direction:column;position:relative !important;width:100%;height:100% !important}
	html.amg_app #container_chat, html.amg_app #wrap_chat{display:flex;flex-direction:column;flex:1 1 0;min-height:0;height:100% !important;width:100%}
	html.amg_app #chat_toping{flex:none}
	html.amg_app #warp_show_chat{flex:1 1 0;min-height:0;height:auto !important;position:relative;overflow:hidden}
	html.amg_app #show_chat{position:absolute;left:0;right:0;top:0;bottom:0;height:auto}
	html.amg_app #top_chat_container{flex:none}

	/* side panels cover the chat area under the top bar */
	html.amg_app #chat_left, html.amg_app #chat_right{top:0 !important;bottom:0;height:auto !important;max-width:100%}
	html.amg_app #left_content{height:100%;display:flex;flex-direction:column}
	html.amg_app #left_panel_bar{flex:none}
	html.amg_app .clheight{height:auto !important;flex:1 1 0;min-height:0}
	html.amg_app .crheight{height:calc(100% - 41px) !important}

	/* private chat on a phone: a full-screen page */
	html.amg_app #private_center.pfull{display:flex !important;flex-direction:column;top:0;bottom:0;right:0;left:0;height:auto !important;width:100%}
	html.amg_app #private_center.pfull.privhide{display:none !important}
	html.amg_app #private_center.pfull #private_box{display:flex;flex-direction:column;flex:1 1 0;min-height:0;height:100%}
	html.amg_app #private_center.pfull #private_top{flex:none}
	html.amg_app #private_center.pfull #private_wrap_content{flex:1 1 0;min-height:0;position:relative;height:auto !important}
	html.amg_app #private_center.pfull .pcontent{height:auto !important}
	html.amg_app #private_center.pfull #private_content{position:absolute;left:0;right:0;top:0;bottom:0}
	html.amg_app #private_center.pfull #priv_input{flex:none}
	/* the small private box sits flush with the bottom of the chat area, so it covers the room's input bar (the site's 50px offset is for its own fixed footer) */
	html.amg_app #private_center.pboxed{bottom:0}
}
html.amg_app #amg_reload i{font-size:17px}
html.amg_app #show_chat ul, html.amg_app #show_private, html.amg_app #chat_left_data, html.amg_app #chat_right_data{overscroll-behavior:contain}

/* Rules, Privacy and Terms panel */
.amg_legal_tabs{display:flex;gap:6px;padding:12px 14px 0;position:sticky;top:0;z-index:2;background:inherit}
.amg_legal_tab{flex:1 1 0;min-width:0;border:0;border-radius:10px;padding:9px 6px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;background:rgba(128,128,128,.14);color:inherit;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amg_legal_tab i{margin-right:4px}
.amg_legal_tab.on{background:rgb(var(--amg-rgb,255,122,26));color:#fff;opacity:1}
.amg_legal_body{line-height:1.55;word-wrap:break-word;overflow-wrap:anywhere}
.amg_legal_body img{max-width:100%;height:auto}

/* ===== Rounder look: modals, the profile card, its avatar and tabs, the member card ===== */
.small_modal_in, .large_modal_in, .over_modal_in, .over_emodal_in{border-radius:22px}
/* the profile and the member card have a cover picture at the top: clip it to the rounded corners (only these two, so drop-downs in other windows are never cut) */
.large_modal_in:has(.modal_wrap_top), .over_modal_in:has(.modal_wrap_top), .over_modal_in:has(.avheader), .small_modal_in:has(.avheader){overflow:hidden;border-radius:26px}
.profile_avatar, .avatar_spin, .avatar_profile{border-radius:28px}
.state_profile{bottom:10px;right:10px}
.modal_menu ul li{border-radius:14px;padding:9px 15px}
.profile_info_box{border-radius:14px;margin:8px 15px 0}
.pro_menu_wrap .modal_menu{margin:10px 12px;border-radius:18px;padding:6px 8px}
.avavatar, .avtop_content img{border-radius:50%}
.card_menu{border-radius:0 0 18px 18px}
.modal_top_item{border-radius:12px}

/* dates: never wrap, and equal-width digits so a changing time does not nudge the message */
.amg_t{white-space:nowrap;font-variant-numeric:tabular-nums}
