/* Cirmi – domború, tapintható gombok és apró látványelemek.
   A színek a meglévők maradnak: a gomb csak fényt (felső csillanás), élt (alsó sötétebb sáv)
   és puha árnyékot kap; lenyomva besüllyed. Minden oldal a saját <style>-ja UTÁN tölti be. */

:root{
  --g3-hi: rgb(255 255 255 / .30);
  --g3-edge: rgb(0 0 0 / .22);
  --g3-glow: rgb(31 26 23 / .45);
  --g3-ring: #CB8000;
}

/* ---------- színes (teli) gombok ---------- */
html :is(.btn.dark, .btn.orange, .btn.o, button.pri, button.ok, button.bad, .svc-c.cta, .gwbtn),
html body.pult3d .btn:not(.g):not(.r){
  background-image: linear-gradient(rgb(255 255 255 / .17), rgb(255 255 255 / 0) 58%, rgb(0 0 0 / .07));
  box-shadow: inset 0 1px 0 var(--g3-hi), inset 0 -2px 0 var(--g3-edge), 0 1px 2px rgb(0 0 0 / .28), 0 8px 22px -8px var(--g3-glow);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
html :is(.btn.orange, .btn.o){ --g3-glow: rgb(203 128 0 / .62); --g3-hi: rgb(255 255 255 / .42); }
html button.ok{ --g3-glow: rgb(47 107 58 / .55); }
html button.bad{ --g3-glow: rgb(162 50 30 / .35); --g3-hi: rgb(255 255 255 / .6); --g3-edge: rgb(162 50 30 / .18); }

/* ---------- világos / körvonalas gombok ---------- */
html body:not(.pult3d) .btn:not(.dark):not(.orange):not(.o),
html :is(.btn.g, .btn.r, button.ghost, .nevek button, .ho-fej button, .mv button){
  background-image: linear-gradient(rgb(255 255 255 / .85), rgb(255 255 255 / .25));
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / .07), 0 1px 2px rgb(0 0 0 / .12), 0 6px 16px -8px rgb(0 0 0 / .28);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
html body.pult3d .btn:not(.g):not(.r):not(.o){ background-image: linear-gradient(rgb(255 255 255 / .14), rgb(255 255 255 / 0) 58%, rgb(0 0 0 / .1)); }

/* ---------- egér fölött: kicsit megemelkedik (csak egeres gépen) ---------- */
@media (hover: hover){
  html :is(.btn, button.pri, button.ok, button.bad, button.ghost, .svc-c.cta, .gwbtn, .nevek button):not(:disabled):hover{
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: inset 0 1px 0 var(--g3-hi), inset 0 -2px 0 var(--g3-edge), 0 2px 3px rgb(0 0 0 / .22), 0 12px 26px -8px var(--g3-glow);
  }
  html body:not(.pult3d) .btn:not(.dark):not(.orange):not(.o):not(:disabled):hover,
  html :is(.btn.g, button.ghost, .nevek button):not(:disabled):hover{
    box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / .07), 0 2px 3px rgb(0 0 0 / .14), 0 10px 22px -8px rgb(0 0 0 / .32);
  }
}

/* ---------- lenyomva: besüllyed ---------- */
html :is(.btn, button.pri, button.ok, button.bad, button.ghost, .svc-c.cta, .gwbtn, .nevek button, .ho-fej button, .mv button):not(:disabled):active{
  transform: translateY(1px);
  filter: none;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .32);
  transition-duration: .05s;
}
html body:not(.pult3d) .btn:not(.dark):not(.orange):not(.o):not(:disabled):active,
html :is(.btn.g, button.ghost, .nevek button, .ho-fej button, .mv button):not(:disabled):active{
  box-shadow: inset 0 2px 4px rgb(0 0 0 / .14);
}
html :is(.btn, button):disabled{ box-shadow: none; filter: none; transform: none; }

/* ---------- fénycsík a fő gombokon (egér fölött végigfut) ---------- */
html :is(.btn.orange, .btn.o, .btn.dark, button.pri){ position: relative; overflow: hidden; isolation: isolate; }
html :is(.btn.orange, .btn.o, .btn.dark, button.pri)::after{
  content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / .38), transparent);
  transform: skewX(-18deg); opacity: 0;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference){
  html :is(.btn.orange, .btn.o, .btn.dark, button.pri):not(:disabled):hover::after{ animation: g3-fenycsik .75s ease-out; }
}
@keyframes g3-fenycsik{ 0%{ left: -60%; opacity: 1; } 100%{ left: 120%; opacity: 1; } }

/* ---------- billentyűzetes fókusz: jól látható narancs gyűrű ---------- */
html :is(a, button, .btn, input, select, textarea, summary):focus-visible{
  outline: 3px solid var(--g3-ring); outline-offset: 3px;
}

/* ---------- pult kezdőlap csempék és kártyák: puha árnyék, egér fölött megemelkedik ---------- */
html .tile{ box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 2px 0 rgb(31 26 23 / .9), 0 10px 24px -14px rgb(31 26 23 / .5); transition: transform .16s ease, box-shadow .16s ease; }
@media (hover: hover){ html .tile:hover{ transform: translateY(-3px); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 5px 0 rgb(31 26 23 / .9), 0 18px 30px -14px rgb(31 26 23 / .5); } }
html .tile .ic{ box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -2px 0 rgb(0 0 0 / .15), 0 4px 10px -4px rgb(203 128 0 / .7); }

/* ---------- kijelölés a márka színével ---------- */
::selection{ background: #CB8000; color: #1F1A17; }

/* ---------- görgetésre finoman beúszó tartalom (ahol a böngésző tudja; a nyitóképernyő nem) ---------- */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    main > section:not(:first-of-type) > *{
      animation: g3-beuszik linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}
@keyframes g3-beuszik{ from{ opacity: 0; transform: translateY(22px); } to{ opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce){
  html :is(.btn, button, .tile){ transition: none !important; }
}
