/* =====================================================================================================
   🏠 Kezdőlap-elrendezések (próba): body[data-home="a|b|c"] – ?home=a a címben. Csak CSS (nincs új animáció/szűrő).
   A: kétoszlopos (logó balra, fő gombok jobbra) · B: menülista (konzolmenü) · C: nagy mód-kártyák + alsó sáv
   ===================================================================================================== */
/* közös: a fő gombok (Új parti, Szóló, Napi) és a mellékesek megkülönböztetése */
body[data-home] #home .choice{transform:none}

/* ---------------------------------------------------------------- A) KÉTOSZLOPOS */
@media (min-width:761px){
  body[data-home="a"] #home{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;
    grid-template-areas:". right" "hero right" "hero right" ". right";column-gap:56px;align-items:center;max-width:1280px}
  body[data-home="a"] #home .hero{grid-area:hero;text-align:left;margin:0}
  body[data-home="a"] #home .hero #heroLogo{margin:0}
  body[data-home="a"] #home .hero p{margin:14px 0 0;font-size:17px}
  body[data-home="a"] #home .name-row,body[data-home="a"] #home .choices,body[data-home="a"] #home .foot{grid-column:2}
  body[data-home="a"] #home .name-row{grid-row:1;align-self:end;justify-content:flex-start;margin-bottom:12px}
  body[data-home="a"] #home .choices{grid-row:2/4;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  body[data-home="a"] #home .foot{grid-row:4;align-self:start;text-align:left}
  /* fő gombok: széles sorok, ikon balra, leírás alatta */
  body[data-home="a"] #bCreate,body[data-home="a"] #bSolo,body[data-home="a"] #bDaily{grid-column:1/-1;display:grid;grid-template-columns:44px 1fr;column-gap:12px;align-items:center;padding:14px 18px}
  body[data-home="a"] #bCreate .ic,body[data-home="a"] #bSolo .ic,body[data-home="a"] #bDaily .ic{grid-row:1/3;font-size:30px}
  body[data-home="a"] #bCreate{order:1;background:linear-gradient(135deg,#2f7d60,#1d4e3d);border-color:#58c39c}
  body[data-home="a"] #bSolo{order:2}
  body[data-home="a"] #bDaily{order:3}
  body[data-home="a"] #joinBox{order:4;grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 14px}
  body[data-home="a"] #joinBox > span:not(.ic){display:none}
  body[data-home="a"] #joinBox .join-row{margin:0 0 0 auto}
  /* mellékes gombok: kis, leírás nélküli csempék */
  body[data-home="a"] #bTut,body[data-home="a"] #bProfile,body[data-home="a"] #bRules,body[data-home="a"] #bCards{order:5;display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--panel);border-color:var(--line)}
  body[data-home="a"] #bTut > span:not(.ic),body[data-home="a"] #bProfile > span:not(.ic),body[data-home="a"] #bRules > span:not(.ic),body[data-home="a"] #bCards > span:not(.ic){display:none}
  body[data-home="a"] #bTut .ic,body[data-home="a"] #bProfile .ic,body[data-home="a"] #bRules .ic,body[data-home="a"] #bCards .ic{font-size:20px}
  body[data-home="a"] #bTut b,body[data-home="a"] #bProfile b,body[data-home="a"] #bRules b,body[data-home="a"] #bCards b{font-size:15px}
}

/* ---------------------------------------------------------------- B) MENÜLISTA */
@media (min-width:761px){
  body[data-home="b"] #home{max-width:760px}
  body[data-home="b"] #home .hero #heroLogo{max-height:30vh}
  body[data-home="b"] #home .hero p{display:none}
  body[data-home="b"] #home .choices{display:flex!important;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel)}
  body[data-home="b"] #home .choice{display:grid;grid-template-columns:40px 190px 1fr;align-items:center;gap:12px;padding:12px 18px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent}
  body[data-home="b"] #home .choice:hover{background:var(--panel2)}
  body[data-home="b"] #home .choice .ic{font-size:24px}
  body[data-home="b"] #home .choice b{font-size:16px}
  body[data-home="b"] #home .choice > span:not(.ic){font-size:13px;grid-column:3!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
  body[data-home="b"] #home .choice .ic{grid-row:auto!important}
  body[data-home="b"] #home .choice{padding:clamp(7px,1.3vh,12px) 18px}
  body[data-home="b"] #joinBox .join-row{grid-column:3!important}
  body[data-home="b"] #bCreate{order:1;background:#7ef5c90f!important;box-shadow:inset 4px 0 0 var(--glow)}
  body[data-home="b"] #bSolo{order:2} body[data-home="b"] #bDaily{order:3} body[data-home="b"] #joinBox{order:4}
  body[data-home="b"] #bTut{order:5} body[data-home="b"] #bProfile{order:6} body[data-home="b"] #bCards{order:7} body[data-home="b"] #bRules{order:8;border-bottom:0}
  body[data-home="b"] #joinBox{grid-template-columns:40px 190px 1fr}
  body[data-home="b"] #joinBox > span:not(.ic){display:none}
  body[data-home="b"] #joinBox .join-row{margin:0}
}

