/*
Theme Name: It-Teżor tal-Kliem
Author: Andre Bartolo
Description: A bilingual, illustrated home for Lina’s Maltese word adventure. Configure game links under Appearance > Customise > Game website.
Version: 1.4.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: it-tezor
*/
:root{--ink:#123b3b;--deep:#092f32;--gold:#eab951;--paper:#fbf8ef;--muted:#526967;--line:#d6dfd6}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;color:var(--ink);background:var(--paper);font:17px/1.65 'Trebuchet MS',Arial,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid #c88116;outline-offset:5px}img{max-width:100%;display:block}h1,h2,h3,p{margin:0 0 20px}h1,h2,h3,.brand,.footer-title{font-family:Georgia,'Times New Roman',serif}h1{font-size:clamp(3.2rem,6.6vw,6.5rem);line-height:1.04;letter-spacing:-.045em}h2{font-size:clamp(2.3rem,4vw,4rem);line-height:1.12;letter-spacing:-.035em}h3{font-size:1.7rem;line-height:1.2}.topbar{height:94px;padding:12px 5%;display:flex;align-items:center;justify-content:space-between;background:#fbf8eff5;position:relative;z-index:3;border-bottom:1px solid #ddd8c9}.brand{display:flex;align-items:center;gap:12px;font-size:1.18rem;line-height:1.1;font-weight:bold}.brand img{height:68px;width:68px;object-fit:contain;mix-blend-mode:multiply}.topbar nav{display:flex;gap:36px;font-size:.95rem;font-weight:bold}.topbar nav a:hover,.footer-links a:hover{text-decoration:underline;text-underline-offset:6px}.language{background:none;border:1px solid #9fae9c;border-radius:30px;padding:8px 18px;font-size:.9rem;color:var(--ink)}.hero{min-height:660px;height:calc(95vh - 94px);max-height:900px;position:relative;overflow:hidden;background:var(--deep);color:white;display:flex;align-items:center}.hero-art{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,35,36,.94),rgba(6,39,39,.63) 45%,rgba(8,41,41,.05) 80%),linear-gradient(0deg,#082d3260,transparent 40%)}.hero-content{position:relative;padding:70px 7%;max-width:900px}.eyebrow{font-size:.77rem;letter-spacing:.18em;font-weight:800;margin-bottom:22px}.hero .eyebrow{color:#f3cb77}.hero-lead{max-width:490px;font-size:1.15rem;color:#f2eee0;line-height:1.65}.actions{display:flex;gap:14px;flex-wrap:wrap;margin:32px 0}.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 25px;border:1px solid transparent;border-radius:8px;font-size:.95rem;font-weight:bold;transition:transform .2s,background .2s}.button:hover{transform:translateY(-3px)}.gold{background:var(--gold);color:#163c39;box-shadow:0 5px 25px #0001}.glass{background:#ffffff0b;border-color:#ffffff70;color:white;backdrop-filter:blur(8px)}.hero-note{font-size:.85rem;opacity:.8}.hero-stamp{position:absolute;right:5%;bottom:45px;border:1px solid #eee6b28a;border-radius:50%;width:145px;height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(9deg);background:#123b3b85;backdrop-filter:blur(5px)}.hero-stamp span{font-size:.65rem;letter-spacing:.12em}.hero-stamp strong{font:italic 1.9rem Georgia;margin:5px}.ribbon{display:flex;align-items:center;justify-content:center;gap:6%;padding:23px;background:var(--deep);color:#e6cc8b;font-size:.77rem;letter-spacing:.15em;font-weight:bold}.ribbon i{font-style:normal}.section{max-width:1250px;margin:auto;padding:100px 40px}.story{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.story-image{position:relative}.story-image img{width:100%;height:500px;object-fit:cover;border-radius:160px 160px 16px 16px}.image-label{position:absolute;bottom:25px;left:-18px;background:var(--gold);padding:10px 24px;font:italic 1.2rem Georgia;box-shadow:0 5px 20px #0002;transform:rotate(-4deg)}.story p:not(.eyebrow){color:var(--muted)}.text-link{display:inline-block;border-bottom:1px solid #759389;padding:5px 0;font-weight:bold}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.section-heading>p{max-width:330px;color:var(--muted)}.discover{padding-top:35px}.chapters{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.chapters article{background:#fff;border:1px solid #dfdfd1;border-radius:14px;overflow:hidden;transition:transform .25s}.chapters article:hover{transform:translateY(-6px)}.chapters img{width:100%;height:250px;object-fit:cover}.chapters article>div{padding:27px}.chapters .eyebrow{font-size:.7rem;display:block;margin-bottom:12px;color:#846a30}.chapters p{font-size:.95rem;margin-bottom:0;color:var(--muted)}.play-section{background:var(--deep);color:var(--paper);position:relative;overflow:hidden}.play-section:before{content:'✦';position:absolute;font-size:650px;line-height:1;right:-140px;top:-50px;color:#ffffff04}.play-inner{max-width:1130px;margin:auto;padding:90px 40px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:100px;position:relative}.play-inner>.eyebrow,.play-inner .eyebrow{color:var(--gold)}.demo-note{font-size:.9rem;color:#c1d0ca}.outline{color:white;background:transparent;border-color:#7e9c96}.puzzle-paper{background:#fbf5e6;color:var(--ink);border-radius:16px;padding:30px;box-shadow:12px 14px 0 #ffffff09;transform:rotate(2deg)}.puzzle-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;font-size:.72rem;letter-spacing:.08em}.puzzle-top strong{background:#e8e4d4;border-radius:22px;padding:6px 15px;font-size:.9rem;letter-spacing:.12em}.word-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.word-grid button{aspect-ratio:1;border:1px solid #e0dfd1;background:white;border-radius:8px;color:var(--ink);font-size:1.5rem;font-weight:bold;transition:background .15s,transform .15s}.word-grid button.selected{background:#eac67a;transform:scale(.94)}.word-grid button.found{background:#247867;color:#fff}.puzzle-bottom{text-align:center;font:italic 1rem Georgia;margin:24px 0 0}.word-result{min-height:3.2em;margin-bottom:12px;font-weight:bold;color:#f1ce7f}.learning{text-align:center}.learning-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:50px;margin-top:55px}.learning-columns p{color:var(--muted);font-size:1rem}.feature-icon{display:inline-flex;width:65px;height:65px;align-items:center;justify-content:center;border-radius:50%;background:#e9ede3;font:1.7rem Georgia;margin-bottom:25px}.trailer{padding-top:10px;text-align:center}.trailer-link{display:block;position:relative;overflow:hidden;border-radius:18px;max-width:950px;margin:40px auto 0;background:var(--deep)}.trailer-link img{width:100%;height:450px;object-fit:cover;filter:brightness(.7);transition:transform .6s}.trailer-link:hover img{transform:scale(1.03)}.play-circle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--gold);color:var(--deep);width:80px;height:80px;display:grid;place-items:center;border-radius:50%;font-size:1.5rem;padding-left:4px}.trailer-caption{position:absolute;bottom:30px;left:20px;right:20px;color:white;font-size:1rem}.trailer video{max-width:950px;width:100%;max-height:600px;background:var(--deep);border-radius:16px}.launch{text-align:center;border-top:1px solid var(--line);padding-top:70px}.launch>img{width:150px;margin:0 auto 30px;mix-blend-mode:multiply}.launch>p{color:var(--muted)}.platforms{display:flex;justify-content:center;gap:20px;margin:30px 0}.platform{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px;padding:16px 35px;min-width:215px}.platform span{font-size:.88rem;color:var(--muted)}footer{background:var(--deep);color:#f5eee0;text-align:center;padding:55px 25px}.footer-title{font-size:1.7rem}footer p{color:#bfcfc9;margin-top:8px;font-size:.95rem}.footer-links{display:flex;gap:30px;justify-content:center;margin:25px 0;font-size:.9rem}footer small{color:#b2c2bd;font-size:.8rem}.reading{max-width:850px;min-height:55vh;margin:auto;padding:70px 25px}.reading h1{font-size:3rem}.skip{position:absolute;top:-100px;left:20px;z-index:9;background:white;padding:10px}.skip:focus{top:10px}@media(max-width:850px){.hero{min-height:600px}.hero-stamp{display:none}.hero-content{padding:60px 6%}.hero-shade{background:linear-gradient(90deg,#062b30ed,#062b30a8 65%,#062b304d)}.story{gap:40px}.story-image img{height:400px}.chapters img{height:180px}.chapters article>div{padding:20px}.play-inner{gap:40px}.learning-columns{gap:25px}.section{padding:65px 25px}}@media(max-width:600px){.topbar{height:80px;padding:8px 20px}.brand img{width:54px;height:54px}.brand{font-size:1rem}.topbar nav{display:none}.hero{height:auto;min-height:640px}.hero-art{object-position:58% center}.hero-content{padding:65px 25px}.hero-lead{font-size:1.05rem}.hero-note{font-size:.75rem}.ribbon{gap:10px;font-size:.56rem;letter-spacing:.08em;padding:20px 10px}.section{padding:60px 23px}.story,.play-inner{grid-template-columns:1fr}.story{gap:40px}.story-image img{height:330px}.image-label{left:-8px}.section-heading{display:block}.chapters{grid-template-columns:1fr}.chapters img{height:240px}.play-inner{padding:65px 23px;gap:30px}.puzzle-paper{padding:25px;transform:rotate(0)}.learning-columns{grid-template-columns:1fr;gap:24px;margin-top:30px}.learning-columns>div{border-bottom:1px solid var(--line);padding:20px 10px}.feature-icon{margin-bottom:20px}.trailer-link img{height:300px}.platforms{flex-direction:column;gap:10px}.platform{min-width:0}.footer-links{flex-wrap:wrap;gap:18px}.actions{gap:10px}.button{padding:12px 18px}.launch>img{width:120px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Interactive adventure preview and gentle, optional motion. */
.puzzle-paper{transform:none;position:relative;padding:26px;box-shadow:0 24px 70px #0003;border-top:4px solid var(--gold)}
.word-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;touch-action:none;user-select:none}
.word-grid button{font-size:clamp(.95rem,1.8vw,1.4rem);padding:0;border-radius:6px;min-width:0}
.word-grid button.found{background:#237465}.word-grid button.selected{background:#e8bc5c;color:#123b3b;transform:scale(.94)}
.play-inner{grid-template-columns:1fr 1.12fr;gap:65px;max-width:1220px}.play-inner h2{font-size:clamp(2rem,3.8vw,3.4rem)}
.word-list{display:flex;flex-wrap:wrap;gap:9px;margin:26px 0}.word-chip{border:1px solid #6a8984;border-radius:9px;padding:8px 13px;min-width:95px;display:flex;flex-direction:column}.word-chip strong{font-size:.9rem;letter-spacing:.07em}.word-chip span{font-size:.77rem;color:#c5d8d1}.word-chip.discovered{background:#246052;border-color:#94b6a2;animation:word-pop .35s ease}.word-chip.discovered span{color:#f3daa0}.puzzle-social{display:flex;gap:20px;font-size:.9rem}.puzzle-social a{border-bottom:1px solid #91aca4;padding:4px}.play-inner .actions{margin:18px 0}.word-result{font-size:.95rem;min-height:3.3em}
.puzzle-reward{margin-top:22px;text-align:center;padding:18px 10px 4px;animation:reward-in .6s ease}.puzzle-reward[hidden]{display:none}.puzzle-reward h3{margin:5px 0 8px;font-size:1.55rem}.puzzle-reward p{font-size:.85rem;margin-bottom:0}.reward-star{display:inline-block;font-size:2.8rem;line-height:1;color:#b78421;animation:star-turn 1s ease}.puzzle-reward~.puzzle-bottom{font-size:.9rem}
.future{padding-top:30px}.future-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.future-card{position:relative;background:#e8eee6;border:1px solid #ccd7c7;border-radius:16px;padding:35px;overflow:hidden}.future-card:nth-child(2){background:#f3e8ce;border-color:#e0d1ad}.future-card .eyebrow{font-size:.7rem;max-width:85%}.future-symbol{position:absolute;right:24px;top:17px;font-size:3rem;color:#6b8876;opacity:.5}.future-card h3{font-size:2rem;max-width:90%}.future-card>p:not(.eyebrow){color:#435b56}.future-card details{border-top:1px solid #173b3b26;padding-top:16px;margin-top:24px}.future-card summary{cursor:pointer;font-size:.95rem;font-weight:bold}.future-card details p{font-size:.9rem;margin:16px 0 0}.future-note{display:flex;align-items:center;gap:24px;max-width:760px;margin:35px auto 20px;text-align:center}.future-note>span{font-size:2.5rem;color:#a27c33}.future-note p{margin:0;color:var(--muted)}.social-actions{display:flex;justify-content:center;gap:15px}.social-button{background:var(--ink);color:white;min-width:140px}.social-button:hover{background:#205957}.reveal{opacity:0;transform:translateY(22px);transition:opacity .65s ease,transform .65s ease}.reveal.revealed{opacity:1;transform:translateY(0)}.hero-content{animation:hero-enter .8s ease both}.hero-stamp{animation:stamp-enter 1s ease both}
@keyframes hero-enter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes stamp-enter{from{opacity:0;transform:rotate(-8deg) scale(.8)}to{opacity:1;transform:rotate(9deg) scale(1)}}@keyframes word-pop{0%{transform:scale(.95)}60%{transform:scale(1.05)}100%{transform:scale(1)}}@keyframes reward-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes star-turn{from{transform:rotate(-90deg) scale(.4)}to{transform:rotate(0) scale(1)}}
@media(max-width:850px){.play-inner{gap:30px}.puzzle-paper{padding:18px}.word-grid{gap:4px}}@media(max-width:600px){.play-inner,.future-grid{grid-template-columns:1fr}.word-grid button{font-size:1rem}.puzzle-paper{padding:16px}.future-card{padding:27px}.word-chip{min-width:88px}.future-note{gap:12px}.puzzle-top{font-size:.65rem}.puzzle-top strong{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}.hero-content,.hero-stamp,.word-chip.discovered,.puzzle-reward,.reward-star{animation:none!important}.reveal{transition:none!important}}
/* Ambient harbour movement. Playback is always user-controlled. */
.hero-art{animation:harbour-drift 24s ease-in-out infinite alternate;transform-origin:65% 55%}
.hero-sparkles{position:absolute;inset:0;pointer-events:none;overflow:hidden}.hero-sparkles i{position:absolute;color:#ffdd91;font-style:normal;text-shadow:0 0 16px #f4c769;animation:harbour-glow 6s ease-in-out infinite;opacity:.15}.hero-sparkles i:nth-child(1){left:61%;top:24%;font-size:20px}.hero-sparkles i:nth-child(2){left:82%;top:52%;animation-delay:-2s;font-size:29px}.hero-sparkles i:nth-child(3){left:73%;top:73%;animation-delay:-4s;font-size:16px}.hero-sparkles i:nth-child(4){left:92%;top:20%;animation-delay:-1s;font-size:18px}.hero-sparkles i:nth-child(5){left:54%;top:61%;animation-delay:-3s;font-size:14px}
.motion-control{position:absolute;right:24px;top:22px;z-index:2;border:1px solid #fff7;border-radius:20px;color:white;background:#092f32b3;padding:6px 13px;font-size:.8rem;backdrop-filter:blur(8px)}.motion-paused .hero-art,.motion-paused .hero-sparkles i{animation-play-state:paused}
@keyframes harbour-drift{from{transform:scale(1)}to{transform:scale(1.055) translateX(-.6%)}}@keyframes harbour-glow{0%,100%{opacity:.1;transform:translateY(6px) scale(.8)}50%{opacity:.7;transform:translateY(-8px) scale(1.1)}}
@media(prefers-reduced-motion:reduce){.hero-art,.hero-sparkles i{animation:none!important}.hero-sparkles{display:none}.motion-control{display:none}}
/* Site-wide motion system: a persistent, explicit visitor preference. */
.topbar{gap:20px}.topbar nav{margin-left:auto;margin-right:auto}.topbar .motion-control{position:static;display:inline-flex!important;white-space:nowrap;align-items:center;color:var(--ink);background:#e8ede3;border-color:#bac8b6;padding:8px 14px;font-size:.8rem;backdrop-filter:none}.topbar .motion-control[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.button{position:relative;overflow:hidden;isolation:isolate}.button-ripple{position:absolute;width:18px;height:18px;border-radius:50%;background:#ffffff60;pointer-events:none;transform:translate(-50%,-50%);animation:button-ripple .65s ease-out forwards!important;z-index:-1}
.motion-on .button,.motion-on .language,.motion-on .motion-control{transition:transform .23s ease,box-shadow .23s ease,background .23s ease!important}.motion-on .button:hover,.motion-on .button:focus-visible{transform:translateY(-4px);box-shadow:0 10px 24px #092f3228}.motion-on .button:active{transform:translateY(0) scale(.96)}.motion-on .language:hover{transform:translateY(-2px)}
.motion-on .topbar nav a{position:relative}.motion-on .topbar nav a:after{content:'';position:absolute;bottom:-6px;left:0;width:100%;height:2px;background:#a77c2a;transform:scaleX(0);transform-origin:left;transition:transform .25s ease!important}.motion-on .topbar nav a:hover:after,.motion-on .topbar nav a:focus-visible:after{transform:scaleX(1)}
.motion-on .motion-item{transition:opacity .7s ease var(--reveal-delay,0ms),transform .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay,0ms)!important}.motion-on .motion-item:not(.seen){opacity:0;transform:translateY(25px)}.motion-on .motion-item.seen{opacity:1;transform:translateY(0)}
.motion-on .story-image{overflow:hidden;border-radius:160px 160px 16px 16px}.motion-on .story-image img,.motion-on .chapters img{transition:transform .65s ease,filter .65s ease!important}.motion-on .story-image.in-view img{animation:story-breathe 12s ease-in-out infinite alternate!important}.motion-on .chapters article:hover img{transform:scale(1.055);filter:saturate(1.08)}.motion-on .chapters article:hover{transform:translateY(-7px);box-shadow:0 15px 32px #123b3b18}.motion-on .chapters article{transition:opacity .7s ease,transform .4s ease,box-shadow .4s ease!important}.motion-on .image-label{animation:label-sway 7s ease-in-out infinite alternate!important;left:12px}.motion-on .hero-art{animation:harbour-drift 24s ease-in-out infinite alternate!important}.motion-on .hero-sparkles{display:block!important}.motion-on .hero-sparkles i{animation:harbour-glow 6s ease-in-out infinite!important}.motion-on .hero-sparkles i:nth-child(2){animation-delay:-2s!important}.motion-on .hero-sparkles i:nth-child(3){animation-delay:-4s!important}.motion-on .hero-sparkles i:nth-child(4){animation-delay:-1s!important}.motion-on .hero-sparkles i:nth-child(5){animation-delay:-3s!important}
.motion-on .hero-content{animation:hero-enter .8s ease both!important}.motion-on .hero-stamp{animation:seal-float 8s ease-in-out infinite!important}.motion-on .feature-icon{transition:transform .4s ease,background .4s ease!important}.motion-on .learning-columns>div:hover .feature-icon{transform:rotate(-8deg) scale(1.12);background:#f0d99e}.motion-on .future-card.in-view .future-symbol{animation:compass-drift 10s ease-in-out infinite alternate!important}.motion-on .future-card details[open] p{animation:hero-enter .4s ease both!important}.motion-on .word-grid button{transition:background .18s ease,transform .18s ease!important}.motion-on .word-grid button:hover{transform:scale(1.06)}.motion-on .word-chip.discovered{animation:word-pop .35s ease!important}.motion-on .puzzle-reward{animation:reward-in .6s ease!important}.motion-on .reward-star{animation:star-turn 1s ease!important}.motion-on .launch.in-view>img{animation:logo-float 7s ease-in-out infinite!important}
body.motion-off *,body.motion-off *:before,body.motion-off *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body.motion-off .motion-item{opacity:1;transform:none}.motion-off .hero-art{transform:none}.motion-off .hero-sparkles{display:none}.motion-off .button:hover,.motion-off .chapters article:hover{transform:none}
@keyframes button-ripple{to{transform:translate(-50%,-50%) scale(24);opacity:0}}@keyframes story-breathe{from{transform:scale(1)}to{transform:scale(1.035)}}@keyframes label-sway{from{transform:rotate(-3deg) translateY(0)}to{transform:rotate(-1deg) translateY(-4px)}}@keyframes seal-float{0%,100%{transform:rotate(9deg) translateY(0)}50%{transform:rotate(6deg) translateY(-9px)}}@keyframes compass-drift{from{transform:rotate(-9deg)}to{transform:rotate(12deg)}}@keyframes logo-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(max-width:850px){.topbar{gap:10px}.topbar nav{gap:16px}.brand{font-size:1rem}.topbar .motion-control{font-size:.72rem;padding:8px 10px}}@media(max-width:600px){.topbar{padding:8px 12px;gap:8px}.brand{gap:5px;font-size:.85rem}.brand img{width:42px;height:42px}.topbar .motion-control{margin-left:auto;font-size:.7rem;padding:7px 9px}.language{padding:7px 10px;font-size:.8rem}}
/* The harbour film animates the scene itself; the camera stays fixed. */
body .hero-art,body.motion-on .hero-art{animation:none!important;transform:none!important}
.hero-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;transition:opacity .8s ease;z-index:0}
.hero-film.is-playing{opacity:1}.motion-off .hero-film{opacity:0}
@media(max-width:600px){.hero-film{object-position:58% center}}
