/* The Clubhouse (js/clubhouse.js): a full-screen room with its own canvas, a few buttons, a stick for a phone, the chat and a sheet that reads a board out. */
#club { position: fixed; inset: 0; z-index: 55; background: #120c08; color: var(--ink, #f4f8f2); font-family: var(--font-ui, system-ui, sans-serif); touch-action: none; user-select: none; -webkit-user-select: none; }
#clubCv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
:is(#club, #villaGames) .cbtn { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .7rem); padding: .55rem .9rem; border-radius: 999px; border: var(--edge, 1px solid rgba(255,255,255,.2)); background: rgba(15,26,51,.82); color: #fff; font: 700 .9rem var(--font-ui, system-ui); cursor: pointer; backdrop-filter: blur(6px); }
:is(#club, #villaGames) #clubLeave { left: calc(env(safe-area-inset-left, 0px) + .7rem); }
:is(#club, #villaGames) #clubStyleBtn { left: calc(env(safe-area-inset-left, 0px) + 6.6rem); }
:is(#club, #villaGames) #clubStyleBtn[hidden] { display: none; }
:is(#club, #villaGames) #clubWho { right: calc(env(safe-area-inset-right, 0px) + .7rem); }
:is(#club, #villaGames) #clubCount { color: var(--gold, #f6bd1c); }
:is(#club, #villaGames) .cstatus { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 3.6rem); transform: translateX(-50%); padding: .4rem .9rem; border-radius: 999px; background: rgba(15,26,51,.82); font: 600 .85rem var(--font-ui, system-ui); max-width: 90vw; text-align: center; }
:is(#club, #villaGames) .cstatus[hidden] { display: none; }
:is(#club, #villaGames) #clubActs { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 3.9rem); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .45rem; z-index: 2; }
:is(#club, #villaGames) .cread { position: static; white-space: nowrap; padding: .65rem 1.2rem; border-radius: 999px; border: 0; background: var(--gold, #f6bd1c); color: #0f1a33; font: 800 .95rem var(--font-ui, system-ui); box-shadow: 0 .4rem 1.2rem rgba(0,0,0,.45); cursor: pointer; }
:is(#club, #villaGames) .cread[hidden] { display: none; }
:is(#club, #villaGames) .dogBar { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
:is(#club, #villaGames) .dogBar[hidden] { display: none; }
:is(#club, #villaGames) .dogBar button { padding: .5rem .85rem; border-radius: 999px; border: 0; background: #f5eddb; color: #0f1a33; font: 700 .85rem var(--font, system-ui), sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; }
:is(#club, #villaGames) #clubMatNote { left: auto; right: calc(env(safe-area-inset-right, 0px) + .7rem); top: calc(env(safe-area-inset-top, 0px) + 3.6rem); transform: none; max-width: 60vw; }
/* at the mat */
:is(#club, #villaGames) #clubPutt { position: absolute; right: calc(env(safe-area-inset-right, 0px) + .8rem); bottom: calc(env(safe-area-inset-bottom, 0px) + .8rem); width: min(15rem, 54vw); display: flex; flex-direction: column; gap: .5rem; padding: .7rem; border-radius: 1rem; background: rgba(15,26,51,.84); border: var(--edge, 1px solid rgba(255,255,255,.2)); touch-action: none; z-index: 2; }
:is(#club, #villaGames) #clubPutt[hidden] { display: none; }
:is(#club, #villaGames) #clubMLabel { font: 800 .8rem var(--font-ui, system-ui); letter-spacing: .06em; text-transform: uppercase; text-align: center; color: #fff; }
:is(#club, #villaGames) #clubMeter { position: relative; height: 1.1rem; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; } :is(#club, #villaGames) #clubMFill { position: absolute; left: 12.28%; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #7be07b, #f6bd1c, #ff7a6b); }
:is(#club, #villaGames) #clubMeter b { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; } :is(#club, #villaGames) #clubMZero { left: 12.28%; background: #fff; } :is(#club, #villaGames) #clubMPow { background: #f6bd1c; display: none; } :is(#club, #villaGames) #clubMCur { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.9); width: 4px; display: none; }
:is(#club, #villaGames) #clubMInfo { font: 600 .78rem var(--font-ui, system-ui); text-align: center; color: rgba(255,255,255,.88); }
:is(#club, #villaGames) #clubPuttNote { font: 600 .78rem/1.3 var(--font-ui, system-ui); text-align: center; color: rgba(255,255,255,.88); min-height: 2em; }
:is(#club, #villaGames) #clubPuttGo { padding: 1rem .6rem; border-radius: .9rem; border: 0; background: var(--gold, #f6bd1c); color: #0f1a33; font: 800 1rem var(--font-ui, system-ui); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; } :is(#club, #villaGames) #clubPuttGo:disabled { opacity: .5; }
:is(#club, #villaGames) .aimRow { display: flex; align-items: center; justify-content: space-between; font: 700 .8rem var(--font-ui, system-ui); } :is(#club, #villaGames) .aimRow button { width: 3rem; height: 2.4rem; border-radius: .7rem; border: var(--edge, 1px solid rgba(255,255,255,.2)); background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; cursor: pointer; }
:is(#club, #villaGames) #clubPuttOff { color: #cfe0ff; font: 700 .85rem var(--font-ui, system-ui); background: none; border: 0; cursor: pointer; text-decoration: underline; }
body.puttMode :is(#club, #villaGames) #clubStick { display: none !important; } body.puttMode :is(#club, #villaGames) #clubChat { width: min(20rem, calc(100vw - 17.5rem)); }
/* the stick: only where there is a touch screen */
:is(#club, #villaGames) #clubStick { position: absolute; right: calc(env(safe-area-inset-right, 0px) + 1.2rem); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.4rem); width: 8.4rem; height: 8.4rem; border-radius: 50%; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.28); touch-action: none; display: none; }
:is(#club, #villaGames) #clubStick i { position: absolute; left: 50%; top: 50%; width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 .2rem .6rem rgba(0,0,0,.35); pointer-events: none; }
@media (pointer: coarse) { :is(#club, #villaGames) #clubStick { display: block; } }
/* the chat */
:is(#club, #villaGames) #clubChat { position: absolute; left: calc(env(safe-area-inset-left, 0px) + .7rem); bottom: calc(env(safe-area-inset-bottom, 0px) + .7rem); width: min(23rem, calc(100vw - 11.5rem)); display: flex; flex-direction: column; gap: .35rem; touch-action: auto; }
@media (pointer: fine) { :is(#club, #villaGames) #clubChat { width: min(26rem, 46vw); } }
:is(#club, #villaGames) #clubLog { max-height: 9.5rem; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; padding: .1rem; scrollbar-width: none; pointer-events: none; }
:is(#club, #villaGames) #clubLog::-webkit-scrollbar { display: none; }
:is(#club, #villaGames) .cl { align-self: flex-start; max-width: 100%; padding: .25rem .6rem; border-radius: .8rem; background: rgba(15,26,51,.72); font: 500 .85rem/1.3 var(--font-ui, system-ui); overflow-wrap: anywhere; }
:is(#club, #villaGames) .cl b { color: var(--gold, #f6bd1c); font-weight: 700; }
:is(#club, #villaGames) .cl.sys { background: transparent; color: rgba(255,255,255,.7); font-style: italic; padding-left: .1rem; }
:is(#club, #villaGames) #clubLog .cl[data-id] { pointer-events: auto; cursor: pointer; }          /* tap someone's line to report it (an organiser: delete it or mute its writer) */
:is(#club, #villaGames) .cmsgq { margin: 0 0 .7rem; padding: .6rem .8rem; border-radius: .8rem; background: rgba(15,26,51,.72); color: #fff; font: 500 .95rem/1.35 var(--font-ui, system-ui); overflow-wrap: anywhere; }
:is(#club, #villaGames) .cmsgq b { color: var(--gold, #f6bd1c); }
:is(#club, #villaGames) .csheet .cbtn.wide + .cbtn.wide { margin-top: .45rem; }
:is(#club, #villaGames) #clubForm { display: flex; gap: .35rem; }
:is(#club, #villaGames) #clubIn { flex: 1; min-width: 0; padding: .55rem .8rem; border-radius: 999px; border: var(--edge, 1px solid rgba(255,255,255,.2)); background: rgba(15,26,51,.85); color: #fff; font: 600 1rem var(--font-ui, system-ui); }
:is(#club, #villaGames) #clubIn::placeholder { color: rgba(255,255,255,.55); }
:is(#club, #villaGames) #clubForm button { padding: .5rem .9rem; border-radius: 999px; border: 0; background: var(--gold, #f6bd1c); color: #0f1a33; font: 800 .9rem var(--font-ui, system-ui); cursor: pointer; }
:is(#club, #villaGames) #clubErr { color: #ffb4a8; font: 600 .8rem var(--font-ui, system-ui); min-height: 0; }
/* a board read out, or who is here */
:is(#club, #villaGames) #clubSheet { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(8,5,3,.62); touch-action: auto; }
:is(#club, #villaGames) #clubSheet[hidden] { display: none; }
:is(#club, #villaGames) .csheet { width: min(32rem, 100%); max-height: 86vh; overflow-y: auto; padding: 1.1rem 1.2rem; border-radius: 1.2rem; background: #2c1b0f; border: 2px solid #f6bd1c; box-shadow: 0 1rem 3rem rgba(0,0,0,.6); }
:is(#club, #villaGames) .csheet h2 { margin: 0 0 .6rem; text-align: center; color: var(--gold, #f6bd1c); font: 700 1.25rem Georgia, "Times New Roman", serif; letter-spacing: .06em; }
:is(#club, #villaGames) .crow { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .5rem 0; border-top: 1px solid rgba(246,189,28,.22); }
:is(#club, #villaGames) .crow b { color: #f7ecd0; font-weight: 700; } :is(#club, #villaGames) .crow .cr { color: #ffd84d; font-weight: 700; text-align: right; }
:is(#club, #villaGames) .crow small { grid-column: 1 / -1; color: rgba(247,236,208,.65); font: 500 .78rem var(--font-ui, system-ui); }
:is(#club, #villaGames) .cmeta { margin: .6rem 0 0; color: rgba(247,236,208,.7); font: 500 .85rem var(--font-ui, system-ui); text-align: center; }
:is(#club, #villaGames) .cbtn.wide { position: static; display: block; width: 100%; margin-top: .9rem; border-radius: .9rem; background: var(--gold, #f6bd1c); color: #0f1a33; }
body.inClub { overflow: hidden; }
/* the organiser's Customise screen (js/clubhouse-style.js), inside the menu sheet */
#menu .csPic { display: grid; grid-template-columns: 5.2rem 1fr; gap: .7rem; align-items: start; margin: .6rem 0; padding: .6rem; border-radius: .9rem; background: rgba(15,26,51,.05); box-shadow: inset 0 0 0 1px rgba(15,26,51,.12); }
#menu .csPic .csTh { width: 5.2rem; height: 4rem; object-fit: cover; border-radius: .5rem; background: #ddd; }
#menu .csPic .csTh[hidden] { display: block; visibility: hidden; }
#menu .csPic .csBody { display: grid; gap: .25rem; min-width: 0; } #menu .csPic .csBody small { color: var(--muted, #6a7560); font-size: .72rem; }
#menu .csPic .csCap { padding: .45rem .6rem; border-radius: .6rem; border: 1.5px solid var(--line, #e6e0c8); font: 600 .9rem var(--font-ui, system-ui); width: 100%; box-sizing: border-box; }
#menu .csPic .csBtns { display: flex; gap: .6rem; align-items: center; }
#menu .csPic label.csFile { display: inline-flex; align-items: center; width: auto; margin: 0; padding: .45rem .9rem; border-radius: .6rem; background: var(--gold, #f6bd1c); color: #0f1a33; font: 800 .85rem var(--font-ui, system-ui); text-transform: none; letter-spacing: 0; cursor: pointer; }
#menu .csPic label.csFile input { display: none !important; }

/* at the mat on a phone held upright: the controls run along the bottom, and the chat steps aside */
@media (max-aspect-ratio: 1/1) { :is(#club, #villaGames) #clubPutt { left: calc(env(safe-area-inset-left, 0px) + .7rem); right: calc(env(safe-area-inset-right, 0px) + .7rem); width: auto; } body.puttMode :is(#club, #villaGames) #clubChat { display: none; } }

/* the bar menu: a picture and a name for each thing you can order */
:is(#club, #villaGames) .corders { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .5rem; margin: .6rem 0; max-height: 62vh; overflow-y: auto; }
:is(#club, #villaGames) .corder { display: grid; justify-items: center; gap: .25rem; padding: .5rem .4rem; border: 0; border-radius: .9rem; background: rgba(255,255,255,.08); color: #fff; font: 700 .82rem var(--font-ui, system-ui); cursor: pointer; }
:is(#club, #villaGames) .corder img { width: 5.2rem; height: 5.2rem; border-radius: .7rem; background: #3a2a1c; }
:is(#club, #villaGames) .corder:active { background: rgba(246,189,28,.3); }
:is(#club, #villaGames) .corders .chead { grid-column: 1 / -1; margin: .35rem 0 0; font: 800 .72rem var(--font-ui, system-ui); letter-spacing: .12em; text-transform: uppercase; color: #d6b45a; text-align: left; }

/* the pool room (js/clubhouse-pool.js): who is playing, the controls at the table, a challenge to answer */
:is(#club, #villaGames) #clubPool[hidden] { display: none; }
:is(#club, #villaGames) #poolInfo { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 3.6rem); transform: translateX(-50%); width: min(34rem, calc(100vw - 1.4rem)); display: flex; flex-direction: column; gap: .15rem; align-items: center; padding: .45rem .9rem; border-radius: 1rem; background: rgba(15,26,51,.82); text-align: center; pointer-events: none; z-index: 2; }
:is(#club, #villaGames) #poolNames { font: 800 .86rem var(--font-ui, system-ui); color: var(--gold, #f6bd1c); } :is(#club, #villaGames) #poolMsg { font: 600 .8rem/1.3 var(--font-ui, system-ui); color: rgba(255,255,255,.92); }
:is(#club, #villaGames) #poolReq { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8.4rem); transform: translateX(-50%); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center; padding: .6rem .9rem; border-radius: 1rem; background: #2c1b0f; border: 2px solid #f6bd1c; color: #f7ecd0; font: 700 .9rem var(--font-ui, system-ui); z-index: 4; width: max-content; max-width: calc(100vw - 1.4rem); }
:is(#club, #villaGames) #poolReq[hidden] { display: none; } :is(#club, #villaGames) #poolReq button, :is(#club, #villaGames) #poolCtl button { border: 0; border-radius: .8rem; padding: .5rem .8rem; font: 800 .85rem var(--font-ui, system-ui); background: rgba(255,255,255,.14); color: #fff; cursor: pointer; } :is(#club, #villaGames) #poolReq #poolReqYes { background: var(--gold, #f6bd1c); color: #0f1a33; }
:is(#club, #villaGames) #poolCtl { position: absolute; right: calc(env(safe-area-inset-right, 0px) + .8rem); bottom: calc(env(safe-area-inset-bottom, 0px) + .8rem); width: min(17rem, 56vw); display: flex; flex-direction: column; gap: .5rem; padding: .7rem; border-radius: 1rem; background: rgba(15,26,51,.88); z-index: 2; touch-action: none; user-select: none; -webkit-user-select: none; }
:is(#club, #villaGames) #poolCtl.waiting .poolRow:first-child { opacity: .45; pointer-events: none; }
:is(#club, #villaGames) .poolRow { display: flex; gap: .6rem; align-items: stretch; } :is(#club, #villaGames) .poolRow.poolSmall { flex-wrap: wrap; gap: .35rem; justify-content: center; }
:is(#club, #villaGames) #poolSpinBox { display: flex; flex-direction: column; align-items: center; gap: .15rem; } :is(#club, #villaGames) #poolSpinBox small { font: 600 .6rem var(--font-ui, system-ui); color: rgba(255,255,255,.75); text-align: center; max-width: 4.6rem; }
:is(#club, #villaGames) #poolSpin { position: relative; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fbf8ee, #d9d3c0); border: 2px solid #f6bd1c; touch-action: none; cursor: crosshair; }
:is(#club, #villaGames) #poolSpin::before, :is(#club, #villaGames) #poolSpin::after { content: ''; position: absolute; background: rgba(0,0,0,.18); } :is(#club, #villaGames) #poolSpin::before { left: 50%; top: 6%; bottom: 6%; width: 1px; } :is(#club, #villaGames) #poolSpin::after { top: 50%; left: 6%; right: 6%; height: 1px; }
:is(#club, #villaGames) #poolSpinDot { position: absolute; width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 50%; background: #c93a2f; box-shadow: 0 0 0 2px #fff; left: 50%; top: 50%; pointer-events: none; }
:is(#club, #villaGames) #poolPw { flex: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 0; } :is(#club, #villaGames) #poolPwLabel { font: 700 .7rem var(--font-ui, system-ui); color: rgba(255,255,255,.88); text-align: center; min-height: 1.6em; }
:is(#club, #villaGames) #poolMeter { height: 1rem; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; } :is(#club, #villaGames) #poolFill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6fcf55, #f6bd1c, #e8452c); }
:is(#club, #villaGames) #poolCtl #poolGo { flex: 1; padding: .9rem .4rem; border-radius: .9rem; background: var(--gold, #f6bd1c); color: #0f1a33; font: 800 .95rem var(--font-ui, system-ui); touch-action: none; user-select: none; -webkit-user-select: none; } :is(#club, #villaGames) #poolCtl #poolGo:disabled, :is(#club, #villaGames) #poolCtl button:disabled { opacity: .45; }
:is(#club, #villaGames) #poolCtl .poolSmall button { padding: .55rem .7rem; min-width: 2.6rem; } :is(#club, #villaGames) #poolCtl #poolDone { background: var(--gold, #f6bd1c); color: #0f1a33; } :is(#club, #villaGames) #poolCtl [hidden] { display: none; }
body.poolMode :is(#club, #villaGames) #clubStick { display: none !important; } body.poolMode :is(#club, #villaGames) #clubChat { width: min(20rem, calc(100vw - 19.5rem)); } body.poolMode :is(#club, #villaGames) #clubActs, body.poolMode :is(#club, #villaGames) #clubMatNote { display: none; }
@media (max-aspect-ratio: 1/1) { :is(#club, #villaGames) #poolCtl { left: calc(env(safe-area-inset-left, 0px) + .7rem); right: calc(env(safe-area-inset-right, 0px) + .7rem); width: auto; } body.poolMode :is(#club, #villaGames) #clubChat { display: none; } }

/* money in the Clubhouse (js/money.js): your balance, prices on the bar menu, the pool table's pound, the fruit machine */
:is(#club, #villaGames) .ccash { position: absolute; right: .8rem; top: calc(env(safe-area-inset-top, 0px) + 3.6rem); padding: .35rem .8rem; border-radius: 999px; background: rgba(15,26,51,.85); color: var(--gold, #f6bd1c); font: 700 .95rem var(--font-num, system-ui); letter-spacing: .02em; border: 1px solid rgba(246,189,28,.4); pointer-events: none; z-index: 2; }
:is(#club, #villaGames) .ccash[hidden] { display: none; }
:is(#club, #villaGames) .corder .cprice { display: block; font-style: normal; font: 700 .8rem var(--font-num, system-ui); color: #7a5a10; margin-top: .1rem; }
.mnyPop { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(8,5,3,.6); padding: 1rem; }
.mnyPop .mnyCard { width: min(20rem, 100%); background: #faf7ea; color: #0f1a33; border-radius: 1rem; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; text-align: center; box-shadow: 0 1rem 2.4rem rgba(0,0,0,.45); }
.mnyPop .mnyCard b { font: 700 1.15rem Georgia, serif; }
.mnyPop .mnyCard small { color: #6a7560; }
.mnyPop button { padding: .7rem; border-radius: .8rem; border: 0; font: 800 1rem var(--font-ui, system-ui); cursor: pointer; }
.mnyPop button.primary { background: var(--gold, #f6bd1c); color: #0f1a33; }
.mnyPop button.link { background: none; color: #0f1a33; text-decoration: underline; }
.mnyPop .mnyErr { color: #b3261e; font-size: .85rem; min-height: 1em; }

.fruity { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(8,5,3,.72); padding: .8rem; touch-action: auto; overflow-y: auto; }
.fruity .fMachine { width: min(22rem, 100%); background: linear-gradient(180deg, #8a1530, #5c0d20); border: 4px solid #d8b24a; border-radius: 1.2rem; padding: .9rem; box-shadow: 0 1rem 2.6rem rgba(0,0,0,.55), inset 0 0 1.4rem rgba(0,0,0,.35); color: #fff; text-align: center; }
.fruity .fTop { background: linear-gradient(180deg, #2a0b4a, #5c1270); border-radius: .8rem; padding: .55rem; margin-bottom: .7rem; }
.fruity.cotch .fMachine { background: linear-gradient(180deg, #1c1c1c, #070707); border-color: #e8c45a; box-shadow: 0 0 0 2px #6b5321, 0 18px 40px rgba(0,0,0,.6); }
.fruity.cotch .fTop { background: linear-gradient(180deg, #2b2208, #5a4512); }
.fruity .fTop b { display: block; font: 900 1.6rem Georgia, serif; color: #ffd21f; letter-spacing: .08em; text-shadow: 0 0 .6rem rgba(255,210,31,.6); }
.fruity .fTop small { color: #ffc6e2; font-size: .78rem; }
.fruity .fReels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; background: #111; padding: .45rem; border-radius: .7rem; }
.fruity .fReel { height: 5.2rem; background: #f7f3e8; border-radius: .45rem; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid transparent; }
.fruity .fReel.held { border-color: #3bff6a; }
.fruity .fReel.spin .fSym { filter: blur(1.5px); transform: translateY(2px); }
.fruity .fSym { font-size: 3rem; line-height: 1; color: #111; }
.fruity .fSym .fBar, .fruity .fPay .fBar { display: inline-block; background: #111; color: #ffd21f; font: 900 1.15rem Georgia, serif; padding: .15rem .35rem; border-radius: .25rem; border: 2px solid #ffd21f; }
.fruity .fSym .fPma { width: 3.4rem; height: auto; filter: drop-shadow(0 0 2px #000); }
.fruity .fPay .fPma { width: 1.4rem; vertical-align: middle; }
.fruity .fPay .fBar { font-size: .65rem; padding: 0 .2rem; vertical-align: middle; }
.fruity .fHolds { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin: .45rem 0; }
.fruity .fHold { padding: .45rem 0; border-radius: .5rem; border: 2px solid #3a3a3a; background: #2a2a2a; color: #777; font: 800 .85rem var(--font-ui, system-ui); }
.fruity .fHold:not(:disabled) { background: #1b5e2b; color: #c9ffd6; border-color: #3bff6a; animation: fHoldPulse .8s infinite alternate; cursor: pointer; }
.fruity .fHold.on { background: #3bff6a; color: #0b2a12; animation: none; }
@keyframes fHoldPulse { from { box-shadow: 0 0 0 rgba(59,255,106,0); } to { box-shadow: 0 0 .7rem rgba(59,255,106,.8); } }
.fruity .fMsg { min-height: 1.5em; margin: .35rem 0 .55rem; font: 800 1.05rem var(--font-ui, system-ui); color: #ffe7a8; }
.fruity .fMsg.win { color: #7bff9a; }
.fruity .fMsg.big { color: #ffd21f; font-size: 1.4rem; animation: fFlash .25s 6 alternate; }
.fruity .fMsg.hold { color: #9affb4; font-size: .92rem; }
.fruity .fMsg.bad { color: #ffb3b3; font-size: .9rem; }
@keyframes fFlash { from { opacity: 1; } to { opacity: .35; } }
.fruity .fStakes { display: flex; gap: .45rem; justify-content: center; margin-bottom: .55rem; }
.fruity .fStakes button { flex: 1; padding: .55rem 0; border-radius: .6rem; border: 2px solid #d8b24a; background: #3a0c18; color: #ffd21f; font: 800 1rem var(--font-num, system-ui); cursor: pointer; }
.fruity .fStakes button.on { background: #d8b24a; color: #3a0c18; }
.fruity .fStakes button:disabled { opacity: .5; cursor: default; }
.fruity .fSpin { width: 100%; padding: .85rem; border-radius: .9rem; border: 0; background: radial-gradient(circle at 50% 35%, #ff6b6b, #c41d1d); color: #fff; font: 900 1.4rem var(--font-ui, system-ui); letter-spacing: .12em; box-shadow: 0 .3rem 0 #6e0d0d; cursor: pointer; }
.fruity .fSpin:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 .1rem 0 #6e0d0d; }
.fruity .fSpin:disabled { opacity: .6; }
.fruity .fBal { margin: .55rem 0 .2rem; font-size: .9rem; color: #ffd9e6; }
.fruity .fBal b { color: #ffd21f; font: 800 1.1rem var(--font-num, system-ui); }
.fruity .fPay { text-align: left; font-size: .8rem; margin-top: .4rem; color: #ffe7f0; }
.fruity .fPay summary { cursor: pointer; text-align: center; color: #ffd21f; }
.fruity .fPay ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.fruity .fClose { margin-top: .5rem; background: none; border: 0; color: #ffd9e6; text-decoration: underline; font: 600 .9rem var(--font-ui, system-ui); cursor: pointer; }
/* the Cotch Lounge (js/clubhouse-cotch.js): the unmarked locker's password, its bar, the dog racing */
:is(#club, #villaGames) .csheet.cotch { background: #0f0b07; border-color: #c9a646; box-shadow: 0 1rem 3rem rgba(0,0,0,.75), inset 0 0 0 1px rgba(201,166,70,.25); }
:is(#club, #villaGames) .csheet.cotch h2 { color: #e8c96a; letter-spacing: .12em; }
:is(#club, #villaGames) .cpass { margin-top: .8rem; }
:is(#club, #villaGames) .cpass input { display: block; width: 100%; box-sizing: border-box; padding: .7rem .9rem; border-radius: .7rem; border: 1px solid rgba(201,166,70,.6); background: #1b140c; color: #f7ecd0; font: 600 1.05rem var(--font-ui, system-ui); text-align: center; letter-spacing: .2em; }
:is(#club, #villaGames) .cpass input:focus { outline: 2px solid #e8c96a; outline-offset: 1px; }
:is(#club, #villaGames) .cpass .cmeta { min-height: 1.2em; color: #f09a8a; }
:is(#club, #villaGames) .cbtn.wide.ghost { background: transparent; color: #e8c96a; border: 1px solid rgba(201,166,70,.5); }
:is(#club, #villaGames) .crace { display: grid; gap: .4rem; margin-top: .8rem; }
:is(#club, #villaGames) .crdog { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: .7rem; border: 1px solid rgba(201,166,70,.3); background: #1b140c; color: #f7ecd0; font: 600 .95rem var(--font-ui, system-ui); cursor: pointer; text-align: left; }
:is(#club, #villaGames) .crdog.on { border-color: #e8c96a; background: #2d2112; box-shadow: 0 0 0 1px #e8c96a; }
:is(#club, #villaGames) .crdog span { flex: 1; }
:is(#club, #villaGames) .crdog em { font-style: normal; color: #e8c96a; font-weight: 800; }
:is(#club, #villaGames) .trap { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: .3rem; font: 800 .9rem var(--font-ui, system-ui); font-style: normal; }
:is(#club, #villaGames) .trap.t1 { background: #d22b2b; color: #fff; } :is(#club, #villaGames) .trap.t2 { background: #1f5fd1; color: #fff; } :is(#club, #villaGames) .trap.t3 { background: #f2f2f2; color: #111; }
:is(#club, #villaGames) .trap.t4 { background: #151515; color: #fff; border: 1px solid #666; } :is(#club, #villaGames) .trap.t5 { background: #f08a1c; color: #111; } :is(#club, #villaGames) .trap.t6 { background: repeating-linear-gradient(90deg, #111 0 .3rem, #f2f2f2 .3rem .6rem); color: #d22b2b; }
:is(#club, #villaGames) .cstakes { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .8rem; }
:is(#club, #villaGames) .cstakes .cbtn { position: static; background: #c9a646; color: #0f0b07; }
/* the lounge's photo frames and the boardroom whiteboard (migration 0074) */
:is(#club, #villaGames) .cpass input[type="file"] { letter-spacing: 0; font-size: .85rem; padding: .5rem; }
:is(#club, #villaGames) .cpass input#clubPicCap { letter-spacing: 0; margin-top: .5rem; }
:is(#club, #villaGames) .cpicprev { display: block; max-width: 100%; max-height: 30vh; margin: .6rem auto 0; border: 4px solid #c9a646; border-radius: .2rem; }
:is(#club, #villaGames) .csheet.wbsheet { width: min(60rem, 100%); }
:is(#club, #villaGames) .cwb { display: block; width: 100%; aspect-ratio: 2 / 1; background: #f7f7f4; border: 6px solid #b8bcc0; border-radius: .4rem; touch-action: none; cursor: crosshair; box-sizing: border-box; }
:is(#club, #villaGames) .cwbtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; margin-top: .7rem; }
:is(#club, #villaGames) .cwbpen { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); cursor: pointer; color: #555; font: 700 .9rem var(--font-ui, system-ui); }
:is(#club, #villaGames) .cwbpen.on { outline: 3px solid #e8c96a; outline-offset: 2px; }
:is(#club, #villaGames) .cwbtools .cbtn { position: static; background: #2d2112; color: #e8c96a; border: 1px solid rgba(201,166,70,.5); }
/* the lounge's games (js/clubhouse-play.js): the simulator's controls, blackjack cards, the roulette layout */
:is(#club, #villaGames) .simui { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 5.2rem); transform: translateX(-50%); width: min(26rem, calc(100% - 1.5rem)); padding: .7rem .8rem; border-radius: 1rem; background: rgba(10,8,6,.86); border: 1px solid rgba(201,166,70,.6); color: #f2ecd8; font: 600 .9rem var(--font-ui, system-ui); display: grid; gap: .45rem; z-index: 5; }
:is(#club, #villaGames) .simui[hidden] { display: none; }
:is(#club, #villaGames) .simtop { display: flex; justify-content: space-between; gap: .5rem; } :is(#club, #villaGames) .simtop b { color: #e8c96a; }
:is(#club, #villaGames) .simrow { display: flex; align-items: center; justify-content: center; gap: .5rem; }
:is(#club, #villaGames) .simrow button { padding: .4rem .8rem; border-radius: .6rem; border: 1px solid rgba(201,166,70,.5); background: #2d2112; color: #e8c96a; font: 700 .9rem var(--font-ui, system-ui); cursor: pointer; }
:is(#club, #villaGames) .simrow span { min-width: 7rem; text-align: center; font-weight: 800; }
:is(#club, #villaGames) .simmeter { position: relative; height: 1.1rem; border-radius: .55rem; background: linear-gradient(90deg, #2a2a2a 0 11%, #1e3a24 11% 100%); overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
:is(#club, #villaGames) .simmeter #simBar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #e8c96a, #f6bd1c); }
:is(#club, #villaGames) .simmeter #simPow { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; }
:is(#club, #villaGames) .simmeter #simLine { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff5050; }
:is(#club, #villaGames) .simgo { padding: .7rem; border-radius: .8rem; border: 0; background: #f6bd1c; color: #0f1a33; font: 800 1.05rem var(--font-ui, system-ui); cursor: pointer; touch-action: none; }
:is(#club, #villaGames) .simgo:disabled { opacity: .5; }
:is(#club, #villaGames) .simleave { padding: .35rem; border: 0; background: transparent; color: rgba(242,236,216,.7); text-decoration: underline; cursor: pointer; font: 600 .85rem var(--font-ui, system-ui); }
:is(#club, #villaGames) .bjtable { display: grid; gap: .6rem; margin: .8rem 0; padding: .8rem; border-radius: .8rem; background: #145a32; border: 3px solid #5a1218; }
:is(#club, #villaGames) .bjrow small { display: block; color: rgba(242,236,216,.8); margin-bottom: .3rem; font: 700 .85rem var(--font-ui, system-ui); }
:is(#club, #villaGames) .bjrow > div { display: flex; gap: .35rem; min-height: 4.6rem; }
:is(#club, #villaGames) .ccard { display: inline-flex; flex-direction: column; justify-content: space-between; width: 3.2rem; height: 4.5rem; padding: .25rem .3rem; border-radius: .35rem; background: #fbfaf5; color: #141414; box-shadow: 0 2px 4px rgba(0,0,0,.4); font: 700 1.1rem Georgia, serif; box-sizing: border-box; }
:is(#club, #villaGames) .ccard.red { color: #c0262d; } :is(#club, #villaGames) .ccard i { font-style: normal; font-size: 1.6rem; align-self: flex-end; }
:is(#club, #villaGames) .ccard.back { background: repeating-linear-gradient(45deg, #5a1018 0 6px, #6e1820 6px 12px); border: 3px solid #c9a646; }
:is(#club, #villaGames) .cstakes .cbtn.on, :is(#club, #villaGames) .cstakes .cbtn.chip.on { outline: 3px solid #fff; }
:is(#club, #villaGames) .rlgrid { display: grid; grid-template-columns: 1.6fr repeat(12, 1fr) 1.5fr; grid-template-rows: repeat(5, 2.1rem); gap: 2px; margin: .7rem 0; padding: 4px; background: #145a32; border-radius: .5rem; }
:is(#club, #villaGames) .rlc { position: relative; border: 1px solid rgba(242,236,216,.6); border-radius: .25rem; background: transparent; color: #f2ecd8; font: 700 .78rem var(--font-ui, system-ui); cursor: pointer; padding: 0; }
:is(#club, #villaGames) .rlc.red { background: #b5222a; } :is(#club, #villaGames) .rlc.black { background: #141414; } :is(#club, #villaGames) .rlc.zero { background: #1f7a3a; } :is(#club, #villaGames) .rlc.out.red { background: #b5222a; } :is(#club, #villaGames) .rlc.out.black { background: #141414; }
:is(#club, #villaGames) .rlc em { position: absolute; right: -2px; top: -6px; padding: 0 .2rem; border-radius: .5rem; background: #f6bd1c; color: #0f1a33; font: 800 .62rem var(--font-ui, system-ui); font-style: normal; }
:is(#club, #villaGames) .csheet.bjsheet, :is(#club, #villaGames) .csheet.rlsheet { width: min(40rem, 100%); }
/* the shared blackjack table's panel (js/clubhouse-play.js) */
:is(#club, #villaGames) .bjui .bjline { text-align: center; color: #f2ecd8; min-height: 1.2em; }
:is(#club, #villaGames) .bjui .bjhands { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
:is(#club, #villaGames) .bjui .bjhands:empty { display: none; }
:is(#club, #villaGames) .bjui .bjhands small { display: block; color: rgba(242,236,216,.75); font-size: .78rem; margin-bottom: .2rem; }
:is(#club, #villaGames) .bjui .bjhands .ccard { width: 2.2rem; height: 3.1rem; font-size: .85rem; margin-right: .15rem; } :is(#club, #villaGames) .bjui .bjhands .ccard i { font-size: 1.1rem; }
:is(#club, #villaGames) .bjui .simrow { flex-wrap: wrap; } :is(#club, #villaGames) .bjui .simrow[hidden] { display: none; }
:is(#club, #villaGames) .bjui .simrow button.on { outline: 2px solid #fff; } :is(#club, #villaGames) .bjui .bjbet { background: #f6bd1c; color: #0f1a33; }

/* The Hilltop's casino (js/villa-casino.js): the lounge's game panels over the villa's view */
#villaGames { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
#villaGames > * { pointer-events: auto; }
#villaGameSheet { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(8,5,3,.62); touch-action: auto; }
#villaGameSheet .mnyReal { color: rgba(255,255,255,.72); }
#villaGameSheet .csheet { max-width: 34rem; }
#villaGames .hcShow { min-height: 6.4rem; display: flex; justify-content: center; align-items: center; margin: .5rem 0; }
#villaGames .hcMsg { min-height: 1.4em; font-weight: 700; color: #f2ecd8; }
#villaGames .hcDice { display: flex; gap: .7rem; }
#villaGames .hcDie { font-size: 4.2rem; line-height: 1; color: #f6f1e4; }
#villaGames .hcCards { display: flex; gap: .35rem; justify-content: center; }
#villaGames .hcHold { background: none; border: 0; padding: .15rem; cursor: pointer; color: #e8c96a; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 3rem; }
#villaGames .hcHold small { font-size: .68rem; letter-spacing: .06em; min-height: 1em; }
#villaGames .ccard.held { outline: 3px solid #e8c96a; }

/* The Hilltop's cinema (js/villa-cinema.js): a YouTube player laid over the screen in the room */
#villa #villaCine { position: absolute; left: 0; top: 0; transform-origin: 0 0; visibility: hidden; background: #000; }
#villa #villaCine iframe { width: 100%; height: 100%; border: 0; display: block; }
#villa .vsheet .vcine { display: flex; gap: .4rem; margin: .1rem 0 .3rem; }
#villa .vsheet .vcine input { flex: 1; min-width: 0; padding: .65rem .8rem; border-radius: .7rem; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: 600 .9rem var(--font-ui, system-ui); }
#villa .vsheet .vcine button { text-align: center; }
#villa .vsheet .vcineMsg { min-height: 1.1em; margin-bottom: .3rem; color: #ffd27a; font: 600 .8rem var(--font-ui, system-ui); }
#villa .vsheet .vcineFind { display: block; margin-top: .55rem; text-align: center; color: var(--gold, #f6bd1c); font: 700 .86rem var(--font-ui, system-ui); }

/* Texas Hold'em (js/villa-holdem.js) */
#villaGames #heUi { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: .4rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse at center, rgba(10,16,12,.62), rgba(6,8,6,.9)); color: #f6f1e4; font-family: var(--font-ui, system-ui); }
#heUi .heTop { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; } #heUi .heTop b { color: #e8c96a; font: 700 1.15rem Georgia, serif; letter-spacing: .04em; } #heUi .heTop span { font-size: .85rem; opacity: .8; } #heUi .heTop .mnyReal { font-size: .76rem; opacity: .7; }
#heUi .heLeave { margin-left: auto; padding: .45rem .9rem; border-radius: 2rem; border: 1px solid #c9a646; background: rgba(0,0,0,.4); color: #e8c96a; font-weight: 700; cursor: pointer; }
#heUi .heFelt { position: relative; flex: 1; min-height: 0; margin: 2.7rem 5.5rem 3.2rem; border-radius: 50% / 50%; background: radial-gradient(ellipse at center, #1f8549, #125c32 72%); border: .7rem solid #3d2414; box-shadow: 0 0 0 2px #c9a646, 0 .8rem 2rem rgba(0,0,0,.6), inset 0 0 2.5rem rgba(0,0,0,.4); }
#heUi .heMid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 74%; text-align: center; }
#heUi .heBoard { display: flex; gap: .3rem; } #heUi .hePot { min-height: 1.2em; font-weight: 800; color: #ffe9a8; } #heUi .heNote { min-height: 1.2em; font-size: .9rem; font-weight: 700; }
#heUi .heCard { display: inline-flex; flex-direction: column; justify-content: space-between; align-items: flex-start; box-sizing: border-box; width: 2.1rem; height: 2.95rem; padding: .12rem .22rem; border-radius: .28rem; background: #fbfaf5; color: #141414; font: 700 .86rem Georgia, serif; box-shadow: 0 .1rem .3rem rgba(0,0,0,.5); } #heUi .heCard.red { color: #c0262d; } #heUi .heCard i { align-self: flex-end; font-style: normal; font-size: 1rem; line-height: 1; }
#heUi .heCard.big { width: 2.9rem; height: 4.05rem; font-size: 1.1rem; padding: .18rem .3rem; } #heUi .heCard.big i { font-size: 1.45rem; } #heUi .heCard.back { background: repeating-linear-gradient(45deg, #6a1420, #6a1420 4px, #4a0d16 4px, #4a0d16 8px); border: 2px solid #c9a646; } #heUi .heCard.empty { background: rgba(0,0,0,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
#heUi .heSeat { position: absolute; width: 7rem; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; padding: .25rem .3rem; border-radius: .7rem; background: rgba(8,10,8,.86); border: 2px solid rgba(201,166,70,.45); text-align: center; font-size: .8rem; }
#heUi .heSeat.p0 { left: 50%; top: 100%; } #heUi .heSeat.p1 { left: 6%; top: 76%; } #heUi .heSeat.p2 { left: 6%; top: 24%; } #heUi .heSeat.p3 { left: 50%; top: 0; } #heUi .heSeat.p4 { left: 94%; top: 24%; } #heUi .heSeat.p5 { left: 94%; top: 76%; }
#heUi .heSeat.on { border-color: #ffd86a; box-shadow: 0 0 .9rem rgba(255,216,106,.8); } #heUi .heSeat.out { opacity: .52; } #heUi .heSeat.won { border-color: #5fe08a; box-shadow: 0 0 .9rem rgba(95,224,138,.8); }
#heUi .heCards { display: flex; gap: .15rem; min-height: 0; margin-top: -1.5rem; } #heUi .heName { font-weight: 800; white-space: nowrap; overflow: hidden; max-width: 100%; } #heUi .heStack { color: #ffe9a8; font-weight: 700; } #heUi .heState { font-size: .72rem; font-weight: 800; color: #ffd86a; }
#heUi .heBtn { display: inline-block; width: 1.05rem; height: 1.05rem; margin-right: .2rem; border-radius: 50%; background: #fff; color: #111; font: 800 .68rem/1.05rem system-ui; font-style: normal; } #heUi .heBet { position: absolute; top: -1.05rem; right: -.5rem; padding: .05rem .4rem; border-radius: 1rem; background: #c9a646; color: #1a1408; font-size: .72rem; font-weight: 800; }
#heUi .heBar { min-height: 3rem; display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; } #heUi .heBar button { padding: .65rem 1.05rem; border-radius: .75rem; border: 0; font-weight: 800; cursor: pointer; } #heUi .heFold { background: #5a1a20; color: #fff; } #heUi .heGo { background: var(--gold, #f6bd1c); color: #1a1408; }
#heUi .heRaise { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: center; } #heUi .heRaise input { width: min(13rem, 34vw); accent-color: #e8c96a; } #heUi .heQuick { display: flex; gap: .25rem; } #heUi .heQuick button { padding: .45rem .55rem; background: rgba(255,255,255,.14); color: #fff; font-size: .78rem; }
@media (max-width: 720px) { #heUi .heFelt { margin: 2.6rem 3.1rem 3rem; } #heUi .heSeat { width: 5.3rem; font-size: .7rem; } #heUi .heCard.big { width: 2.2rem; height: 3.1rem; font-size: .9rem; } #heUi .heCard.big i { font-size: 1.05rem; } #heUi .heTop .mnyReal { display: none; } }
/* (look and feel) a status line and the button for what is in front of you never sit on top of each other: the button moves down while a status shows */
:is(#club, #villaGames) .cstatus:not([hidden]) ~ #clubActs { top: calc(env(safe-area-inset-top, 0px) + 6.3rem); }
