/* top10film/player.css — "หนัง Top 10" (ภาพ render ล่วงหน้า + การ์ดเกมจริงวางลงช่องในฉาก) */
.tf{position:relative;background:#0b0716;color:#fff;isolation:isolate;font-family:'Sarabun',system-ui,sans-serif}
.tf-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:100svh;overflow:hidden;background:#0b0716;contain:paint}
.tf.tf-port .tf-stage{aspect-ratio:9/16;max-height:100svh}

/* ── ยังไม่พร้อม/ไม่มี JS: การ์ดเรียงเป็นกริดธรรมดา (หน้าไม่พังถ้าโหลดหนังไม่ได้) ── */
.tf:not(.tf-on) .tf-stage{aspect-ratio:auto;max-height:none}
.tf:not(.tf-on) .tf-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;padding:92px 16px 28px;max-width:1200px;margin:0 auto}
.tf:not(.tf-on) .tf-card{position:relative;display:block;border-radius:14px;overflow:hidden;border:3px solid #3b2a52;background:#241548}
.tf:not(.tf-on) .tf-card img{aspect-ratio:460/650;height:auto}
.tf:not(.tf-on) .tf-card::before{content:attr(data-rank);position:absolute;left:8px;top:6px;z-index:1;font:700 26px 'Mitr';color:#ffd166;text-shadow:0 2px 0 #3b2a52}
.tf:not(.tf-on) :is(.tf-base,.tf-light,.tf-fx,.tf-info,.tf-nav,.tf-load){display:none}

/* ── ชั้นภาพ ── */
.tf.tf-on .tf-cards{position:absolute;inset:0;z-index:1}
.tf.tf-on .tf-card{position:absolute;left:0;top:0;width:460px;height:650px;transform-origin:0 0;visibility:hidden;
  will-change:transform;backface-visibility:hidden;background:#140c26}
.tf-card img{display:block;width:100%;height:100%;object-fit:cover}
.tf.tf-on .tf-card-nm{display:none}
.tf.tf-on .tf-card:hover img,.tf.tf-on .tf-card:focus-visible img{filter:brightness(1.1) saturate(1.05)}
.tf canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.tf-base{z-index:2}
.tf-light{z-index:3;mix-blend-mode:plus-lighter;opacity:var(--flk,1)}   /* --flk: นีออนหายใจ/กระพริบ (player.js) */
@supports not (mix-blend-mode:plus-lighter){.tf-light{mix-blend-mode:screen}}
.tf.is-cut :is(.tf-base,.tf-light,.tf-cards){opacity:0;transition:opacity .35s ease}
.tf :is(.tf-base,.tf-light,.tf-cards){transition:opacity .45s ease}

/* เกรนฟิล์ม + ขอบมืดเลนส์ (ทับทั้งฉากและการ์ด ให้ทุกอย่างดูมาจากกล้องตัวเดียวกัน) */
.tf-fx{position:absolute;inset:0;z-index:4;pointer-events:none;
  background:radial-gradient(120% 90% at 50% 45%,transparent 55%,rgba(6,2,14,.5) 100%)}
.tf-fx::after{content:'';position:absolute;inset:-50%;opacity:.07;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:tfGrain .9s steps(6) infinite}
@keyframes tfGrain{0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-3%)}60%{transform:translate(-2%,-1%)}80%{transform:translate(3%,3%)}100%{transform:translate(0,0)}}

/* ── หัวเรื่อง (ซ้อนบนหนังมุมซ้ายบน แบบแบนเนอร์หน้าแรกของเว็บ) ── */
.tf-head{position:absolute;left:4%;top:5%;z-index:5;max-width:44%;pointer-events:none;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.tf-head::before{content:'';position:absolute;left:-70px;top:-60px;right:-110px;bottom:-50px;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(8,4,20,.6),rgba(8,4,20,0))}
.tf-head .kick{display:inline-block;font:600 12px 'Mitr';letter-spacing:.08em;color:#3b2a52;background:#ffd166;border:2px solid #3b2a52;border-radius:99px;padding:3px 12px;box-shadow:0 3px 0 rgba(59,42,82,.35);text-shadow:none}
.tf-head :is(h1,h2){position:relative;display:inline-block;margin:.35em 0 0;padding-bottom:8px;font:700 clamp(20px,2.4vw,34px)/1.15 'Mitr';color:#fff}
.tf-head :is(h1,h2) .sq{position:absolute;left:0;bottom:-2px;width:min(100%,220px);height:9px}
.tf-head .tf-sub{margin:.45em 0 0;font-size:14px;color:rgba(255,255,255,.82)}
.tf-scenes{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;pointer-events:auto}
.tf-scenes button{font:600 13px 'Mitr';color:#3b2a52;background:rgba(255,255,255,.94);border:2px solid #3b2a52;border-radius:99px;padding:6px 14px;
  box-shadow:0 3px 0 rgba(10,4,24,.55);cursor:pointer;text-shadow:none;transition:transform .15s,background .15s}
.tf-scenes button:hover{transform:translateY(-1px)}
.tf-scenes button.on{background:#ffd166}
.tf.tf-on .tf-head{animation:tfHeadIn .9s cubic-bezier(.2,.8,.2,1) both}
.tf-head :is(h1,h2),.tf-head .tf-sub{transition:opacity .8s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
.tf.tf-on.tf-live:not(.tf-titled) .tf-head :is(h1,h2),.tf.tf-on.tf-live:not(.tf-titled) .tf-head .tf-sub{opacity:0;transform:translateY(-8px)}
.tf.tf-on.tf-live:not(.tf-titled) .tf-head::before{opacity:.4}
.tf-head::before{transition:opacity .8s}
@keyframes tfHeadIn{from{opacity:0;transform:translateY(12px)}}
.tf:not(.tf-on) .tf-head{position:relative;left:auto;top:auto;max-width:1200px;padding:26px 16px 0;margin:0 auto}
.tf:not(.tf-on) .tf-head::before{display:none}
.tf.tf-port .tf-head{left:5%;right:5%;top:3.5%;max-width:none}
.tf.tf-port .tf-head :is(h1,h2){font-size:19px}
.tf.tf-port .tf-head .tf-sub{display:none}
.tf.tf-port .tf-scenes{position:absolute;right:0;top:0;margin:0;gap:6px}
.tf-scenes .ic{margin-right:5px}
.tf.tf-port .tf-scenes button{padding:4px 9px;font-size:16px}
.tf.tf-port .tf-scenes .ic{margin:0}
.tf.tf-port .tf-scenes .tx{display:none}           /* มือถือ: เหลือแต่ไอคอน ไม่บังฉาก */

/* ── แผงข้อมูลเกม: กระจกฝ้าสีเข้ม + กรอบแสงนีออนไล่สีหมุนช้า ๆ · เปลี่ยนอันดับ = เลขกลิ้งขึ้น ชื่อค่อย ๆ เผย ── */
@property --tfa{syntax:'<angle>';inherits:false;initial-value:0deg}
.tf-info{position:absolute;right:max(6.5%,72px);top:50%;z-index:6;width:min(34%,460px);padding:22px 26px 24px;border-radius:24px;
  background:linear-gradient(160deg,rgba(30,17,56,.74),rgba(12,7,28,.64));
  -webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);
  box-shadow:0 24px 60px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.12),0 0 46px rgba(255,143,199,.14);
  transform:translateY(-50%);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.tf-info::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;opacity:.9;
  background:conic-gradient(from var(--tfa),#ff8fc7,#b490f5,#7cd4fd,#7ef0c0,#ffd166,#ff8fc7);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  animation:tfSpin 7s linear infinite}
@keyframes tfSpin{to{--tfa:360deg}}
.tf-info.is-champ{box-shadow:0 24px 60px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.14),0 0 56px rgba(255,200,90,.26)}
.tf-info.is-champ::before{background:conic-gradient(from var(--tfa),#ffd166,#fff3c4,#ffb62e,#ffe9a8,#ff8fc7,#ffd166)}
.tf.is-moving .tf-info,.tf-info.is-changing{opacity:0;transform:translateY(-46%)}
.tf-info [hidden]{display:none!important}

.tf-rk{display:flex;align-items:center;gap:12px}
.tf-rk-n{font:700 60px/.9 'Mitr';letter-spacing:-.02em;color:transparent;
  background:linear-gradient(180deg,#fff 12%,#ffd6ec 46%,#ff8fc7 100%);-webkit-background-clip:text;background-clip:text;
  filter:drop-shadow(0 0 16px rgba(255,143,199,.55))}
.tf-rk-l{font:600 12px/1.35 'Mitr';letter-spacing:.14em;color:rgba(255,255,255,.72)}
.tf-rk-l b{display:block;font-size:14px;letter-spacing:.04em;color:#fff}
.tf-info.is-champ .tf-rk-n{background-image:linear-gradient(180deg,#fffbe6 6%,#ffe08a 42%,#ffb62e 100%);filter:drop-shadow(0 0 18px rgba(255,200,90,.75))}
.tf-info.is-champ .tf-rk-l b::after{content:' 👑'}
.tf-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tf-tag{font:600 11.5px 'Mitr';padding:3px 11px;border-radius:99px;color:#3b2a52;background:#c4f1ff;border:1.5px solid #3b2a52}
.tf-tag.hot{background:#ffd166}
.tf-info h3{margin:10px 0 6px;font:700 clamp(20px,2.1vw,30px)/1.18 'Mitr';color:#fff;text-shadow:0 2px 20px rgba(255,143,199,.35)}
.tf-info p{margin:0;font-size:15px;line-height:1.55;color:rgba(255,255,255,.86)}
.tf-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.tf-stat{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:99px;font-size:13px;
  border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08)}
.tf-stat i{color:#ff8fc7}
.tf-rate{font:600 13px 'Mitr';color:#ffd166;letter-spacing:.02em}
.tf-go{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:9px;margin-top:16px;
  background:linear-gradient(135deg,#ff8fc7,#ff6fb5);color:#fff;font:600 15px 'Mitr';text-decoration:none;
  border:3px solid #3b2a52;border-radius:99px;padding:10px 20px 10px 22px;
  box-shadow:0 5px 0 rgba(10,4,24,.6),0 0 26px rgba(255,111,181,.38);transition:transform .15s,box-shadow .15s}
.tf-go::after{content:'';position:absolute;top:-30%;bottom:-30%;left:-45%;width:32%;transform:skewX(-20deg);pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:tfShine 3.4s ease-in-out infinite}
@keyframes tfShine{0%,55%{left:-45%}85%,100%{left:135%}}
.tf-go:hover{transform:translateY(-2px);box-shadow:0 7px 0 rgba(10,4,24,.6),0 0 34px rgba(255,111,181,.55)}
.tf-go:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(10,4,24,.6)}
.tf-go .fa-arrow-right{font-size:13px;transition:transform .2s}
.tf-go:hover .fa-arrow-right{transform:translateX(4px)}
/* เปลี่ยนอันดับ: เผยทีละชิ้นแบบไตเติลหนัง */
.tf-info.is-in .tf-rk-n{animation:tfRoll .6s cubic-bezier(.2,.9,.25,1.25) both}
.tf-info.is-in .tf-rk-l{animation:tfUp .45s .06s both}
.tf-info.is-in .tf-tags{animation:tfUp .45s .1s both}
.tf-info.is-in h3{animation:tfWipe .7s .16s cubic-bezier(.2,.8,.2,1) both}
.tf-info.is-in p{animation:tfUp .5s .3s both}
.tf-info.is-in .tf-meta{animation:tfUp .5s .38s both}
.tf-info.is-in .tf-go{animation:tfPop .55s .46s cubic-bezier(.2,.9,.3,1.35) both}
@keyframes tfRoll{from{opacity:0;transform:translateY(60%) scale(.86)}}
@keyframes tfUp{from{opacity:0;transform:translateY(10px)}}
@keyframes tfWipe{from{clip-path:inset(0 100% 0 0);opacity:.3}to{clip-path:inset(0 0 0 0);opacity:1}}
@keyframes tfPop{from{opacity:0;transform:translateY(8px) scale(.9)}}

/* ═════ ธีมกล่องข้อมูลตามฉาก ═════
   อาร์เคด (ฉาก A): กล่องทรงจอ CRT ของตู้เกม — แถบหัวแบบป้ายไฟหัวตู้ + ตัวการ์ตูนพิกเซล · จอมืดมีเส้นสแกน
                    · ปุ่มหลัก = ปุ่มกดอาร์เคด · "INSERT COIN" กระพริบ · ขนาดกะทัดรัดสูงพอ ๆ กับจอตู้ */
.tf.tf-arcade .tf-info{width:min(30%,400px);padding:0 0 16px;border-radius:20px;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 40%,rgba(34,18,64,.9),rgba(8,5,18,.92));
  border:3px solid #3b2a52;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  box-shadow:0 0 0 2px rgba(255,255,255,.08),0 0 34px rgba(255,111,181,.35),0 0 80px rgba(154,107,255,.22),0 18px 40px rgba(0,0,0,.5)}
.tf.tf-arcade .tf-info::before{display:none}
.tf.tf-arcade .tf-info::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px),
             radial-gradient(130% 100% at 50% 50%,transparent 58%,rgba(0,0,0,.45) 100%);mix-blend-mode:screen}
.tf.tf-arcade .tf-rk{position:relative;justify-content:center;gap:10px;padding:12px 16px 10px;margin:0 0 4px;
  background:linear-gradient(180deg,#ff5cae 0%,#9a4dff 100%);border-bottom:3px solid #3b2a52;
  box-shadow:inset 0 -8px 18px rgba(59,42,82,.35),inset 0 2px 0 rgba(255,255,255,.4)}
.tf.tf-arcade .tf-rk::before,.tf.tf-arcade .tf-rk::after{content:'';position:absolute;top:50%;width:3px;height:3px;margin-top:-12px;
  color:#fff7fb;box-shadow:6px 0px 0 0 currentColor,24px 0px 0 0 currentColor,9px 3px 0 0 currentColor,21px 3px 0 0 currentColor,6px 6px 0 0 currentColor,9px 6px 0 0 currentColor,12px 6px 0 0 currentColor,15px 6px 0 0 currentColor,18px 6px 0 0 currentColor,21px 6px 0 0 currentColor,24px 6px 0 0 currentColor,3px 9px 0 0 currentColor,6px 9px 0 0 currentColor,12px 9px 0 0 currentColor,15px 9px 0 0 currentColor,18px 9px 0 0 currentColor,24px 9px 0 0 currentColor,27px 9px 0 0 currentColor,0px 12px 0 0 currentColor,3px 12px 0 0 currentColor,6px 12px 0 0 currentColor,9px 12px 0 0 currentColor,12px 12px 0 0 currentColor,15px 12px 0 0 currentColor,18px 12px 0 0 currentColor,21px 12px 0 0 currentColor,24px 12px 0 0 currentColor,27px 12px 0 0 currentColor,30px 12px 0 0 currentColor,0px 15px 0 0 currentColor,6px 15px 0 0 currentColor,9px 15px 0 0 currentColor,12px 15px 0 0 currentColor,15px 15px 0 0 currentColor,18px 15px 0 0 currentColor,21px 15px 0 0 currentColor,24px 15px 0 0 currentColor,30px 15px 0 0 currentColor,0px 18px 0 0 currentColor,6px 18px 0 0 currentColor,24px 18px 0 0 currentColor,30px 18px 0 0 currentColor,9px 21px 0 0 currentColor,12px 21px 0 0 currentColor,18px 21px 0 0 currentColor,21px 21px 0 0 currentColor;filter:drop-shadow(0 0 5px rgba(255,255,255,.8));animation:tfInv 1.1s steps(1) infinite}
.tf.tf-arcade .tf-rk::before{left:14px}
.tf.tf-arcade .tf-rk::after{right:47px;animation-delay:.55s}
@keyframes tfInv{50%{transform:translateY(-2px)}}
.tf.tf-arcade .tf-rk-n{font-size:46px;background:none;color:#fff;-webkit-text-stroke:0;
  text-shadow:0 3px 0 #3b2a52,0 0 18px rgba(255,255,255,.75);filter:none}
.tf.tf-arcade .tf-rk-l{color:rgba(255,255,255,.92);text-shadow:0 2px 0 rgba(59,42,82,.6)}
.tf.tf-arcade .tf-rk-l b{color:#fff}
.tf.tf-arcade .tf-info.is-champ .tf-rk{background:linear-gradient(180deg,#ffe08a 0%,#ffb62e 55%,#e0891a 100%)}
.tf.tf-arcade .tf-info.is-champ .tf-rk-n{color:#fffbe6;text-shadow:0 3px 0 #6b3d05,0 0 20px rgba(255,236,170,.9)}
.tf.tf-arcade .tf-info.is-champ .tf-rk-l,.tf.tf-arcade .tf-info.is-champ .tf-rk-l b{color:#3b2a52;text-shadow:none}
.tf.tf-arcade .tf-info.is-champ{box-shadow:0 0 0 2px rgba(255,255,255,.1),0 0 40px rgba(255,200,90,.45),0 18px 40px rgba(0,0,0,.5)}
.tf.tf-arcade .tf-tags,.tf.tf-arcade .tf-info h3,.tf.tf-arcade .tf-info p,.tf.tf-arcade .tf-meta{margin-left:20px;margin-right:20px}
.tf.tf-arcade .tf-info h3{text-shadow:0 0 14px rgba(255,143,199,.55),0 2px 0 rgba(0,0,0,.4)}
.tf.tf-arcade .tf-stat{border-color:rgba(124,212,253,.45);background:rgba(124,212,253,.1);font-family:'Mitr'}
.tf.tf-arcade .tf-go{display:flex;width:fit-content;margin:16px 20px 0;padding:9px 20px 9px 10px;gap:12px;border-radius:99px;
  background:linear-gradient(180deg,#2a1a4a,#1a0f33);border:3px solid #3b2a52;box-shadow:0 5px 0 #0b0616,0 0 22px rgba(255,111,181,.3)}
.tf.tf-arcade .tf-go .fa-gamepad{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:14px;color:#fff;
  background:radial-gradient(circle at 35% 30%,#ffc2e2,#ff5cae 45%,#c21f78 100%);border:3px solid #3b2a52;
  box-shadow:0 3px 0 #3b2a52,inset 0 -3px 5px rgba(0,0,0,.25),0 0 14px rgba(255,92,174,.7)}
.tf.tf-arcade .tf-go:hover .fa-gamepad{transform:translateY(2px);box-shadow:0 1px 0 #3b2a52,inset 0 -2px 4px rgba(0,0,0,.25),0 0 18px rgba(255,92,174,.9)}
.tf.tf-arcade .tf-go::after{display:none}
.tf.tf-arcade .tf-coin{display:block;margin:12px 20px 0;font:600 11px 'Mitr';letter-spacing:.3em;color:#ffd166;
  text-shadow:0 0 8px rgba(255,209,102,.8);animation:tfBlink 1.2s steps(1) infinite}
@keyframes tfBlink{50%{opacity:0}}
.tf-coin{display:none}

/* อีสปอร์ต (ฉาก C): กราฟิกถ่ายทอดสด — การ์ดมุมตัด 2 มุม · ป้ายอันดับเฉียงไล่สี · แถบ LIVE · เส้นแสงวิ่งขอบบน · ปุ่มเฉียง */
.tf.tf-arena .tf-info{width:min(31%,420px);padding:0 0 18px;border-radius:0;
  clip-path:polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px));
  background:linear-gradient(160deg,rgba(22,11,48,.93),rgba(46,16,82,.86));
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:inset 5px 0 0 #ff5cae,inset 0 -1px 0 rgba(255,255,255,.12)}
.tf.tf-arena .tf-info::before{display:none}
.tf.tf-arena .tf-info::after{content:'';position:absolute;left:0;right:0;top:0;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,#fff 50%,transparent) -60% 0/45% 100% no-repeat,rgba(255,255,255,.14);
  animation:tfScan 3.4s cubic-bezier(.5,0,.5,1) infinite}
@keyframes tfScan{to{background-position:190% 0,0 0}}
.tf.tf-arena .tf-rk{position:relative;gap:14px;height:62px;margin:0 0 6px;padding:0 90px 0 5px;
  background:linear-gradient(90deg,rgba(255,92,174,.22),rgba(154,77,255,.08) 60%,transparent);border-bottom:1px solid rgba(255,255,255,.12)}
.tf.tf-arena .tf-rk-n{align-self:stretch;display:flex;align-items:center;justify-content:center;min-width:84px;padding:0 20px 0 12px;
  font:700 42px/1 'Mitr';color:#fff;-webkit-background-clip:border-box;background-clip:border-box;
  background:linear-gradient(135deg,#ff5cae,#9a4dff);clip-path:polygon(0 0,100% 0,calc(100% - 16px) 100%,0 100%);
  text-shadow:0 3px 0 rgba(40,12,70,.55);filter:none}
.tf.tf-arena .tf-rk-n::before{content:'#';font-size:.5em;margin:0 2px -.35em 0;align-self:flex-start;padding-top:.5em;opacity:.85}
.tf.tf-arena .tf-rk-l{color:rgba(255,255,255,.7);letter-spacing:.18em}
.tf.tf-arena .tf-rk-l b{color:#fff;letter-spacing:.06em}
.tf.tf-arena .tf-rk::after{content:'● LIVE';position:absolute;right:16px;top:50%;transform:translateY(-50%);
  padding:4px 10px;border-radius:3px;background:#ff2e63;color:#fff;font:700 11px/1.2 'Mitr';letter-spacing:.16em;
  box-shadow:0 0 16px rgba(255,46,99,.55);animation:tfLive 1.6s ease-in-out infinite}
@keyframes tfLive{50%{background:#c81d4a;box-shadow:0 0 6px rgba(255,46,99,.3)}}
.tf.tf-arena .tf-tags,.tf.tf-arena .tf-info h3,.tf.tf-arena .tf-info p,.tf.tf-arena .tf-meta{margin-left:24px;margin-right:22px}
.tf.tf-arena .tf-tag{border:0;border-radius:3px;background:rgba(124,212,253,.18);color:#c9eeff;letter-spacing:.03em}
.tf.tf-arena .tf-tag.hot{background:rgba(255,209,102,.2);color:#ffe6a3}
.tf.tf-arena .tf-info h3{letter-spacing:.01em;text-shadow:0 2px 0 rgba(0,0,0,.35),0 0 18px rgba(154,77,255,.45)}
.tf.tf-arena .tf-stat{border-radius:3px;border-color:rgba(255,255,255,.18)}
.tf.tf-arena .tf-go{margin:16px 22px 0 24px;border:0;border-radius:0;padding:11px 26px 11px 22px;
  clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);background:linear-gradient(135deg,#ff5cae,#9a4dff);box-shadow:none}
.tf.tf-arena .tf-go:hover{transform:translateY(-2px);box-shadow:none;filter:brightness(1.1)}
.tf.tf-arena .tf-info.is-champ{box-shadow:inset 5px 0 0 #ffd166,inset 0 -1px 0 rgba(255,255,255,.12)}
.tf.tf-arena .tf-info.is-champ .tf-rk-n{background:linear-gradient(135deg,#fff1b8,#ffb62e 55%,#e0891a);color:#3b2a52;text-shadow:0 2px 0 rgba(255,255,255,.4)}
.tf.tf-arena .tf-info.is-champ .tf-go{background:linear-gradient(135deg,#ffd166,#ff9f43);color:#3b2a52}
.tf.tf-port.tf-arena .tf-info{width:auto;padding:0 0 12px;border-radius:0}
.tf.tf-port.tf-arena .tf-rk{display:flex;height:50px;padding-right:76px}
.tf.tf-port.tf-arena .tf-rk-n{font-size:32px;min-width:66px}
.tf.tf-port.tf-arena .tf-tags{display:flex;margin:8px 16px 0 18px}
.tf.tf-port.tf-arena .tf-info h3,.tf.tf-port.tf-arena .tf-info p{margin-left:18px;margin-right:16px}
.tf.tf-port.tf-arena .tf-meta{margin-left:18px}
.tf.tf-port.tf-arena .tf-go{margin:10px 0 0 8px}
@media (prefers-reduced-motion:reduce){.tf-coin,.tf.tf-arcade .tf-rk::before,.tf.tf-arcade .tf-rk::after,.tf.tf-arena .tf-rk::after,.tf.tf-arena .tf-info::after{animation:none}}

/* ── แสงสะท้อนวิ่งผ่านกระจกจอของเกมที่กำลังโชว์ (เหมือนแสงในร้านขยับ) ── */
.tf.tf-on .tf-card::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;
  background:linear-gradient(112deg,transparent 36%,rgba(255,255,255,.3) 47%,rgba(255,255,255,.07) 53%,transparent 63%) 150% 0/260% 100% no-repeat}
.tf.tf-on .tf-card.is-front::after{animation:tfSheen 5.6s ease-in-out 1.1s infinite}
@keyframes tfSheen{0%{background-position:150% 0;opacity:0}10%{opacity:1}42%{background-position:-70% 0;opacity:1}50%,100%{background-position:-70% 0;opacity:0}}

/* ── ชั้นฝุ่นในแสง/กระดาษโปรย (วาดด้วย player.js) ── */
.tf-pfx{z-index:3;pointer-events:none}

/* ── นำทาง: ปุ่มลูกศรกลมซ้าย/ขวา (แบบปุ่มเดิมของเว็บ) + แถบความคืบหน้า 10 ช่องแบบสตอรี่ (ไม่มีตัวเลข) ── */
.tf-nav{position:absolute;inset:0;z-index:6;pointer-events:none}
.tf-nav>button{position:absolute;top:50%;width:52px;height:52px;margin-top:-26px;border-radius:50%;cursor:pointer;pointer-events:auto;
  display:flex;align-items:center;justify-content:center;font-size:17px;color:#3b2a52;background:rgba(255,255,255,.94);
  border:3px solid #3b2a52;box-shadow:0 4px 0 rgba(10,4,24,.55);transition:transform .18s cubic-bezier(.34,1.56,.64,1),background .18s,opacity .3s}
.tf-nav>button:hover{background:#ffd166;transform:scale(1.07)}
.tf-nav>button:active{transform:scale(.96);box-shadow:0 2px 0 rgba(10,4,24,.55)}
.tf-prev{left:1.6%}.tf-next{right:1.6%}
.tf-dots{position:absolute;left:50%;bottom:1.8%;transform:translateX(-50%);width:min(44%,540px);display:flex;gap:6px;pointer-events:auto;
  padding:3px 14px;border-radius:99px;background:rgba(10,4,24,.38);box-shadow:0 0 18px rgba(10,4,24,.35)}   /* ต่ำลง + พื้นเข้มรอง (อ่านออกบนฉากสว่าง) */
.tf.tf-final .tf-dots{opacity:.28;transition:opacity .8s}
.tf.tf-final .tf-dots:hover,.tf.tf-final .tf-dots:focus-within{opacity:1}
.tf-dots button{flex:1;height:18px;padding:7px 0;border:0;background:none;cursor:pointer;font-size:0;color:transparent}
.tf-dots button::before{content:'';display:block;height:4px;border-radius:99px;background:rgba(255,255,255,.28);
  box-shadow:0 1px 3px rgba(0,0,0,.35);transition:height .15s,background .2s}
.tf-dots button:hover::before{height:6px;background:rgba(255,255,255,.5)}
.tf-dots button i{position:relative;display:block;width:0;height:4px;margin-top:-4px;border-radius:99px;background:#fff}
.tf-dots button:hover i{height:6px;margin-top:-6px}
.tf-dots button.done i{width:100%;box-shadow:0 0 6px rgba(255,255,255,.45)}
.tf-dots button.on i{width:100%;background:linear-gradient(90deg,#ff8fc7,#ffc2e2);box-shadow:0 0 10px rgba(255,143,199,.9)}
.tf-dots button.on.run i{width:0;animation:tfFillW var(--hold,5600ms) linear forwards}
.tf-dots button.on.run i::after{content:'';position:absolute;right:-4px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;
  background:#fff;box-shadow:0 0 10px 3px rgba(255,143,199,.95)}
@keyframes tfFillW{to{width:100%}}
.tf-tip{position:absolute;bottom:calc(100% + 10px);left:0;transform:translate(-50%,6px);display:flex;align-items:center;gap:10px;
  padding:7px 14px 7px 7px;border-radius:14px;background:rgba(16,9,34,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.18);box-shadow:0 12px 30px rgba(0,0,0,.45);color:#fff;font:600 13px 'Mitr';white-space:nowrap;
  pointer-events:none;opacity:0;transition:opacity .15s,transform .2s}
.tf-tip.show{opacity:1;transform:translate(-50%,0)}
.tf-tip img{width:32px;height:45px;object-fit:cover;border-radius:6px;border:1.5px solid rgba(255,255,255,.6)}
.tf-tip b{color:#ffd166;margin-right:6px}
.tf.tf-scroll .tf-nav>button{display:none}
.tf-load{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:7;background:rgba(255,255,255,.08);transition:opacity .6s}
.tf-load i{display:block;height:100%;background:linear-gradient(90deg,#ff8fc7,#b490f5,#7cd4fd);transform-origin:0 0;transform:scaleX(0);transition:transform .3s}
.tf.tf-loaded .tf-load{opacity:0}

/* ── โหมดเลื่อนจอ: หนังค้างกลางจอขณะเลื่อน ── */
.tf.tf-scroll{height:var(--tf-len,600vh)}
.tf.tf-scroll .tf-stage{position:sticky;top:0;height:100svh;max-height:none;aspect-ratio:auto}

/* ── มือถือ / จอแนวตั้ง ── */
.tf.tf-port .tf-info{left:4%;right:4%;top:auto;bottom:86px;width:auto;transform:none;padding:16px 18px 18px}
.tf.tf-port.is-moving .tf-info,.tf.tf-port .tf-info.is-changing{transform:translateY(8px)}
.tf.tf-port .tf-info{padding:12px 14px 14px;border-radius:18px}
.tf.tf-port.tf-arcade .tf-info{width:auto;padding:0 0 12px}
.tf.tf-port.tf-arcade .tf-rk{padding:8px 56px 8px 12px}    /* เว้นที่ให้ตัวการ์ตูนพิกเซลด้านขวา (เดิมทับคำว่า ประจำสัปดาห์) */
.tf.tf-port.tf-arcade .tf-rk::before{display:none}           /* แถบหัวมือถือแคบ: ตัวซ้ายทับเลขอันดับ → ซ่อน */
.tf.tf-port.tf-arcade .tf-rk-n{font-size:34px}
.tf.tf-port.tf-arcade .tf-coin{display:none}
.tf.tf-port .tf-rk,.tf.tf-port .tf-tags{display:inline-flex;vertical-align:middle}      /* มือถือ: เลขอันดับ + ป้ายแนวเกมบรรทัดเดียว */
.tf.tf-port .tf-rk{gap:8px}
.tf.tf-port .tf-rk-n{font-size:38px}
.tf.tf-port .tf-tags{margin:0 0 0 10px}
.tf.tf-port .tf-info h3{margin:8px 0 3px;font-size:18px}
.tf.tf-port .tf-info p{font-size:13.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tf.tf-port .tf-meta{display:inline-flex;margin-top:10px;vertical-align:middle}
.tf.tf-port .tf-go{margin:10px 0 0 8px;padding:8px 14px;font-size:14px;vertical-align:middle}
.tf.tf-port .tf-nav>button{width:40px;height:40px;margin-top:-20px;font-size:14px;top:42%}
.tf.tf-port .tf-prev{left:10px}.tf.tf-port .tf-next{right:10px}
.tf.tf-port .tf-dots{width:auto;left:4%;right:4%;transform:none;bottom:14px;gap:4px}
.tf.tf-port .tf-info{bottom:44px}

@media (prefers-reduced-motion:reduce){
  .tf-fx::after{animation:none}
  .tf-info,.tf :is(.tf-base,.tf-light,.tf-cards){transition:none}
}

/* ═════ กล่องข้อมูลแบบกระจกใสจาง ๆ (ผู้ใช้ขอ 26 ก.ย.: ฟีลกระจก ไม่บังฉากด้านหลัง) ═════
   พื้นโปร่ง ~25% + เบลอฉากหลังนิด ๆ (ยังเห็นตู้/ไฟด้านหลัง) · ขอบกระจกบางสว่าง · แสงสะท้อนเฉียงบนผิวกระจก
   ตัวอักษรมีเงานุ่มให้อ่านออกบนฉากทุกสี · แถบหัว (เลขอันดับ) ก็เป็นกระจกสีจาง ๆ */
.tf.tf-arcade .tf-info,.tf.tf-arena .tf-info{
  background:linear-gradient(155deg,rgba(255,255,255,.16),rgba(255,255,255,.04) 42%,rgba(20,10,44,.22));
  -webkit-backdrop-filter:blur(7px) saturate(1.5) brightness(.92);backdrop-filter:blur(7px) saturate(1.5) brightness(.92)}
.tf.tf-arcade .tf-info{border:1px solid rgba(255,255,255,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 0 0 1px rgba(255,255,255,.06),0 0 28px rgba(255,111,181,.22),0 16px 36px rgba(0,0,0,.28)}
.tf.tf-arena .tf-info{box-shadow:inset 4px 0 0 rgba(255,92,174,.85),inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(255,255,255,.12)}
.tf.tf-arcade .tf-info::after{background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.13) 38%,transparent 47%),
  repeating-linear-gradient(0deg,rgba(255,255,255,.02) 0 1px,transparent 1px 3px);mix-blend-mode:normal}
.tf.tf-arcade .tf-rk{background:linear-gradient(180deg,rgba(255,92,174,.55),rgba(154,77,255,.45));border-bottom:1px solid rgba(255,255,255,.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
.tf.tf-arcade .tf-info.is-champ .tf-rk{background:linear-gradient(180deg,rgba(255,224,138,.7),rgba(224,137,26,.55))}
.tf.tf-arena .tf-rk{background:linear-gradient(90deg,rgba(255,92,174,.28),transparent 70%)}
.tf.tf-arcade .tf-info h3,.tf.tf-arena .tf-info h3{text-shadow:0 2px 10px rgba(10,4,24,.85),0 0 2px rgba(10,4,24,.9)}
.tf.tf-arcade .tf-info p,.tf.tf-arena .tf-info p,.tf.tf-arcade .tf-rk-l,.tf.tf-arena .tf-rk-l{color:#fff;text-shadow:0 1px 6px rgba(10,4,24,.9)}
.tf.tf-arcade .tf-go{background:rgba(26,15,51,.55)}
.tf.tf-arcade .tf-stat,.tf.tf-arena .tf-stat{background:rgba(10,4,24,.35)}

/* ═════ จอโฮโลแกรมกระจกข้างจอเกม (26 ก.ย. รุ่นใหม่ทั้งกล่อง) ═════
   player.js ดัดกล่อง 424×600 ลงระนาบเดียวกับจอตู้ (matrix3d) ต่อจากขอบขวาของการ์ด สูงเท่าการ์ด + ซูม/ไหวไปกับกล้อง
   กระจกใสจาง ๆ เห็นตู้ข้างหลัง · ขอบแสงนีออน · เส้นสแกนโฮโลแกรมวิ่ง · ตอนเปลี่ยนอันดับ "ฉายออก" จากขอบจอเกม */
.tf-holo{position:absolute;inset:0;z-index:5;pointer-events:none}
.tf.tf-holo-on:not(.tf-port) .tf-info{left:0;top:0;right:auto;bottom:auto;width:424px;height:600px;min-height:0;transform-origin:0 0;
  display:flex;flex-direction:column;padding:0 0 22px;border-radius:22px;overflow:hidden;pointer-events:auto;
  background:linear-gradient(165deg,rgba(255,255,255,.2),rgba(255,255,255,.05) 38%,rgba(120,60,200,.1) 70%,rgba(20,8,44,.34));
  -webkit-backdrop-filter:blur(9px) saturate(1.6) brightness(.9);backdrop-filter:blur(9px) saturate(1.6) brightness(.9);
  border:2px solid rgba(255,255,255,.4);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.55),inset 0 0 40px rgba(180,144,245,.18),0 0 0 1px rgba(255,143,199,.35),
    0 0 36px rgba(255,111,181,.45),0 0 90px rgba(124,212,253,.18);
  transition:opacity .3s ease}
.tf.tf-holo-on:not(.tf-port).is-moving .tf-info,.tf.tf-holo-on:not(.tf-port) .tf-info.is-changing{opacity:0}
.tf.tf-holo-on:not(.tf-port) .tf-info::before{display:block;content:'';position:absolute;left:0;right:0;top:-30%;height:26%;z-index:3;pointer-events:none;
  padding:0;border-radius:0;-webkit-mask:none;mask:none;opacity:1;
  background:linear-gradient(180deg,transparent,rgba(160,230,255,.13) 45%,rgba(255,255,255,.22) 50%,rgba(160,230,255,.13) 55%,transparent);
  animation:tfHoloScan 4.2s linear infinite}
@keyframes tfHoloScan{to{transform:translateY(560%)}}
.tf.tf-holo-on:not(.tf-port) .tf-info::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;mix-blend-mode:normal;
  background:linear-gradient(118deg,transparent 22%,rgba(255,255,255,.16) 30%,transparent 40%,transparent 62%,rgba(255,255,255,.08) 68%,transparent 74%),
    repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 4px)}
.tf.tf-holo-on:not(.tf-port) .tf-info.is-in{animation:tfHoloIn .75s cubic-bezier(.2,.8,.2,1) both}
@keyframes tfHoloIn{0%{clip-path:inset(0 100% 0 0 round 22px);filter:brightness(1.8) saturate(.6)}
  55%{clip-path:inset(0 0 0 0 round 22px);filter:brightness(1.3)}70%{filter:brightness(.9)}80%{filter:brightness(1.12)}100%{clip-path:inset(0 0 0 0 round 22px);filter:none}}
/* หัวจอ: ป้ายไฟหัวตู้ + เลขอันดับใหญ่ */
.tf.tf-holo-on:not(.tf-port) .tf-rk{height:112px;flex:none;margin:0 0 6px;gap:14px;
  background:linear-gradient(180deg,rgba(255,92,174,.62),rgba(154,77,255,.5));border-bottom:2px solid rgba(255,255,255,.35)}
.tf.tf-holo-on:not(.tf-port) .tf-rk-n{font-size:78px}
.tf.tf-holo-on:not(.tf-port) .tf-rk-l{font-size:16px}
.tf.tf-holo-on:not(.tf-port) .tf-rk-l b{font-size:20px}
.tf.tf-holo-on:not(.tf-port) .tf-rk::before{left:22px;transform:scale(1.35);transform-origin:0 50%}
.tf.tf-holo-on:not(.tf-port) .tf-rk::after{right:60px;transform:scale(1.35);transform-origin:100% 50%}
.tf.tf-holo-on:not(.tf-port) .tf-tags,.tf.tf-holo-on:not(.tf-port) .tf-info h3,.tf.tf-holo-on:not(.tf-port) .tf-info p,
.tf.tf-holo-on:not(.tf-port) .tf-meta{margin-left:30px;margin-right:28px}
.tf.tf-holo-on:not(.tf-port) .tf-tags{margin-top:16px}
.tf.tf-holo-on:not(.tf-port) .tf-tag{font-size:15px;padding:5px 14px}
.tf.tf-holo-on:not(.tf-port) .tf-info h3{margin-top:14px;font-size:38px;line-height:1.16}
.tf.tf-holo-on:not(.tf-port) .tf-info p{font-size:20px;line-height:1.5;margin-top:10px}
.tf.tf-holo-on:not(.tf-port) .tf-meta{margin-top:16px}
.tf.tf-holo-on:not(.tf-port) .tf-stat,.tf.tf-holo-on:not(.tf-port) .tf-rate{font-size:16px}
.tf.tf-holo-on:not(.tf-port) .tf-go{align-self:flex-start;margin:auto 30px 0;font-size:19px;padding:12px 24px 12px 12px}
.tf.tf-holo-on:not(.tf-port) .tf-go .fa-gamepad{width:42px;height:42px;font-size:17px}
.tf.tf-holo-on:not(.tf-port) .tf-coin{margin:16px 30px 0;font-size:14px}
.tf.tf-holo-on:not(.tf-port) .tf-info.is-champ{border-color:rgba(255,230,160,.6);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.55),inset 0 0 40px rgba(255,209,102,.2),0 0 0 1px rgba(255,209,102,.5),0 0 44px rgba(255,200,90,.55)}

/* จอเกมเปิดเครื่องแบบจอหลอด: เส้นแสงกลางจอ → ขยายเต็มจอ → จางเผยปกเกม (ทุกครั้งที่กล้องจอด) */
.tf.tf-on .tf-card::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;background:#f4fbff}
/* ปกแนวนอนในจอแนวตั้ง: เต็มภาพ + พื้นหลังปกเดียวกันเบลอ · คำสำคัญไม่ตัดบรรทัดกลางคำ */
.tf.tf-on .tf-card.is-wide{background:#120a24;overflow:hidden}
.tf.tf-on .tf-card.is-wide img{position:relative;z-index:1;object-fit:contain}
.tf-cv-bg{position:absolute;inset:-12%;background-size:cover;background-position:center;filter:blur(16px) brightness(.62) saturate(1.2);pointer-events:none}
.tf-tag{white-space:nowrap}
.tf-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tf.tf-on .tf-card.is-boot::before{animation:tfBoot .85s cubic-bezier(.3,.7,.3,1) both}
@keyframes tfBoot{0%{opacity:.42;transform:scale(0,.004)}18%{opacity:.42;transform:scale(1,.004)}42%{opacity:.34;transform:scale(1,1)}100%{opacity:0;transform:scale(1,1)}}   /* เปิดจอนุ่ม ๆ (เดิมแฟลชขาวเต็ม ดูเหมือนภาพกระตุก) */
@media (prefers-reduced-motion:reduce){.tf.tf-holo-on .tf-info::before,.tf.tf-holo-on .tf-info.is-in{animation:none}}

/* แสงรั่วแบบเลนส์หนังพาดผ่านจอตอนกล้องเคลื่อนระหว่างอันดับ (ชมพู→ฟ้า เบา ๆ) */
.tf-fx::before{content:'';position:absolute;inset:-10% -30%;pointer-events:none;opacity:0;mix-blend-mode:screen;
  background:linear-gradient(102deg,transparent 34%,rgba(255,120,190,.16) 44%,rgba(255,220,240,.22) 49%,rgba(124,212,253,.14) 55%,transparent 66%);
  transform:translateX(-70%)}
.tf.is-moving .tf-fx::before{animation:tfLeak 1.25s cubic-bezier(.4,0,.2,1) .1s both}
@keyframes tfLeak{0%{opacity:0;transform:translateX(-70%)}35%{opacity:1}100%{opacity:0;transform:translateX(70%)}}
@media (prefers-reduced-motion:reduce){.tf.is-moving .tf-fx::before{animation:none}}

/* ═════ ลูกเล่นตามบทพระเอก (หนังที่มีนักแสดง) ═════ */
/* บอลลูนคำพูดการ์ตูน: เด้งเหนือหัวเด็ก (ถ้าหัวชิดขอบบน → ไปข้างขวา หางชี้ซ้าย) · อยู่ในชั้นที่ซูมไปกับกล้อง */
.tf-say{position:absolute;left:0;top:0;z-index:4;pointer-events:none;transform:translate(-50%,calc(-100% - 18px))}
.tf-say.side{transform:translate(22px,-60%)}
.tf-say.left{transform:translate(calc(-100% - 30px),-40%)}
.tf-say.left .tf-say-in{transform-origin:100% 60%}
.tf-say.left .tf-say-in::before{left:auto;right:-16px;top:60%;bottom:auto;margin:-11px 0 0;border-width:11px 0 11px 16px;border-color:transparent transparent transparent #3b2a52}
.tf-say.left .tf-say-in::after{left:auto;right:-10px;top:60%;bottom:auto;margin:-7px 0 0;border-width:7px 0 7px 11px;border-color:transparent transparent transparent #fff}
.tf-say-in{position:relative;display:block;padding:9px 16px 10px;border-radius:18px;white-space:nowrap;
  font:700 clamp(14px,1.35vw,21px)/1.2 'Mitr';color:#3b2a52;background:#fff;border:3px solid #3b2a52;
  box-shadow:0 5px 0 rgba(10,4,24,.55),0 0 26px rgba(255,143,199,.45);
  opacity:0;transform:scale(.3);transform-origin:50% 100%;transition:opacity .18s,transform .18s}
.tf-say.side .tf-say-in{transform-origin:0 60%}
.tf-say-in::before,.tf-say-in::after{content:'';position:absolute;left:50%;width:0;height:0;border-style:solid}
.tf-say-in::before{bottom:-16px;margin-left:-11px;border-width:16px 11px 0;border-color:#3b2a52 transparent transparent}
.tf-say-in::after{bottom:-10px;margin-left:-7px;border-width:11px 7px 0;border-color:#fff transparent transparent}
.tf-say.side .tf-say-in::before{left:-16px;top:60%;bottom:auto;margin:-11px 0 0;border-width:11px 16px 11px 0;border-color:transparent #3b2a52 transparent transparent}
.tf-say.side .tf-say-in::after{left:-10px;top:60%;bottom:auto;margin:-7px 0 0;border-width:7px 11px 7px 0;border-color:transparent #fff transparent transparent}
.tf-say.show .tf-say-in{opacity:1;transform:none;animation:tfSayPop .5s cubic-bezier(.2,1.6,.35,1) both}
@keyframes tfSayPop{0%{transform:scale(.3) rotate(-6deg)}60%{transform:scale(1.08) rotate(2deg)}100%{transform:none}}
/* แถบหนังโรงช่วงฉากเปิด + ปุ่มข้าม */
.tf-lb{position:absolute;left:0;right:0;z-index:5;height:0;background:#05030a;pointer-events:none;transition:height .8s cubic-bezier(.2,.8,.2,1)}
.tf-lb-t{top:0}.tf-lb-b{bottom:0}
.tf.tf-lbx.tf-intro .tf-lb{height:8%}
.tf.tf-lbx.tf-intro .tf-head{transform:translateY(calc(8vh * .6))}
.tf-head{transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.tf-skip{position:absolute;right:24px;bottom:calc(8% + 14px);z-index:7;padding:7px 14px;border-radius:99px;cursor:pointer;
  font:600 13px 'Mitr';color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .4s,background .2s}
.tf-skip b{font-size:11px;margin-left:4px}
.tf-skip:hover{background:rgba(255,143,199,.35)}
.tf.tf-intro .tf-skip{opacity:1;pointer-events:auto}
/* ปุ่มเสียง 8 บิต (ปิดไว้ก่อน) */
.tf-snd{position:absolute;right:24px;top:9%;z-index:7;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;cursor:pointer;
  font:600 12px 'Mitr';color:#fff;background:rgba(20,10,40,.45);border:1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s,opacity .3s;opacity:.85}
.tf-snd:hover{opacity:1;background:rgba(255,143,199,.35)}
.tf-snd[aria-pressed="true"]{background:rgba(255,92,174,.55)}
.tf:not(.tf-on) .tf-snd,.tf:not(.tf-on) .tf-skip{display:none}
/* ตัวพิกเซลพระเอกวิ่งบนแถบความคืบหน้า */
.tf-runner{position:absolute;left:0;bottom:15px;width:30px;height:30px;margin-left:-15px;pointer-events:none;opacity:0;
  background-size:60px 30px;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 2px 0 rgba(10,4,24,.65)) drop-shadow(0 0 6px rgba(255,143,199,.6));
  transition:opacity .3s}
.tf-runner.on{opacity:1}
.tf-runner.run{animation:tfRun .22s steps(1) infinite}
@keyframes tfRun{0%{background-position:0 0}50%{background-position:-30px -2px}100%{background-position:0 0}}
/* อันดับ 1: แฟลชถ่ายรูป + กรอบรูปแวบ ๆ = ภาพค้างแบบฉากจบหนัง */
.tf-snap{position:absolute;inset:0;z-index:7;pointer-events:none;opacity:0}
.tf-snap.on{animation:tfSnap 1.4s ease-out both}
@keyframes tfSnap{0%{opacity:1;background:rgba(255,255,255,.55);box-shadow:inset 0 0 0 0 #fff}
  14%{opacity:1;background:rgba(255,255,255,0);box-shadow:inset 0 0 0 6px rgba(255,255,255,.9)}
  75%{opacity:1}100%{opacity:0;box-shadow:inset 0 0 0 6px rgba(255,255,255,.9)}}
.tf.tf-port .tf-snd span{display:none}
.tf.tf-port .tf-say-in{font-size:14px;padding:7px 12px}
@media (prefers-reduced-motion:reduce){.tf-runner.run,.tf-say.show .tf-say-in,.tf-snap.on{animation:none}.tf-lb{transition:none}}

/* ═════ โหมดเบา (html.perf-lite: มือถือ/แท็บเล็ต/iOS — เว็บตั้งไว้ก่อนวาดจอ กัน Safari แครชจาก GPU/หน่วยความจำ) ═════
   ตัด backdrop-filter (เบลอฉากหลังแพงมากบนมือถือ) ใช้พื้นทึบกึ่งใสแทน · หยุดแอนิเมชันวนที่ไม่จำเป็น */
html.perf-lite .tf-info,html.perf-lite .tf.tf-arcade .tf-info,html.perf-lite .tf.tf-holo-on .tf-info,html.perf-lite .tf-tip{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(22,12,46,.86)}
html.perf-lite .tf-info::before,html.perf-lite .tf-info::after{animation:none!important}
html.perf-lite .tf.tf-on .tf-card.is-front::after{animation:none}
html.perf-lite .tf-go::after{animation:none}