/* ---------------------------------------------------------------- C) NAGY MÓD-KÁRTYÁK + ALSÓ SÁV */
@media (min-width:761px){
  body[data-home="c"] #home .choices{display:grid!important;grid-template-columns:repeat(15,minmax(0,1fr))!important;grid-auto-rows:auto;gap:14px}
  body[data-home="c"] #bCreate,body[data-home="c"] #bSolo,body[data-home="c"] #bDaily{grid-column:span 5}
  body[data-home="c"] #bCreate,body[data-home="c"] #bSolo,body[data-home="c"] #bDaily{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:6px;
    min-height:clamp(120px,22vh,220px);padding:clamp(12px,2vh,20px);border-radius:20px;border:1px solid #ffffff1a}
  body[data-home="c"] #bCreate{order:1;background:linear-gradient(160deg,#2f7d60 0%,#16382c 100%)}
  body[data-home="c"] #bSolo{order:2;background:linear-gradient(160deg,#8a4a2a 0%,#2c1710 100%)}
  body[data-home="c"] #bDaily{order:3;background:linear-gradient(160deg,#8a6a1f 0%,#2c2210 100%)}
  body[data-home="c"] #bCreate .ic,body[data-home="c"] #bSolo .ic,body[data-home="c"] #bDaily .ic{font-size:clamp(34px,6vh,52px);margin-bottom:auto}
  body[data-home="c"] #home .choice > span:not(.ic),body[data-home="c"] #home .choice .join-row{grid-column:auto}
  body[data-home="c"] #home .hero p{display:none}
  body[data-home="c"] #bCreate b,body[data-home="c"] #bSolo b,body[data-home="c"] #bDaily b{font-size:24px}
  body[data-home="c"] #bCreate > span:not(.ic),body[data-home="c"] #bSolo > span:not(.ic),body[data-home="c"] #bDaily > span:not(.ic){color:#ffffffcc}
  /* alsó sáv: a többi funkció kis gombként */
  body[data-home="c"] #joinBox,body[data-home="c"] #bTut,body[data-home="c"] #bProfile,body[data-home="c"] #bRules,body[data-home="c"] #bCards{order:5;display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--panel);border-radius:12px}
  body[data-home="c"] #joinBox,body[data-home="c"] #bTut,body[data-home="c"] #bProfile,body[data-home="c"] #bRules,body[data-home="c"] #bCards{grid-column:span 3}
  body[data-home="c"] #bTut > span:not(.ic),body[data-home="c"] #bProfile > span:not(.ic),body[data-home="c"] #bRules > span:not(.ic),body[data-home="c"] #bCards > span:not(.ic),body[data-home="c"] #joinBox > span:not(.ic){display:none}
  body[data-home="c"] #joinBox .join-row{margin:0 0 0 auto}
  body[data-home="c"] #home .choices::after{content:none}
}

@media (min-width:761px) and (max-height:760px){
  body[data-home="a"] #bCreate,body[data-home="a"] #bSolo,body[data-home="a"] #bDaily{padding:9px 14px}
  body[data-home="a"] #home .choices{grid-template-columns:repeat(4,1fr)!important}
  body[data-home="a"] #joinBox{padding:6px 12px}
  body[data-home="a"] #bTut,body[data-home="a"] #bProfile,body[data-home="a"] #bRules,body[data-home="a"] #bCards{padding:8px 10px;grid-column:span 1}
  body[data-home="b"] #home .hero #heroLogo{max-height:22vh}
}
@media (min-width:761px){
  body[data-home="a"] #home .choices{grid-template-columns:repeat(4,1fr)!important}
  body[data-home="a"] #bTut,body[data-home="a"] #bProfile,body[data-home="a"] #bRules,body[data-home="a"] #bCards{grid-column:span 1}
}
@media (min-width:761px){
  body[data-home="b"] #home .hero #heroLogo{max-height:24vh;width:auto}
  body[data-home="b"] #home .name-row{margin-bottom:10px}
}
@media (min-width:761px) and (max-height:760px){
  body[data-home="b"] #home .hero #heroLogo{max-height:17vh}
  body[data-home="b"] #home .choice{padding:5px 16px}
  body[data-home="c"] #home .hero #heroLogo{max-height:24vh;width:auto}
  body[data-home="c"] #bCreate,body[data-home="c"] #bSolo,body[data-home="c"] #bDaily{min-height:108px}
  body[data-home="c"] #joinBox,body[data-home="c"] #bTut,body[data-home="c"] #bProfile,body[data-home="c"] #bRules,body[data-home="c"] #bCards{padding:6px 10px}
}
