/* Frenchfries777 shared "rich" page layout: Games, Educations, Tools and Hub front pages.
   Flat page, gold lines, big left-barred title, number strip, one numbered row per site.
   Colors come from --bg --text --fry set by ff-lang.js (light / dark). */
html[data-ff-theme] body{background:var(--bg)!important;color:var(--text)!important;font-family:'Oswald','Noto Sans KR','WenQuanYi Zen Hei',sans-serif}
html[data-ff-theme] body::before,html[data-ff-theme] body::after{background:none!important}
.hero-lg{display:none!important}
/* photo / video panel on the right of the top: gameplay (Games) or the real programs (Educations, Tools) */
.hero{position:relative}
.hero .hero-t{position:relative;z-index:2;max-width:54%}
.hero .hero-bg{display:block!important;position:absolute;z-index:1;left:auto;right:0;top:46px;bottom:26px;width:min(42%,480px);margin:0;border:1px solid var(--fry);border-radius:18px;overflow:hidden;-webkit-mask-image:none!important;mask-image:none!important;background:var(--bg)}
.hero .hero-bg i::after,.hero .hero-bg::after{display:none}
.hero .hero-bg img{opacity:1!important;-webkit-mask-image:none!important;mask-image:none!important}
.hero .hero-bg img,.hero .hero-bg video{position:absolute;inset:0;left:0;right:0;top:0;width:100%!important;height:100%!important;object-fit:cover;-webkit-mask-image:none!important;mask-image:none!important}
@media(max-width:820px){section.hero{display:flex!important;flex-direction:column}.hero .hero-t{order:1;max-width:none}.hero .hero-bg{order:2;position:relative;right:auto;top:auto;bottom:auto;width:100%;height:210px;margin-top:22px}}
.hero{display:block!important;padding:54px 0 30px!important}
.hero .eyebrow,.hero .mono{color:var(--fry)!important;letter-spacing:.2em;font-weight:600;text-shadow:none!important}
.hero h1{font-weight:600!important;color:var(--text)!important;border-left:8px solid var(--fry);padding-left:20px;text-shadow:none!important;line-height:1.02}
.hero h1 span{background:none!important;-webkit-text-fill-color:var(--text)!important;color:var(--text)!important;text-shadow:none!important}
.hero h1::after{display:none!important}
.hero p{color:var(--text)!important;text-shadow:none!important;max-width:560px;font-weight:500}
header{border-bottom:2px solid var(--fry);padding-bottom:14px!important}
header .logo b{color:var(--fry)!important;-webkit-text-fill-color:var(--fry)}
header nav a{color:var(--text)!important;font-weight:500}
.sw{border:1px solid var(--fry)!important;background:transparent!important;box-shadow:none!important;border-radius:99px!important}
.sw a{color:var(--text)!important;background:transparent!important;box-shadow:none!important}
.sw a.on{background:var(--fry)!important;color:var(--bg)!important}
.srx-btn{border:1px solid var(--fry)!important;background:transparent!important;color:var(--text)!important}
.hstats{background:transparent!important;border:1px solid var(--fry)!important;border-radius:16px!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.hstats div{border-left:1px solid var(--text)!important}.hstats div:first-child{border-left:0!important}
.hstats b{background:none!important;-webkit-text-fill-color:var(--fry)!important;color:var(--fry)!important}
.hstats span{color:var(--text)!important;font-weight:500}
footer{border-top:2px solid var(--fry)!important;color:var(--text)!important}
footer a{color:var(--text)!important}footer a:hover{color:var(--fry)!important}

/* one numbered row per site */
.games{display:flex!important;flex-direction:column;gap:12px;counter-reset:rn}
.games .game{counter-increment:rn;position:relative;display:block;min-height:190px;border-radius:16px;overflow:hidden;background:var(--bg);border:1px solid var(--fry);border-left:8px solid var(--fry);box-shadow:none;transform:none!important;opacity:1!important}
.games .game:hover{box-shadow:0 0 0 1px var(--fry)}
.games .game .shot{position:absolute;inset:0;aspect-ratio:auto;z-index:0}
.games .game .shot img{width:100%;height:100%;object-fit:cover;object-position:center!important;transform:none!important}
.games .game .shot::after{inset:0;background:linear-gradient(90deg,var(--bg) 0,color-mix(in srgb,var(--bg) 85%,transparent) 36%,color-mix(in srgb,var(--bg) 20%,transparent) 80%,transparent)}
.games .game .badge{left:32px;top:24px;z-index:3;background:transparent!important;color:var(--fry)!important;border:1px solid var(--fry);padding:1px 10px;font-size:12px;letter-spacing:.2em;text-transform:uppercase;backdrop-filter:none;-webkit-backdrop-filter:none}
.games .game .body{position:relative;z-index:1;pointer-events:none;background:none!important;padding:62px 40px 26px 32px!important;margin:0!important;display:block}
.games .game h2,.games .game h2 *{font-family:'Oswald','Noto Sans KR',sans-serif!important;font-weight:600!important;font-size:42px!important;color:var(--text)!important;-webkit-text-fill-color:var(--text)!important;text-shadow:none!important;text-transform:none!important;background:none!important;letter-spacing:0}
.games .game h2{margin:0;line-height:1.1;white-space:normal!important}
.games .game h2 img,.games .game .motto,.games .game .tags,.games .game .acts,.games .game .desc ul,.games .game .sub{display:none!important}
.games .game .desc{max-width:560px;margin-top:8px;font-size:14px;font-weight:500;color:var(--text)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.games .game::before{content:'0' counter(rn);position:absolute;right:26px;top:14px;left:auto;bottom:auto;width:auto;height:auto;background:none!important;z-index:2;font:600 34px 'Oswald',sans-serif;color:var(--fry)}
.games .game::after{display:none!important}
@media(max-width:640px){.games .game{min-height:170px}.games .game h2,.games .game h2 *{font-size:30px!important}.games .game .body{padding:58px 18px 22px 20px}.games .game .badge{left:20px}.games .game::after{left:20px}.hero h1{padding-left:14px}}

/* hub front page: wiki / community blocks */
.sh::before{background:var(--fry)!important;border-radius:0!important}
.wi-go{background:transparent!important;border:1px solid var(--fry)!important;border-left:8px solid var(--fry)!important;border-radius:16px!important;backdrop-filter:none!important;position:relative}
.wi-go::after{display:none!important}
.wi-ar{color:var(--fry)!important;font-weight:700}
.wi-sub,.wi-gt b,.wi-gt span{color:var(--text)!important;text-shadow:none!important}
footer{background:var(--bg)!important}

footer,footer *{text-shadow:none!important}

/* top-right button box (coin, bell, vote, account): follows light / dark, gold line instead of a fixed dark fill */
.tb{background:transparent!important;border:1px solid var(--fry)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.tb .cc-b,.tb .ffa-bell,.tb .ffa-vote,.tb .ffa-chip,.tb .ffa-set{color:var(--text)!important;background:transparent!important}
.tb .ffa-vote span,.tb .ffa-bell span{color:var(--text)!important}

/* program / game rows: the left bar is gold in light AND dark; on hover the text slides left smoothly and more gold shows */
html[data-ff-theme] .games .game{border-color:var(--fry)!important;border-left:8px solid var(--fry)!important;background:var(--bg)!important;transition:box-shadow .35s ease,border-color .35s ease!important}
html[data-ff-theme] .games .game .body,html[data-ff-theme] .games .game .badge{transition:transform .4s cubic-bezier(.2,.8,.2,1)}
html[data-ff-theme] .games .game::after{transition:width .4s cubic-bezier(.2,.8,.2,1)}
html[data-ff-theme] .games .game h2,html[data-ff-theme] .games .game h2 *{transition:color .35s ease,-webkit-text-fill-color .35s ease}
html[data-ff-theme] .games .game:hover{box-shadow:0 0 0 1px var(--fry),0 10px 30px -12px color-mix(in srgb,var(--fry) 55%,transparent)!important;border-color:var(--fry)!important}
html[data-ff-theme] .games .game:hover .body,html[data-ff-theme] .games .game:hover .badge{transform:translateX(64px)}
html[data-ff-theme] .games .game:hover::after{width:240px}
html[data-ff-theme] .games .game:hover h2,html[data-ff-theme] .games .game:hover h2 *{color:var(--fry)!important;-webkit-text-fill-color:var(--fry)!important}
/* gold panel on the left grows on hover (under the text, over the picture) */
html[data-ff-theme] .games .game .shot::before{content:'';position:absolute;left:0;top:0;bottom:0;width:0;background:var(--fry);z-index:3;transition:width .45s cubic-bezier(.2,.8,.2,1)}
html[data-ff-theme] .games .game:hover .shot::before{width:76px}
html[data-ff-theme] .games .game:hover h2,html[data-ff-theme] .games .game:hover h2 *{color:var(--fry)!important;-webkit-text-fill-color:var(--fry)!important}

/* remove short gold bottom bars on rows / cards */
html[data-ff-theme] .games .game::after,html[data-ff-theme] .games .game:hover::after,.games .game::after,.wi-go::after{display:none!important;content:none!important;width:0!important}

/* 접속자 표시 (지금 N명 접속 중): 모든 사이트에서 Games와 똑같이 */
.onl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:18px;font-size:14.5px;color:var(--dim)} .onl:empty{display:none} .onl>b{color:var(--text)}
.on-dot{width:9px;height:9px;border-radius:50%;background:#3fe0c5;box-shadow:0 0 0 0 rgba(63,224,197,.6);animation:onp 2s infinite} @keyframes onp{70%{box-shadow:0 0 0 8px rgba(63,224,197,0)}100%{box-shadow:0 0 0 0 rgba(63,224,197,0)}}
html[data-ff-theme=light] .on-dot{background:#333}
.on-c{padding:3px 10px;border-radius:99px;border:1px solid var(--line);background:var(--panel)} .on-c b{color:var(--text)}
