/* Plays Games Universal Embed page — dedicated styles.
   Kept separate from extensions.css so this page renders correctly even when the shared CSS is cached. */

.embed-hero .actions{margin-top:26px}

.embed-builder-shell{
  background:linear-gradient(145deg,#ffffff 0%,#fbfcff 54%,#f7f9ff 100%);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:0 24px 70px rgba(31,45,70,.10);
  padding:30px;
}
.embed-builder-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.embed-builder-top h3{font-size:28px;margin:4px 0 6px}
.embed-builder-top p{margin:0;color:var(--muted);max-width:680px}
.embed-kicker,.embed-ref-label{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:950}
.embed-kicker{color:var(--pink)}
.embed-ref-label{color:#7e879c;margin-bottom:2px}

.embed-reference-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid #e3e8f1;
  border-radius:22px 22px 0 0;
  overflow:hidden;
  background:#fff;
}
.embed-ref-box{
  min-width:0;
  min-height:205px;
  padding:24px 25px;
  border-right:1px solid #e7ebf2;
  border-bottom:1px solid #e7ebf2;
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.embed-ref-box:nth-child(3n){border-right:0}
.embed-ref-box:nth-child(n+4){border-bottom:0}
.embed-ref-box:nth-child(1){background:linear-gradient(160deg,#fff,#fff8fb)}
.embed-ref-box:nth-child(2){background:linear-gradient(160deg,#fff,#f7fbff)}
.embed-ref-box:nth-child(3){background:linear-gradient(160deg,#fff,#faf8ff)}
.embed-ref-box:nth-child(4){background:linear-gradient(160deg,#fff,#f9fbff)}
.embed-ref-box:nth-child(5){background:linear-gradient(160deg,#fff,#fff8fb)}
.embed-ref-box:nth-child(6){background:linear-gradient(160deg,#fff,#f7fbff)}

.embed-field{display:grid;gap:7px;min-width:0}
.embed-field label{font-size:13px;font-weight:850;color:#4b556d}
.embed-field-label-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.embed-field-label-row output{font-size:11px;font-weight:900;color:var(--pink);background:#fff0f6;padding:5px 9px;border-radius:999px}
.embed-input-combo{display:grid;grid-template-columns:minmax(0,1fr) 64px;border:1px solid #dce3ed;border-radius:13px;overflow:hidden;background:#f8faff;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.embed-input-combo input,.embed-input-combo select,.embed-select,.embed-text-input{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font:inherit;
  min-height:46px;
  padding:0 13px;
  width:100%;
}
.embed-input-combo input{min-width:0}
.embed-input-combo select{border-left:1px solid #dce3ed;background:#fff;font-weight:900;text-align:center}
.embed-select,.embed-text-input{border:1px solid #dce3ed;background:#f8faff;border-radius:13px}
.embed-select{background-image:linear-gradient(45deg,transparent 50%,#7e879c 50%),linear-gradient(135deg,#7e879c 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px}
.embed-text-input::placeholder{color:#9ca5b6}
.embed-help{font-size:11px;line-height:1.45;color:var(--muted)}
.embed-optional{font-size:10px;font-weight:700;color:var(--muted);margin-left:5px}
.embed-range{width:100%;height:5px;accent-color:var(--pink);cursor:pointer}

.embed-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:4px;cursor:pointer;padding:11px 12px;border:1px solid #e0e5ed;border-radius:14px;background:#f9fbfd}
.embed-switch-row span{min-width:0}.embed-switch-row span strong{display:block;font-size:13px}.embed-switch-row span small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.embed-switch-row input{position:absolute;opacity:0;pointer-events:none}
.embed-switch-row i{width:48px;height:28px;border-radius:999px;background:#d9dfe8;position:relative;flex:0 0 48px;transition:.2s}
.embed-switch-row i:after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 2px 7px rgba(0,0,0,.18);transition:.2s}
.embed-switch-row input:checked+i{background:linear-gradient(90deg,var(--pink),var(--pink-2))}
.embed-switch-row input:checked+i:after{transform:translateX(20px)}

.embed-code-zone{padding:27px 25px 24px;border:1px solid #e3e8f1;border-top:0;border-radius:0 0 22px 22px;background:linear-gradient(180deg,#fbfcff,#f6f8fc)}
.embed-code-zone-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.embed-code-zone-head h3{font-size:23px;margin:5px 0 0}
.embed-method-picker{display:inline-grid;grid-template-columns:auto auto;gap:7px;margin:18px 0 12px;padding:5px;background:#edf1f7;border-radius:14px}
.embed-method-picker button{border:0;background:transparent;color:var(--muted);font:inherit;border-radius:10px;padding:9px 13px;cursor:pointer;min-width:150px;text-align:left}
.embed-method-picker button strong{display:block;color:var(--ink);font-size:13px}.embed-method-picker button span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:9px;margin-top:2px}
.embed-method-picker button.active{background:#fff;box-shadow:0 5px 16px rgba(31,45,70,.10)}
.embed-method-picker button.active strong{color:var(--pink)}
.embed-code-hint{margin:0 0 13px;color:var(--muted);font-size:13px}
.embed-generated-code{margin:0;min-height:180px;white-space:pre;overflow:auto;background:#101522;color:#eef2fa;border:1px solid #252c3a;border-radius:16px;padding:18px 20px;font:13px/1.62 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.embed-code-steps{display:flex;flex-wrap:wrap;gap:24px;margin-top:16px;color:var(--muted);font-size:12px}.embed-code-steps b{color:var(--ink);margin-right:4px}

.embed-preview-panel{margin-top:24px;background:linear-gradient(145deg,#111522,#080a10);border-radius:26px;padding:20px;color:#fff}
.embed-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.embed-preview-toolbar strong{display:block;font-size:16px}.embed-preview-toolbar .embed-kicker{color:#ff78a8}
.embed-live-badge{font-size:11px;font-weight:900;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.09);padding:6px 9px;border-radius:999px;color:rgba(255,255,255,.82)}
.embed-live-badge i{width:7px;height:7px;background:#39d87a;border-radius:50%;box-shadow:0 0 0 4px rgba(57,216,122,.12)}
.embed-preview-browser{border:1px solid rgba(255,255,255,.11);border-radius:18px;overflow:hidden;background:#06080d}
.embed-browser-bar{height:39px;background:#171b26;display:flex;align-items:center;gap:6px;padding:0 12px}.embed-browser-bar span{width:8px;height:8px;border-radius:50%;background:#424a5e}.embed-browser-bar span:first-child{background:var(--pink)}.embed-browser-bar em{font-style:normal;margin-left:6px;font-size:10px;color:rgba(255,255,255,.42);background:#0d1018;padding:4px 10px;border-radius:6px}
.embed-preview-wrap{min-height:680px;padding:18px;display:flex;justify-content:center;align-items:flex-start;overflow:auto;background:radial-gradient(circle at 50% 15%,rgba(255,47,120,.12),transparent 35%),#090b10}
.embed-preview-wrap iframe{display:block;max-width:100%;background:#000;box-shadow:0 18px 55px rgba(0,0,0,.35)}
.embed-preview-note{font-size:11px;color:rgba(255,255,255,.46);line-height:1.5;margin:12px 4px 0}

.embed-doc-methods{display:grid;grid-template-columns:1fr 1fr;gap:22px}.embed-doc-tip{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(90deg,#fff7fa,#f5f8ff)}

@media(max-width:900px){
  .embed-reference-grid{grid-template-columns:1fr 1fr}
  .embed-ref-box,.embed-ref-box:nth-child(3n),.embed-ref-box:nth-child(n+4){border-right:1px solid #e7ebf2;border-bottom:1px solid #e7ebf2}
  .embed-ref-box:nth-child(2n){border-right:0}
  .embed-ref-box:nth-last-child(-n+2){border-bottom:0}
}
@media(max-width:620px){
  .embed-builder-shell{padding:14px;border-radius:22px}
  .embed-reference-grid{grid-template-columns:1fr}
  .embed-ref-box,.embed-ref-box:nth-child(2n),.embed-ref-box:nth-child(3n),.embed-ref-box:nth-child(n+4){border-right:0;border-bottom:1px solid #e7ebf2;min-height:auto}
  .embed-ref-box:last-child{border-bottom:0}
  .embed-code-zone-head{align-items:flex-start;flex-direction:column}
  .embed-method-picker{display:grid;width:100%;grid-template-columns:1fr 1fr}
  .embed-method-picker button{min-width:0}
  .embed-code-steps{display:grid;gap:8px}
  .embed-preview-wrap{padding:10px;min-height:520px}
  .embed-doc-methods{grid-template-columns:1fr}
}
