/* PHARAOH — bespoke Egyptian temple cabinet, isolated from all other games */
body[data-game="pharaoh"] .shell{background:radial-gradient(ellipse at 50% 0%,#74532680,transparent 60%),repeating-linear-gradient(90deg,#090b0d 0 42px,#111013 43px 45px),#0b090b}
body[data-game="pharaoh"] .machine{border:5px solid #d8a84d;background:radial-gradient(ellipse at 50% -10%,#765026,#25170f 43%,#0e0b10 100%);box-shadow:0 0 0 3px #241408,0 0 0 7px #a47931,0 15px 45px #000c,inset 0 0 45px #000}
body[data-game="pharaoh"] .machine:before{inset:6px;border:2px solid #b48b4655}
body[data-game="pharaoh"] .top{border:2px solid #e4bd69;border-radius:3px 3px 22px 22px;background:linear-gradient(90deg,#17100b,#583716 28%,#966523 50%,#583716 72%,#17100b);box-shadow:inset 0 -9px 18px #160e0b}
body[data-game="pharaoh"] .brand:before{content:"☥   ✦   ☥";display:block;color:#ffe09c;font-size:clamp(11px,2.1vw,20px);letter-spacing:clamp(7px,2vw,24px);line-height:1.05;text-shadow:0 0 9px #f6c36d}
body[data-game="pharaoh"] .brand h1{font-family:Georgia,serif;font-size:clamp(22px,4.3vw,46px);letter-spacing:clamp(1px,.45vw,6px);background:linear-gradient(#fff5c9 10%,#ffdc78 43%,#9e5b18 55%,#f5c75c 80%);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 2px 2px #130a02)}
body[data-game="pharaoh"] .brand small{color:#f6d9a0;letter-spacing:clamp(0px,.2vw,2px)}
body[data-game="pharaoh"] .stats{border-top:2px solid #b48a47;border-bottom:2px solid #b48a47;padding:3px 0}
body[data-game="pharaoh"] .stat{background:linear-gradient(#100e12,#332313);border:1px solid #c99842;border-radius:3px}
body[data-game="pharaoh"] .stat strong{color:#ffe5a1}
body[data-game="pharaoh"] .stage{border:5px ridge #e0b65e;outline:2px solid #7e501d;border-radius:4px;background:linear-gradient(115deg,#f4d28b,#9b692f 7%,#1b1110 15%,#171013 85%,#a47235 94%,#f2d087);box-shadow:inset 0 0 30px #000}
body[data-game="pharaoh"] .stage:before{background:linear-gradient(#07080a66,transparent 12%,transparent 88%,#07080a77);z-index:2}
body[data-game="pharaoh"] .reels{gap:clamp(2px,.4vw,5px);background:#170e0a}
body[data-game="pharaoh"] .cell{background:radial-gradient(ellipse at 50% 45%,#483524,#201812 75%,#100c0e);border:1px solid #ab7838;border-radius:4px;box-shadow:inset 0 0 16px #000,0 0 0 1px #4e3017}
body[data-game="pharaoh"] .cell:after{background:linear-gradient(#fff0bd1c,transparent 27%,transparent 70%,#0008)}
body[data-game="pharaoh"] .slot-art{width:100%;height:100%;filter:drop-shadow(0 3px 3px #0008)}
body[data-game="pharaoh"] .spin-column{background:linear-gradient(90deg,#2e2116,#3d2c1d 50%,#241911);border-left:1px solid #c59649}
body[data-game="pharaoh"] .spin-symbol{background:radial-gradient(ellipse,#493526,#19100e);border-bottom:2px solid #9e713a}
body[data-game="pharaoh"] .jackpot{color:#ffe1a0;text-shadow:0 0 14px #d6a04a}
body[data-game="pharaoh"] .banner{border:1px solid #b58a43;background:linear-gradient(90deg,#21150f,#4e3318,#21150f);color:#ffebad;border-radius:2px}
body[data-game="pharaoh"] .controls button{border:1px solid #c89b52;border-radius:3px;background:linear-gradient(#4e3420,#24180f);color:#f9dfab}
body[data-game="pharaoh"] .controls .spinbtn{background:linear-gradient(#fff0ac,#f2c45a 35%,#b67620 85%);border:2px solid #ffe4a2;color:#351b09;box-shadow:inset 0 2px 6px #fff9,0 3px 0 #4d2b0a,0 0 20px #f4b64d66}
body[data-game="pharaoh"] .bottom button{background:linear-gradient(#49331d,#24180f);border:1px solid #b58c49;border-radius:3px}
@media(max-width:600px){body[data-game="pharaoh"] .machine{border-width:3px}body[data-game="pharaoh"] .brand:before{font-size:11px;letter-spacing:8px}body[data-game="pharaoh"] .stage{border-width:3px}body[data-game="pharaoh"] .brand h1{font-size:clamp(18px,5.1vw,28px)}}
@media(max-height:580px){body[data-game="pharaoh"] .brand:before{display:none}body[data-game="pharaoh"] .stats{padding:1px 0}}

/* Mechanical five-reel window: one continuous curved strip per column. */
body[data-game="pharaoh"] .reels{
 position:relative;
 isolation:isolate;
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 grid-template-rows:repeat(3,minmax(0,1fr));
 gap:0;
 border:3px solid #b78c43;
 border-radius:13px;
 overflow:hidden;
 background:repeating-linear-gradient(90deg,#150f0d 0 calc(20% - 2px),#7b572e calc(20% - 2px) 20%);
 box-shadow:inset 0 0 30px #000,0 0 0 2px #29190d;
}
body[data-game="pharaoh"] .cell{
 border:0;
 border-radius:0;
 box-shadow:none;
 margin:0;
 padding:0;
 overflow:hidden;
 background:linear-gradient(90deg,#18110e 0%,#453020 8%,#9a7847 23%,#bb9964 49%,#8f7048 76%,#38291e 94%,#160e0c 100%);
}
body[data-game="pharaoh"] .cell:nth-child(5n+1){border-left:0}
body[data-game="pharaoh"] .cell:nth-child(5n+2),
body[data-game="pharaoh"] .cell:nth-child(5n+3),
body[data-game="pharaoh"] .cell:nth-child(5n+4),
body[data-game="pharaoh"] .cell:nth-child(5n+5){border-left:2px solid #5c401e}
body[data-game="pharaoh"] .cell:after{display:none}
body[data-game="pharaoh"] .cell .slot-art{width:90%;height:90%;margin:auto;filter:drop-shadow(0 4px 4px #0009)}
body[data-game="pharaoh"] .reels:after{
 content:"";position:absolute;inset:0;z-index:9;pointer-events:none;
 background:
 linear-gradient(to bottom,#080709f2 0%,#140e0f9c 9%,#0000 27%,#ffffff16 45%,#ffffff0b 52%,#0000 69%,#1a10109c 91%,#080709f2 100%),
 repeating-linear-gradient(90deg,#0000 0 calc(20% - 4px),#150d0a77 calc(20% - 4px) calc(20% - 1px),#d4ad5c55 calc(20% - 1px) 20%);
 box-shadow:inset 0 13px 16px #050405bb,inset 0 -13px 16px #050405bb;
}
body[data-game="pharaoh"] .spin-column{
 border-left:2px solid #604322;
 background:linear-gradient(90deg,#211712,#7f6040 20%,#b69560 49%,#795b3e 79%,#201510);
}
body[data-game="pharaoh"] .spin-symbol{
 border:0;
 background:linear-gradient(90deg,#211712,#7f6040 20%,#b69560 49%,#795b3e 79%,#201510);
}
body[data-game="pharaoh"] .spin-symbol .slot-art{width:90%;height:90%}
body[data-game="pharaoh"] .cell.win{box-shadow:inset 0 0 18px #ffe09b99;animation:slotVictory .5s ease-in-out infinite alternate}

/* Pharaoh V2 — genuine uninterrupted reel bands, curved light lenses, no tiles */
body[data-game="pharaoh"] .reels{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));
 gap:0;position:relative;isolation:isolate;overflow:hidden;
 border-radius:18px;border:5px solid #b98b40;
 background:#d4bd91;
 box-shadow:0 0 0 3px #382313,inset 0 0 26px #000;
}
body[data-game="pharaoh"] .cell,
body[data-game="pharaoh"] .cell:nth-child(n){
 background:linear-gradient(90deg,#58442c 0%,#ae9165 9%,#f5e6c1 29%,#fff5d8 49%,#e5cfa6 72%,#9b7c53 92%,#4d3828 100%);
 border:0!important;border-radius:0!important;box-shadow:none!important;
 margin:0;outline:0;overflow:hidden;
}
body[data-game="pharaoh"] .cell .slot-art{width:82%;height:85%;margin:auto;filter:drop-shadow(0 5px 3px #32210d55)}
body[data-game="pharaoh"] .reel-cylinder-lens{
 position:absolute;top:0;bottom:0;width:20%;z-index:8;pointer-events:none;
 background:
 linear-gradient(to bottom,#090707c9 0%,#3e281966 8%,transparent 24%,#fffdf018 46%,transparent 63%,#42291866 90%,#090707c9 100%),
 linear-gradient(to right,#100c0d7a 0%,transparent 14%,#fffdf021 48%,transparent 85%,#100c0d7a 100%);
 box-shadow:inset 5px 0 8px #160d0866,inset -5px 0 8px #160d0866;
 border-right:3px solid #604321;
}
body[data-game="pharaoh"] .reel-cylinder-lens:first-of-type{border-left:0}
body[data-game="pharaoh"] .reels:after{display:none!important}
body[data-game="pharaoh"] .spin-column{
 border:0!important;
 background:linear-gradient(90deg,#58442c 0%,#ae9165 9%,#f5e6c1 29%,#fff5d8 49%,#e5cfa6 72%,#9b7c53 92%,#4d3828 100%);
 z-index:6;
}
body[data-game="pharaoh"] .spin-symbol{
 border:0!important;
 background:transparent!important;
}
body[data-game="pharaoh"] .spin-symbol .slot-art{width:82%;height:85%;filter:drop-shadow(0 5px 3px #32210d55)}
body[data-game="pharaoh"] .stage{background:linear-gradient(135deg,#6c461f,#e2bc70 5%,#24180e 12%,#24180e 88%,#e2bc70 95%,#6c461f)}
@media(max-width:600px){body[data-game="pharaoh"] .reels{border-width:3px;border-radius:11px}body[data-game="pharaoh"] .reel-cylinder-lens{border-right-width:2px}}

/* Match the desktop symbol scale of the other casino machines. */
@media(min-width:601px) and (min-height:451px){
 body[data-game="pharaoh"] .cell .slot-art,
 body[data-game="pharaoh"] .spin-symbol .slot-art{
  width:74%;
  height:74%;
  max-width:74%;
  max-height:74%;
  margin:auto;
  object-fit:contain;
 }
}

/* Desktop Pharaoh: use identical true-centered artwork sizing as the other six. */
@media(min-width:601px) and (min-height:451px){
 body[data-game="pharaoh"] .reels .cell > img.slot-art,
 body[data-game="pharaoh"] .reels .spin-symbol > img.slot-art{
  position:absolute!important;
  top:50%!important;left:50%!important;
  width:60%!important;height:64%!important;
  max-width:60%!important;max-height:64%!important;
  margin:0!important;object-fit:contain!important;
  transform:translate(-50%,-50%)!important;
 }
}
