/* Dardanos Games: the studio site (home, privacy, 404) and the header shared with the Türk Mahjong page.
   Colours come from Türk Mahjong: turquoise felt, cream, copper, gold. Fonts: /turk-mahjong/fonts.css. */
:root{
  --felt:#0b5f5a; --felt-hi:#14837b; --felt-deep:#053b38; --night:#062b29;
  --cream:#fbf3df; --cream-2:rgba(251,243,223,.78);
  --paper:#fbf6e9; --card:#fffaf0; --ink:#2b2318; --muted:#6b5d48; --line:#e7d9b8;
  --copper:#b8642f; --copper-hi:#d07a3e; --copper-deep:#8f4620; --gold:#f4c534; --link:#0b6660;
  --shadow:0 10px 30px rgba(5,40,37,.16);
  --f-body:"Atkinson Hyperlegible","Segoe UI",Roboto,Arial,sans-serif;
  --f-head:"Baloo 2","Atkinson Hyperlegible",sans-serif;
  --f-serif:"Young Serif",Georgia,serif;
}
@media (prefers-color-scheme: dark){
  :root{--paper:#11201d; --card:#192b27; --ink:#f2ead6; --muted:#b9ad94; --line:#2c413b; --link:#7fd3c4; --shadow:0 10px 30px rgba(0,0,0,.4)}
}

/* ---------- Studio pages ---------- */
.studio *{box-sizing:border-box}
body.studio{margin:0; background:var(--paper); color:var(--ink); font:18px/1.6 var(--f-body); -webkit-text-size-adjust:100%}
.studio img{max-width:100%; height:auto; display:block}
.studio a{color:var(--link)}
.studio .wrap{max-width:1080px; margin:0 auto; padding:0 16px}
.studio html{scroll-behavior:smooth}
.skip{position:absolute; left:-999px; top:8px; background:var(--cream); color:var(--felt-deep); padding:8px 14px; border-radius:8px; z-index:10}
.skip:focus{left:8px}

/* the dark turquoise top with the eight-pointed Seljuk star pattern */
.top{position:relative; color:var(--cream); overflow:hidden;
  background:radial-gradient(90% 90% at 70% 0%, var(--felt-hi), var(--felt) 50%, var(--felt-deep) 100%)}
.top::before{content:""; position:absolute; inset:0; opacity:.07; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 6l7 15 16-3-9 13 9 13-16-3-7 15-7-15-16 3 9-13-9-13 16 3z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-size:64px 64px}
.top .wrap{position:relative}

.hero{display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; padding:46px 0 72px}
.kicker{font:400 18px/1.3 var(--f-serif); color:var(--copper); margin:0 0 8px}
.top .kicker{color:var(--gold)}
.hero h1{font:800 clamp(46px,7.4vw,82px)/.98 var(--f-head); margin:0; letter-spacing:-1px}
.hero .lead{font-size:20px; color:#e6f1ed; margin:20px 0 26px; max-width:31em}
.cta{display:flex; flex-wrap:wrap; gap:12px}
.btn{display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:12px 22px; border-radius:14px; text-decoration:none; font:800 18px/1.1 var(--f-head); cursor:pointer}
.btn.copper{color:#fff7e8; background:linear-gradient(180deg,var(--copper-hi),var(--copper) 55%,var(--copper-deep)); box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px rgba(0,0,0,.25)}
.btn.ghost{color:var(--cream); border:1.5px solid rgba(251,243,223,.5)}
.btn.ghost:hover{background:rgba(255,255,255,.08)}
.studio .btn{color:#fff7e8}
.studio .btn.ghost{color:var(--cream)}
.btn:focus-visible{outline:3px solid var(--gold); outline-offset:3px}

/* motif tiles, drawn like the game's tiles (symbols from brand/motifs.svg) */
.mtile{display:block; overflow:visible}
.mtile .tf{fill:#fffaf0; stroke:#d4bd8b; stroke-width:1.5}
.mtile .ts{fill:#138683}

/* the hero picture: the game on a phone, with tiles floating around it */
.showcase{position:relative; margin:0; min-height:540px; display:grid; place-items:center}
.stage{position:absolute; inset:0; pointer-events:none}
.stage .glow{position:absolute; left:50%; top:48%; width:120%; aspect-ratio:1; transform:translate(-50%,-50%);
  background:radial-gradient(closest-side, rgba(255,246,214,.22), rgba(255,246,214,.06) 60%, transparent)}
.stage .mtile{position:absolute; width:92px; height:auto; filter:drop-shadow(0 10px 14px rgba(0,0,0,.28)); animation:bob 6s ease-in-out infinite}
.stage .f1{left:4%;  top:4%;   --r:-12deg; animation-delay:-1s}
.stage .f2{right:6%; top:2%;   --r:10deg;  animation-delay:-3s; width:84px}
.stage .f3{left:0;   top:58%;  --r:8deg;   animation-delay:-2s; width:100px}
.stage .f4{right:0;  top:38%;  --r:-8deg;  animation-delay:-4s; width:80px}
.stage .f5{right:9%; bottom:2%; --r:6deg;  animation-delay:-5s}
.stage .f6{left:-1%; top:31%;  --r:-4deg;  animation-delay:-2.5s; width:70px; opacity:.9}
@keyframes bob{0%,100%{transform:translateY(0) rotate(var(--r))} 50%{transform:translateY(-10px) rotate(calc(var(--r) * .7))}}
.showcase .phone{position:relative; z-index:2; width:min(250px,58%); border-radius:34px; overflow:hidden; border:7px solid #0d2523;
  box-shadow:0 24px 50px rgba(0,0,0,.45), 0 0 0 1.5px rgba(251,243,223,.25); transform:rotate(-3deg); background:#0d3532}
.showcase .phone img{width:100%; display:block}
.showcase .tag{position:absolute; z-index:3; left:2%; bottom:6%; display:flex; align-items:center; gap:12px; background:var(--card); color:var(--ink);
  border-radius:18px; padding:10px 16px 10px 10px; box-shadow:var(--shadow); text-decoration:none; transform:rotate(-1.5deg)}
.showcase .tag img{width:54px; height:54px; border-radius:14px}
.showcase .tag b{display:block; font:800 19px/1.1 var(--f-head)}
.showcase .tag span{font-size:14px; color:var(--muted)}

/* a kilim band between the parts of the page */
.kilim{height:22px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22'%3E%3Crect width='48' height='22' fill='%237b2d1d'/%3E%3Crect width='48' height='3' fill='%23c26f37'/%3E%3Crect y='19' width='48' height='3' fill='%23c26f37'/%3E%3Cpath d='M0 11 12 5 24 11 12 17z' fill='%23f4c534'/%3E%3Cpath d='M24 11 36 5 48 11 36 17z' fill='%23fbf3df'/%3E%3Cpath d='M8 11 12 9 16 11 12 13z' fill='%230b5f5a'/%3E%3Cpath d='M32 11 36 9 40 11 36 13z' fill='%23b8642f'/%3E%3C/svg%3E") repeat-x center/48px 22px}
main + .kilim{margin-top:84px}

/* the contact card: a teapot and a tea glass on the side */
.mailbox{display:flex; flex-direction:column; align-items:flex-end; gap:10px}
.teatime{display:flex; gap:6px; margin-top:-62px}
.teatime .mtile{width:72px; height:auto; filter:drop-shadow(0 8px 12px rgba(5,40,37,.25))}
.teatime .t1{transform:rotate(-8deg)} .teatime .t2{transform:rotate(7deg) translateY(8px)}

/* a small eight-pointed star before each kicker on paper */
.section .kicker::before, .contact .kicker::before{content:""; display:inline-block; width:14px; height:14px; margin-right:8px; vertical-align:-1px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l3 6 6.5-1.5L18 12l3.5 6.5L15 17l-3 6-3-6-6.5 1.5L6 12 2.5 5.5 9 7z' fill='%23b8642f'/%3E%3C/svg%3E") center/contain no-repeat}

/* sections */
.section{padding:84px 0 0}
.section h2{font:800 clamp(30px,4.2vw,42px)/1.08 var(--f-head); margin:0 0 10px}
.section .sub{color:var(--muted); margin:0 0 28px; max-width:42em}

.about{display:grid; grid-template-columns:.9fr 1.1fr; gap:40px; align-items:start}
.about .story p{margin:0 0 16px}
.about .story p:last-child{margin-bottom:0}
.values{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0; padding:0; list-style:none}
.values li{background:var(--card); border:1px solid var(--line); border-radius:18px; padding:18px 18px 16px; box-shadow:0 2px 0 var(--line)}
.values .ico{display:block; width:52px; margin:-4px 0 8px}
.values .ico .mtile{width:52px; height:auto}
.values b{display:block; font:800 19px/1.2 var(--f-head); margin-bottom:4px}
.values span{font-size:16px; color:var(--muted); line-height:1.5; display:block}

/* the game card */
.game{position:relative; display:grid; grid-template-columns:1fr 1.12fr; gap:32px; align-items:center; color:var(--cream); border-radius:28px; overflow:hidden; padding:36px;
  background:radial-gradient(120% 140% at 20% 0%, var(--felt-hi), var(--felt) 55%, var(--felt-deep))}
.game::before{content:""; position:absolute; inset:0; opacity:.06; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 6l7 15 16-3-9 13 9 13-16-3-7 15-7-15-16 3 9-13-9-13 16 3z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-size:64px 64px}
.game > *{position:relative}
.game .badge{display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:#3d2a05; font:800 14px/1 var(--f-body); letter-spacing:.04em; text-transform:uppercase; padding:7px 12px; border-radius:999px; margin-bottom:14px}
.game .head{display:flex; gap:16px; align-items:center; margin-bottom:12px}
.game .head img{width:80px; height:80px; border-radius:20px; box-shadow:0 6px 18px rgba(0,0,0,.3)}
.game h3{font:800 clamp(32px,4vw,44px)/1 var(--f-head); margin:0}
.game .tagline{font:400 21px/1.25 var(--f-serif); color:var(--gold); margin:4px 0 0}
.game p.desc{color:#e3efeb; margin:0 0 18px}
.pills{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; padding:0; list-style:none}
.pills li{background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:5px 12px; font-size:15px; font-weight:700}
.status{display:block; font-size:15px; color:var(--cream-2); margin-top:12px}
/* three phones fanned out like the one in the hero: the middle one in front, the side ones tilted behind */
.phones{position:relative; display:flex; justify-content:center; align-items:flex-start; padding:8px 0 40px}
.phones::before{content:""; position:absolute; left:50%; top:46%; width:110%; aspect-ratio:1.4; transform:translate(-50%,-50%); pointer-events:none;
  background:radial-gradient(closest-side, rgba(255,246,214,.18), transparent)}
.phones figure{position:relative; margin:0 -14px; width:33%; max-width:190px; flex:none}
.phones figure:nth-child(1){transform:rotate(-8deg) translateY(28px); z-index:1}
.phones figure:nth-child(2){width:37%; max-width:212px; z-index:2}
.phones figure:nth-child(3){transform:rotate(8deg) translateY(28px); z-index:1}
.phones .ph{border-radius:30px; overflow:hidden; border:6px solid #0d2523; background:#0d3532;
  box-shadow:0 22px 44px rgba(0,0,0,.45), 0 0 0 1.5px rgba(251,243,223,.22)}
.phones .ph img{width:100%; display:block}
.phone-labels{display:flex; justify-content:center; gap:8px; flex-wrap:wrap; list-style:none; margin:4px 0 0; padding:0}
.phone-labels li{font:700 14px/1.2 var(--f-body); color:var(--cream); background:#0a4541; box-shadow:0 4px 10px rgba(0,0,0,.25);
  border:1px solid rgba(251,243,223,.25); border-radius:999px; padding:6px 12px; white-space:nowrap}
.next-game{display:flex; align-items:center; gap:18px; margin-top:16px; padding:16px 20px; border:2px dashed var(--line); border-radius:22px; color:var(--muted)}
.next-game .mtile{width:52px; flex:none; transform:rotate(-6deg)}
.next-game .mtile .tb{fill:#0b5f5a; stroke:#053b38; stroke-width:1.5}
.next-game p{margin:0; font-size:16px; line-height:1.45}
.next-game b{display:block; color:var(--ink); font:800 19px/1.2 var(--f-head)}

/* contact */
.contact{position:relative; display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:30px; box-shadow:var(--shadow)}
.contact h2{margin-bottom:6px}
.contact p{margin:0; color:var(--muted)}
.mail{display:flex; align-items:center; gap:12px; justify-self:end; text-decoration:none; font:800 clamp(15px,4.4vw,22px)/1.2 var(--f-head); color:var(--felt-deep); background:var(--paper); border:1.5px solid var(--line); border-radius:16px; padding:16px 18px; overflow-wrap:anywhere}
@media (prefers-color-scheme: dark){ .mail{color:var(--cream)} }
.mail svg{width:28px; height:28px; flex:none; color:var(--copper)}

/* footer */
.foot{background:var(--felt-deep); padding:34px 0 46px; font-size:15px; color:rgba(251,243,223,.72)}
.studio .foot a{color:var(--cream)}
.foot .cols{display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px 40px}
.foot nav{display:flex; flex-wrap:wrap; gap:6px 18px}
.foot .legal{max-width:36em; margin:6px 0 0; font-size:14px}
.foot b{color:var(--cream); font:800 20px/1.2 var(--f-head)}
.foot-brand{display:flex; align-items:center; gap:10px}
.foot-brand img{width:30px; height:30px}

/* text pages (privacy, 404) */
.page-head{padding:34px 0 48px}
.page-head h1{font:800 clamp(36px,5.6vw,56px)/1.02 var(--f-head); margin:0}
.page-head p{color:#e6f1ed; margin:12px 0 0; max-width:36em}
.prose{max-width:44em; padding-top:48px; padding-bottom:12px}
.prose h2{font:800 26px/1.15 var(--f-head); margin:34px 0 8px}
.prose h2:first-child{margin-top:0}
.prose p, .prose li{margin:0 0 12px}
.prose .note{color:var(--muted); font-size:15px}

@media (max-width:860px){
  .hero{grid-template-columns:1fr; padding:30px 0 70px; gap:34px}
  .showcase{max-width:520px; width:100%; justify-self:center; min-height:460px}
  .mailbox{align-items:flex-start}
  .teatime{position:absolute; right:18px; top:-30px; margin:0}
  .teatime .mtile{width:58px}
  .about{grid-template-columns:1fr; gap:24px}
  .game{grid-template-columns:1fr; padding:26px 20px}
  .contact{grid-template-columns:1fr}
  .mail{justify-self:start}
}
@media (max-width:480px){
  body.studio{font-size:17px}
  .hero .lead{font-size:18px}
  .values{grid-template-columns:1fr}
  .phones{padding-bottom:22px}
  .phones figure{margin:0 -10px}
  .phones .ph{border-width:4px; border-radius:20px}
  .phones figure:nth-child(1), .phones figure:nth-child(3){translate:0 -8px}
  .phone-labels{display:flex; justify-content:center; gap:8px; flex-wrap:wrap; list-style:none; margin:4px 0 0; padding:0}
.phone-labels li{font:700 14px/1.2 var(--f-body); color:var(--cream); background:#0a4541; box-shadow:0 4px 10px rgba(0,0,0,.25);
  border:1px solid rgba(251,243,223,.25); border-radius:999px; padding:6px 12px; white-space:nowrap}
  .showcase{min-height:400px}
  .stage .mtile{width:62px}
  .stage .f2{width:58px} .stage .f3{width:66px} .stage .f4{width:56px} .stage .f6{display:none}
  .showcase .phone{width:min(200px,56%); border-width:5px; border-radius:26px}
  .showcase .tag{left:0; bottom:0; padding:8px 12px 8px 8px} .showcase .tag img{width:44px; height:44px} .showcase .tag b{font-size:17px} .showcase .tag span{font-size:13px}
  .contact{padding:22px 18px}
  .mail{font-size:16px; padding:14px; gap:10px; overflow-wrap:normal; white-space:nowrap}
  .mail svg{width:22px; height:22px}
  .section{padding-top:64px}
}
@media (max-width:350px){ .mail{font-size:14.5px; padding:12px} .contact{padding:20px 14px} }
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} .stage .mtile{animation:none; transform:rotate(var(--r))} }
body.studio.short{background:var(--felt-deep)}
