/* Rudi & Fickó – domború, tapintható gombok és apró látványelemek (honlap + pult).
   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 stílusa UTÁN tölti be. */

:root{ --g3-ring: #3D5A40; }

/* ---------- világos / körvonalas gombok (honlap: .btn; pult: ghost, nevek, lapozó) ---------- */
.btn:not(.oe-btn-gold), button.ghost, .nevek button, .ho-fej button, .mv button, .bk-nav button{
  background-image: linear-gradient(rgb(255 255 255 / .8), rgb(255 255 255 / .15));
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(35 31 32 / .07), 0 1px 2px rgb(35 31 32 / .12), 0 6px 16px -8px rgb(35 31 32 / .3);
  transition: background-color .2s, color .2s, border-color .2s, transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
/* a honlapon egér fölött a körvonalas gomb sötétre vált: ilyenkor sötét csillanás kell */
.btn:not(.oe-btn-gold):hover{ background-image: linear-gradient(rgb(255 255 255 / .14), rgb(255 255 255 / 0) 58%, rgb(0 0 0 / .1)); }

/* ---------- teli gombok ---------- */
.btn.btn--solid, .btn.primary, .gwbtn, button.pri, button.ok, button.bad,
.pult3d .btn:not(.g):not(.r){
  background-image: linear-gradient(rgb(255 255 255 / .15), rgb(255 255 255 / 0) 58%, rgb(0 0 0 / .1));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -2px 0 rgb(0 0 0 / .25), 0 1px 2px rgb(0 0 0 / .28), 0 8px 22px -8px var(--g3-glow, rgb(35 31 32 / .5));
}
.btn.btn--solid:hover, .btn.primary:hover{ --g3-glow: rgb(61 90 64 / .6); }
.pult3d .btn.o{ --g3-glow: rgb(120 130 80 / .5); background-image: linear-gradient(rgb(255 255 255 / .35), rgb(255 255 255 / 0) 60%, rgb(0 0 0 / .06)); }
button.ok{ --g3-glow: rgb(61 90 64 / .55); }
button.bad{ --g3-glow: rgb(162 50 30 / .3); }
.pult3d .btn.g, .pult3d .btn.r{
  background-image: linear-gradient(rgb(255 255 255 / .8), rgb(255 255 255 / .15));
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(35 31 32 / .07), 0 1px 2px rgb(35 31 32 / .12), 0 6px 16px -8px rgb(35 31 32 / .3);
}

/* ---------- osztriga-oldal: az arany gomb a saját színátmenetét tartja, csak fényt és árnyékot kap ---------- */
.btn.oe-btn-gold{ box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -2px 0 rgb(90 60 10 / .3), 0 1px 2px rgb(0 0 0 / .35), 0 10px 24px -8px rgb(216 185 116 / .55); }
.btn.oe-btn-line{ background-image: linear-gradient(rgb(255 255 255 / .12), rgb(255 255 255 / .02)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -2px 0 rgb(0 0 0 / .3), 0 10px 22px -10px rgb(0 0 0 / .7); }

/* ---------- sötét háttéren (honlap: .dark, séf, havi blokk) ---------- */
.dark .btn:not(.btn--solid), .chef .btn:not(.btn--solid), .month .btn:not(.btn--solid){
  background-image: linear-gradient(rgb(255 255 255 / .14), rgb(255 255 255 / .02));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), inset 0 -2px 0 rgb(0 0 0 / .25), 0 10px 22px -10px rgb(0 0 0 / .65);
}
.dark .btn:not(.btn--solid):hover, .chef .btn:not(.btn--solid):hover, .month .btn:not(.btn--solid):hover{
  background-image: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / .2));
}

/* ---------- egér fölött megemelkedik ---------- */
@media (hover: hover){
  :is(.btn, button.pri, button.ok, button.bad, button.ghost, .gwbtn, .oe-btn-gold, .nevek button):not(:disabled):hover{
    transform: translateY(-1px); filter: brightness(1.04);
  }
}

/* ---------- lenyomva: besüllyed ---------- */
:is(.btn, button.pri, button.ok, button.bad, button.ghost, .gwbtn, .oe-btn-gold, .nevek button, .ho-fej button, .mv button, .bk-nav button):not(:disabled):active{
  transform: translateY(1px); filter: none;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .3);
  transition-duration: .05s;
}
:is(.btn, button):disabled{ box-shadow: none; filter: none; transform: none; }

/* ---------- fénycsík a fő gombokon (egér fölött végigfut) ---------- */
:is(.btn.btn--solid, .btn.primary, button.pri, .pult3d .btn:not(.g):not(.r):not(.o)){ position: relative; overflow: hidden; isolation: isolate; }
:is(.btn.btn--solid, .btn.primary, button.pri, .pult3d .btn:not(.g):not(.r):not(.o))::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 / .32), transparent);
  transform: skewX(-18deg); opacity: 0;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference){
  :is(.btn.btn--solid, .btn.primary, button.pri, .pult3d .btn:not(.g):not(.r):not(.o)):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ó zöld gyűrű (sötét háttéren krém) ---------- */
:is(a, button, .btn, input, select, textarea, summary):focus-visible{ outline: 3px solid var(--g3-ring); outline-offset: 3px; }
:is(.dark, .chef, .month) :is(a, button, .btn):focus-visible{ outline-color: #F7F5EC; }

/* ---------- pult kezdőlap csempék ---------- */
.tile{ transition: transform .16s ease, box-shadow .16s ease; box-shadow: 0 10px 24px -16px rgb(35 31 32 / .55); }
@media (hover: hover){ .tile:hover{ transform: translateY(-3px); box-shadow: 0 18px 30px -16px rgb(35 31 32 / .55); } }

/* ---------- kijelölés a ház színével ---------- */
::selection{ background: #BACDAB; color: #1F2A22; }

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