/* 99 Club Studio · v1.38 visual refinement: Codebreaker + Function Machines */

/* --------------------------------------------------------------------------
   Operation Codebreaker — quieter hierarchy, fewer nested boxes
   -------------------------------------------------------------------------- */
.tt99-operationgrid .tt99-v136-lock-grid{gap:9px!important;margin:2px 3px 4px}
.tt99-operationgrid .tt99-v136-lock{position:relative;display:block!important;overflow:visible!important;min-height:84px;padding:12px 12px 9px;border:1px solid #d8e4e4!important;border-radius:9px!important;background:#fff!important}
.tt99-operationgrid .tt99-v136-lock>i{position:absolute;left:10px;top:9px;display:block!important;background:transparent!important;color:#158178!important;font-style:normal;font-size:clamp(4.6px,.48vw,6.3px)!important;font-weight:900!important;letter-spacing:.06em;text-transform:uppercase}
.tt99-operationgrid .tt99-v136-lock-main{display:flex!important;min-height:60px;flex-direction:column;justify-content:center;gap:9px!important;padding:4px 4px 0!important}
.tt99-operationgrid .tt99-v136-lock-equation{font-size:clamp(9px,1vw,13.5px)!important;line-height:1.15}
.tt99-operationgrid .tt99-v136-opblank{width:29px!important;height:25px!important;margin:0 4px!important;border:1.6px solid #5b938d!important;border-radius:4px!important}
.tt99-operationgrid .tt99-v138-lock-key{display:flex;align-items:center;justify-content:center;gap:0;min-height:18px;color:#657c80;font-size:clamp(5.4px,.56vw,7.2px);white-space:nowrap}
.tt99-operationgrid .tt99-v138-lock-key:before{content:"KEY";margin-right:8px;color:#87989b;font-size:.82em;font-weight:900;letter-spacing:.07em}
.tt99-operationgrid .tt99-v138-lock-key .tt99-v136-code-choice{position:relative;gap:3px!important;padding:0 9px!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:inherit!important}
.tt99-operationgrid .tt99-v138-lock-key .tt99-v136-code-choice+ .tt99-v136-code-choice:before{content:"";position:absolute;left:0;top:20%;bottom:20%;width:1px;background:#d8e2e2}
.tt99-operationgrid .tt99-v138-lock-key .tt99-v136-code-choice>span{font-size:1.12em!important;color:#385b60}
.tt99-operationgrid .tt99-v138-lock-key .tt99-v136-code-choice>b{display:inline!important;min-width:0!important;height:auto!important;padding:0!important;background:transparent!important;color:#0f8379!important;font-size:1.08em!important}
.tt99-operationgrid .tt99-v136-code-key{border:0!important;border-bottom:1px solid #dce7e6!important;border-radius:0!important;background:transparent!important;padding:3px 8px 7px!important;margin:0 10px 2px!important}
.tt99-operationgrid .tt99-v136-code-key>strong{font-size:clamp(5px,.5vw,6.5px)!important;color:#71868a}
.tt99-operationgrid .tt99-v136-code-key .tt99-v136-code-choice{border:0!important;background:transparent!important;padding:1px 8px!important}
.tt99-operationgrid .tt99-v136-code-key .tt99-v136-code-choice>b{background:transparent!important;height:auto!important;min-width:0!important;padding:0!important}
.tt99-operationgrid .tt99-v136-final-code{margin:7px auto 0!important;padding:7px 0 0!important;border:0!important;border-top:1px solid #cbdcda!important;border-radius:0!important;background:transparent!important;gap:12px!important;width:min(92%,560px)}
.tt99-operationgrid .tt99-v136-final-code strong{font-size:clamp(5.5px,.56vw,7px)!important;letter-spacing:.06em}
.tt99-operationgrid .tt99-v136-codebox{width:27px!important;height:27px!important;margin:0 3px!important;border:1.4px solid #729d98!important;border-radius:4px!important;background:#fff!important}
.tt99-operationgrid .tt99-v136-codebox.is-answer{background:#e8f5f2!important}

/* --------------------------------------------------------------------------
   Function Machine — pill terminals + arrow-shaped operation stages
   -------------------------------------------------------------------------- */
.tt99-v137-machine,.tt99-v137-machine-note{display:none!important}
.tt99-v138-machine{display:flex;align-items:center;justify-content:center;gap:10px;margin:9px auto 10px;max-width:94%;min-height:62px}
.tt99-v138-machine-port{display:grid;place-items:center;min-width:82px;height:42px;padding:0 14px;border:1.5px solid #5c918c;border-radius:999px;background:#fffdf0;color:#2f5459;font-size:clamp(7px,.78vw,10.5px);font-weight:900;white-space:nowrap}
.tt99-v138-machine-link{position:relative;width:21px;height:2px;background:#6f9e99;flex:0 0 21px}
.tt99-v138-machine-link:after{content:"";position:absolute;right:-1px;top:50%;width:7px;height:7px;border-top:1.7px solid #6f9e99;border-right:1.7px solid #6f9e99;transform:translateY(-50%) rotate(45deg)}
.tt99-v138-machine-stage{position:relative;display:grid;place-items:center;min-width:76px;height:42px;padding:0 20px 0 15px;border:1.5px solid #6e8fd8;background:#eef1ff;color:#29495a;font-size:clamp(9px,1vw,14px);font-weight:950;line-height:1;clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%,11px 50%)}
.tt99-v138-machine-stage:first-of-type{clip-path:polygon(0 0,calc(100% - 13px) 0,100% 50%,calc(100% - 13px) 100%,0 100%)}
.tt99-v138-machine-stage small{position:absolute;left:50%;top:-16px;transform:translateX(-50%);color:#8b9a9d;font-size:clamp(3.8px,.4vw,5px);font-weight:850;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.tt99-v138-machine-note{margin:-1px auto 6px;text-align:center;color:#71858a;font-size:clamp(4.4px,.48vw,6.5px)}
.tt99-functionmachine .tt99-machine-table{margin-top:4px!important}

.tt99-game-activities.count-2 .tt99-v138-machine{gap:6px;min-height:48px}.tt99-game-activities.count-2 .tt99-v138-machine-port{min-width:62px;height:34px;padding:0 10px}.tt99-game-activities.count-2 .tt99-v138-machine-stage{min-width:58px;height:34px;padding:0 15px 0 10px}.tt99-game-activities.count-2 .tt99-v138-machine-link{width:14px;flex-basis:14px}
.tt99-game-activities.count-3 .tt99-v138-machine{gap:3px;margin:2px auto 3px;min-height:28px}.tt99-game-activities.count-3 .tt99-v138-machine-port{min-width:40px;height:24px;padding:0 5px;font-size:6px}.tt99-game-activities.count-3 .tt99-v138-machine-stage{min-width:38px;height:24px;padding:0 9px 0 7px;font-size:7px}.tt99-game-activities.count-3 .tt99-v138-machine-stage small,.tt99-game-activities.count-3 .tt99-v138-machine-note{display:none}.tt99-game-activities.count-3 .tt99-v138-machine-link{width:8px;flex-basis:8px;height:1px}.tt99-game-activities.count-3 .tt99-v138-machine-link:after{width:4px;height:4px}

@media(max-width:720px){.tt99-v138-machine{gap:5px;flex-wrap:wrap}.tt99-v138-machine-link{width:12px;flex-basis:12px}.tt99-operationgrid .tt99-v136-lock-grid{grid-template-columns:1fr!important}}
@media print{.tt99-v138-machine-port,.tt99-v138-machine-stage{background:#fff!important}}
